Message143445
Being able to set which behavior you want in a (?XXX) flag at the start of the regex is valuable so that applications that take a regex can support the new syntax automatically when the python version they are running on is updated. The (?XXX) should override whatever re.XXX flag was provided to re.compile().
Notice I said XXX. I'm not interested in a naming bikeshed other than agreeing with the fact that NEW will seem quaint 10 years from now so its best to use non-temporal names. COMPAT, VERSION2, VERSION3, WITH_GOATS, PONY, etc. are all non-temporal and do allow us to change the default away from "old" behavior at a future date beyond 3.3. |
|
Date |
User |
Action |
Args |
2011-09-03 00:17:40 | gregory.p.smith | set | recipients:
+ gregory.p.smith, loewis, georg.brandl, jimjjewett, sjmachin, amaury.forgeotdarc, belopolsky, pitrou, nneonneo, giampaolo.rodola, rsc, timehorse, mark, vbr, ezio.melotti, mrabarnett, jaylogan, akitada, moreati, steven.daprano, alex, r.david.murray, jacques, zdwiel, jhalcrow, stiv, davide.rizzo, ronnix, eric.snow, akoumjian |
2011-09-03 00:17:40 | gregory.p.smith | set | messageid: <1315009060.51.0.862990737924.issue2636@psf.upfronthosting.co.za> |
2011-09-03 00:17:39 | gregory.p.smith | link | issue2636 messages |
2011-09-03 00:17:39 | gregory.p.smith | create | |
|