|
From: | anonymous |
Subject: | [Octave-bug-tracker] [bug #61134] symbolic package SyntaxWarning: "is" with a literal |
Date: | Thu, 9 Sep 2021 00:58:00 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36 |
URL: <https://savannah.gnu.org/bugs/?61134> Summary: symbolic package SyntaxWarning: "is" with a literal Project: GNU Octave Submitted by: None Submitted on: Thu 09 Sep 2021 04:57:59 AM UTC Category: Octave Forge Package Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Release: 6.2.0 Discussion Lock: Any Operating System: Microsoft Windows _______________________________________________________ Details: When trying to create a new symbol, i.e. syms s, a SyntaxWarning shows up related to Python. Attached screenshot is the warning details and the files changed to fix the warning. I just simply changed the 'is' to '==' whenever a variable is compared to a string literal. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thu 09 Sep 2021 04:57:59 AM UTC Name: location.png Size: 55KiB By: None <http://savannah.gnu.org/bugs/download.php?file_id=51881> ------------------------------------------------------- Date: Thu 09 Sep 2021 04:57:59 AM UTC Name: diophantine.py Size: 96KiB By: None <http://savannah.gnu.org/bugs/download.php?file_id=51882> ------------------------------------------------------- Date: Thu 09 Sep 2021 04:57:59 AM UTC Name: ctx_mp_python.py Size: 37KiB By: None <http://savannah.gnu.org/bugs/download.php?file_id=51883> ------------------------------------------------------- Date: Thu 09 Sep 2021 04:57:59 AM UTC Name: plot.py Size: 69KiB By: None <http://savannah.gnu.org/bugs/download.php?file_id=51884> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61134> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |