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

notebook -- issue with quotes #3692

Closed
williamstein opened this issue Jul 21, 2008 · 1 comment
Closed

notebook -- issue with quotes #3692

williamstein opened this issue Jul 21, 2008 · 1 comment

Comments

@williamstein
Copy link
Contributor

Using notebook mode.

Problem:
cell input: '\''
output: '\\u0027'
expected output: '\u0027'

Sincerely,
Mats

Component: notebook

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

@williamstein
Copy link
Contributor Author

comment:1

Tom Boothby:


Either this is a python bug, "user error", or a feature request.  I don't think this is a problem with the notebook.

boothby@eight:~$ sage -python
Python 2.5.1 (r251:54863, Nov  9 2007, 07:54:29)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> x = '\u0027'
>>> x
'\\u0027'
>>>

The default behavior is to call repr on the return value of the last line (if not None), yes?  If so, this is consistent.  If not, what?  Should we call print instead of repr? (then, I believe it's a feature request)

@sagetrac-mabshoff sagetrac-mabshoff mannequin removed this from the sage-3.1 milestone Jul 21, 2008
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

2 participants