Skip to content

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

@RalphieBoy

Description

@RalphieBoy

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions