bugGNU Octave - Bugs: bug #62083, [octave forge] (symbolic) Python...

 
 

bug #62083: [octave forge] (symbolic) Python syntax errors in library files, "is" with a literal

Submitter:  None
Submitted:  Sat 19 Feb 2022 12:04:47 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Duplicate Assigned to:  None
Originator Name:  Chuck McManis Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 6.4.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 19 Feb 2022 12:01:21 PM UTC, comment #1: 

This has been reported before in bug #61134.

The corresponding packages have been updated in our build system for Windows (MXE Octave). That update will be part of Octave 7.
You can test with the first release candidate for Octave 7 that you can download from here:
https://alpha.gnu.org/gnu/octave/?C=M;O=D

Closing as duplicate.

Markus Mützel <mmuetzel>
Group administrator
Sat 19 Feb 2022 12:04:47 AM UTC, original submission:  

The folks at Python if determined that using the statement "is" with a literal is incorrect. But rather than make it an error they just flag it with "SyntaxWarning:" suggesting it is hiding what is otherwise an error in the code. The result of loading the symbolic package was as follows:

```

>> pkg load symbolic
>> syms x y

Symbolic pkg v2.9.0: /usr/lib/python3.8/site-packages/mpmath/ctx_mp_python.py:892: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if other is 0:
/usr/lib/python3.8/site-packages/mpmath/ctx_mp_python.py:986: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if other is 0:
/usr/lib/python3.8/site-packages/sympy/solvers/diophantine.py:3186: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if feasible is 1:  # it's prime and k == 2
/usr/lib/python3.8/site-packages/sympy/plotting/plot.py:509: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.xscale is 'log':
/usr/lib/python3.8/site-packages/sympy/plotting/plot.py:529: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.xscale is 'log':
/usr/lib/python3.8/site-packages/sympy/plotting/plot.py:542: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.xscale is 'log':
/usr/lib/python3.8/site-packages/sympy/plotting/plot.py:549: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.xscale is 'log':
/usr/lib/python3.8/site-packages/mpmath/ctx_mp_python.py:892: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if other is 0:
/usr/lib/python3.8/site-packages/mpmath/ctx_mp_python.py:986: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if other is 0:
/usr/lib/python3.8/site-packages/sympy/solvers/diophantine.py:3186: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if feasible is 1:  # it's prime and k == 2
/usr/lib/python3.8/site-packages/sympy/plotting/plot.py:509: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.xscale is 'log':
/usr/lib/python3.8/site-packages/sympy/plotting/plot.py:529: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.xscale is 'log':
/usr/lib/python3.8/site-packages/sympy/plotting/plot.py:542: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.xscale is 'log':
/usr/lib/python3.8/site-packages/sympy/plotting/plot.py:549: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.xscale is 'log':
Python communication link active, SymPy v1.4.

>>

```

This is on Windows 10 with Octave 6.4.0.


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-19 mmuetzel CategoryLibraries Octave Package
        Item GroupOther Unexpected Error or Warning
        StatusNone Duplicate
        Open/ClosedOpen Closed
        SummaryPython syntax errors in library files, &quot;is&quot; with a literal [octave forge] (symbolic) Python syntax errors in library files, "is" with a literal
        Dependencies- Depends on bugs #61134

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code