Skip to content

Commit

Permalink
Use __ to avoid overwrite shell magic variables
Browse files Browse the repository at this point in the history
  • Loading branch information
user202729 committed Jan 4, 2025
1 parent c7d06f9 commit 29dcf3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sage/structure/coerce.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ cdef class CoercionModel:
sage: import numpy # needs numpy
sage: if int(numpy.version.short_version[0]) > 1: # needs numpy
....: _ = numpy.set_printoptions(legacy="1.25") # needs numpy
....: __ = numpy.set_printoptions(legacy="1.25") # needs numpy
sage: # needs sage.rings.real_mpfr
sage: x = polygen(RR)
Expand Down
2 changes: 1 addition & 1 deletion src/sage/symbolic/function.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ cdef class BuiltinFunction(Function):
sage: import numpy # needs numpy
sage: if int(numpy.version.short_version[0]) > 1: # needs numpy
....: _ = numpy.set_printoptions(legacy="1.25") # needs numpy
....: __ = numpy.set_printoptions(legacy="1.25") # needs numpy
sage: sin(numpy.int32(0)) # needs numpy
0.0
Expand Down

0 comments on commit 29dcf3f

Please sign in to comment.