Opened 7 years ago

Last modified 6 years ago

#20750 closed defect

Fix re group indexing with Sage Integers — at Version 1

Reported by: Jeroen Demeyer Owned by:
Priority: major Milestone: sage-7.3
Component: packages: standard Keywords:
Cc: John Palmieri Merged in:
Authors: Jeroen Demeyer Reviewers:
Report Upstream: Fixed upstream, but not in a stable release. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Jeroen Demeyer)

This breaks:

sage: import re
sage: p = re.compile('(a)b')
sage: m = p.match('ab')
IndexError: no such group

The reason is that the re module does not handle Sage Integers:



Change History (1)

comment:1 Changed 7 years ago by Jeroen Demeyer

Description: modified (diff)
Report Upstream: Not yet reported upstream; Will do shortly.Reported upstream. No feedback yet.
Note: See TracTickets for help on using tickets.