issue2636-23 : Code : Python (original) (raw)

lp:~pythonregexp2.7/python/issue2636-23

Created byTimeHorse on 2008-09-24 and last modifiedon 2008-09-26

The goal of this item is to provide a solution to the mysterious behaviour described in issue 5311. Basically, the problem is that the character class range '[9-A]' should match the characters in the set ['9', ':', ';', '<', '=', '>', '?', '@', 'A'], but when case-insensitive behaviour is applied, the set of characters that it matches will include ['[', '\\', ']', '^', '_', '`']. These characters occur at an ordinal position between the Uppercase and Lowercase alphabet in ASCII and result from the 'A' in '[9-A]' being converted to lowercase first before the Character Range is evaluated. Thus, the '[9-A]' range will produce unexpected characters that do not technically occur in the specified range.

Get this branch:

bzr branchlp:~pythonregexp2.7/python/issue2636-23

Branch merges

Branch information

Recent revisions

39039. ByJeffrey C. "The TimeHorse" Jacobs on 2008-09-21

39038. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-18

39037. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-11

39036. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-09

39035. ByJeffrey C. "The TimeHorse" Jacobs on 2008-06-03

39034. ByJeffrey C. "The TimeHorse" Jacobs on 2008-05-30

39033. ByJeffrey C. "The TimeHorse" Jacobs on 2008-05-29

39032. ByJeffrey C. "The TimeHorse" Jacobs on 2008-05-29

39031. ByJeffrey C. "The TimeHorse" Jacobs on 2008-05-24

39030. ByJeffrey C. "The TimeHorse" Jacobs on 2008-05-22

Branch metadata

Branch format:

Branch format 6

Repository format:

Bazaar pack repository format 1 with rich root (needs bzr 1.0)