Message275705
This test script:
import re
print(re.compile(r'(?ix)A').flags == re.I | re.X | re.U)
print(re.compile(r'(?ix)A').flags == re.X | re.U)
print(re.compile(r'(?im)A').flags == re.I | re.M | re.U)
gives False, True, True on default:b28b37de9470+. Python 3.5.2 gives True, False, True.
Seems re.compile does not handle flags with X correctly? |
|
| Date |
User |
Action |
Args |
| 2016-09-10 22:07:45 | yan12125 | set | recipients:
+ yan12125, ezio.melotti, mrabarnett, serhiy.storchaka |
| 2016-09-10 22:07:45 | yan12125 | set | messageid: <[email protected]> |
| 2016-09-10 22:07:45 | yan12125 | link | issue28070 messages |
| 2016-09-10 22:07:45 | yan12125 | create | |
|