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

'?' in docstring gets interpreted immediately by the parser #4413

Closed
RalphieBoy mannequin opened this issue Oct 31, 2008 · 4 comments
Closed

'?' in docstring gets interpreted immediately by the parser #4413

RalphieBoy mannequin opened this issue Oct 31, 2008 · 4 comments

Comments

@RalphieBoy
Copy link
Mannequin

RalphieBoy mannequin commented Oct 31, 2008

The following code, entered in the command-line interface to Sage, shows the effect:

sage: def foo(x):
   ....:     '''
   ....:     Eh?
Object `Eh` not found.
   ....:     '''
   ....:     return x
   ....: 

The parser appears to act on the '?' right away, rather than wait for the end of the thing being defined (or realizing that '?' in this case is not to be acted on).

The effect shows up with both single- and double- quotes, and with and without the "raw" qualifier (r!''').

This may be related to Trac#4405.

Depends on #12719

Component: user interface

Reviewer: Keshav Kini

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

@RalphieBoy RalphieBoy mannequin added this to the sage-5.0 milestone Oct 31, 2008
@RalphieBoy RalphieBoy mannequin assigned williamstein Oct 31, 2008
@mwhansen
Copy link
Contributor

comment:1

This is not related to #4405. In fact, it is an IPython bug. I've reported it here: http://lists.ipython.scipy.org/pipermail/ipython-dev/2009-January/004812.html

@mwhansen mwhansen assigned mwhansen and unassigned williamstein Jan 23, 2009
@mwhansen
Copy link
Contributor

comment:2

This is fixed in IPython 0.12. We should close this when #12719 gets closed.

@kini
Copy link
Contributor

kini commented Mar 29, 2012

Dependencies: #12719

@jdemeyer jdemeyer removed this from the sage-5.0 milestone Mar 29, 2012
@jdemeyer jdemeyer added pending and removed pending labels Mar 29, 2012
@jdemeyer
Copy link

Reviewer: Keshav Kini

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

4 participants