Opened 12 years ago
Closed 8 years ago
#4413 closed defect (duplicate)
'?' in docstring gets interpreted immediately by the parser
Reported by: | justin | Owned by: | mhansen |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | user interface | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | Keshav Kini | |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | #12719 | Stopgaps: |
Description
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.
Change History (7)
comment:1 Changed 12 years ago by
- Owner changed from was to mhansen
- Status changed from new to assigned
comment:2 Changed 9 years ago by
- Report Upstream set to N/A
This is fixed in IPython 0.12. We should close this when #12719 gets closed.
comment:3 Changed 9 years ago by
- Dependencies set to #12719
- Status changed from new to needs_review
comment:4 Changed 9 years ago by
- Status changed from needs_review to positive_review
comment:5 Changed 9 years ago by
- Milestone changed from sage-5.0 to sage-pending
comment:6 Changed 9 years ago by
- Milestone changed from sage-pending to sage-duplicate/invalid/wontfix
comment:7 Changed 8 years ago by
- Resolution set to duplicate
- Reviewers set to Keshav Kini
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
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