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: |
Description (last modified by )
Different behavior in sage shell than in regular python shell:
sage: x = 5 sage: y = 3 sage: assert x==y sage: in python: >>> x = 5 >>> y = 3 >>> assert x==y Traceback (most recent call last): File "<stdin>", line 1, in <module> AssertionError >>>
Change History (3)
comment:1 Changed 16 years ago by
- Description modified (diff)
comment:2 Changed 16 years ago by
comment:3 Changed 16 years ago by
- Resolution set to fixed
- Status changed from new to closed
Fixed for sage > 2.0.
Note: See
TracTickets for help on using
tickets.
This is a SAGE/Ipython interaction problem, since assert works fine in the SAGE Notebook, and with dsage.client...