Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert statement does not work in sage #232

Closed
yqiang mannequin opened this issue Jan 29, 2007 · 3 comments
Closed

assert statement does not work in sage #232

yqiang mannequin opened this issue Jan 29, 2007 · 3 comments

Comments

@yqiang
Copy link
Mannequin

yqiang mannequin commented Jan 29, 2007

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
>>>

Component: interfaces

Keywords: python assert

Issue created by migration from https://trac.sagemath.org/ticket/232

@yqiang yqiang mannequin added c: interfaces labels Jan 29, 2007
@yqiang yqiang mannequin assigned williamstein Jan 29, 2007
@williamstein

This comment has been minimized.

@williamstein
Copy link
Contributor

comment:2

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

@williamstein
Copy link
Contributor

comment:3

Fixed for sage > 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant