Message281373
Attached patch makes _sre.compile() more strict on types: groupindex must be a dictionary and indexgroup must be a tuple.
Currently, indexgroup is passed as a list. I chose to convert it to a tuple to use less memory and to prevent unwanted changes. For unwanted changed, I'm not sure because groupindex remains a mutable dictionary. Do you think that it's worth it to require a tuple? Another option is to accept a list but to convert it to a list, but this change is more specific to the current implementation. |
|
Date |
User |
Action |
Args |
2016-11-21 15:57:38 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka |
2016-11-21 15:57:37 | vstinner | set | messageid: <1479743857.98.0.418828964214.issue28765@psf.upfronthosting.co.za> |
2016-11-21 15:57:37 | vstinner | link | issue28765 messages |
2016-11-21 15:57:37 | vstinner | create | |
|