Opened 6 months ago

Closed 6 months ago

Last modified 6 months ago

#30773 closed defect (duplicate)

Preparser mingles with multi-line strings

Reported by: defeo Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: user interface Keywords:
Cc: gh-jcamp0x2a, gh-kliem, slelievre Merged in:
Authors: Reviewers: Jonathan Kliem
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by defeo)

sage: "2"
'2'
sage: """2"""
'2'
sage: """2
....: """
'2\n'

But:

sage: """
....: 2"""
'\nInteger(2)'

Change History (8)

comment:1 Changed 6 months ago by defeo

  • Description modified (diff)

comment:2 Changed 6 months ago by mkoeppe

  • Cc gh-jcamp0x2a gh-kliem slelievre added

comment:3 Changed 6 months ago by gh-jcamp0x2a

I believe this was fixed in #30417. On 9.2rc1 I get:

sage: "2"
'2'
sage: """2"""
'2'
sage: """2
....: """
'2\n'
sage: """
....: 2"""
'\n2'

comment:4 Changed 6 months ago by gh-kliem

Yes, this appears to be fixed.

comment:5 Changed 6 months ago by chapoton

  • Milestone changed from sage-9.2 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

comment:6 Changed 6 months ago by gh-kliem

  • Reviewers set to Jonathan Kliem
  • Status changed from needs_review to positive_review

comment:7 Changed 6 months ago by chapoton

  • Resolution set to duplicate
  • Status changed from positive_review to closed

comment:8 Changed 6 months ago by defeo

This must be the fastest resolution I ever had for a ticket :)

Thank you all!

Note: See TracTickets for help on using tickets.