Opened 16 years ago

Closed 16 years ago

#232 closed defect (fixed)

assert statement does not work in sage

Reported by: yi Owned by: was
Priority: major Milestone:
Component: interfaces Keywords: python assert
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by was)

Different behavior in sage shell than in regular python shell:

sage: x = 5
sage: y = 3
sage: assert x==y

in python:
>>> x = 5
>>> y = 3
>>> assert x==y
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>

Change History (3)

comment:1 Changed 16 years ago by was

  • Description modified (diff)

comment:2 Changed 16 years ago by was

This is a SAGE/Ipython interaction problem, since assert works fine in the SAGE Notebook, and with dsage.client...

comment:3 Changed 16 years ago by was

  • Resolution set to fixed
  • Status changed from new to closed

Fixed for sage > 2.0.

Note: See TracTickets for help on using tickets.