This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yan12125
Recipients ezio.melotti, mrabarnett, serhiy.storchaka, yan12125
Date 2016-09-10.22:07:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473545265.89.0.511572120567.issue28070@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2016-09-10 22:07:45yan12125setrecipients: + yan12125, ezio.melotti, mrabarnett, serhiy.storchaka
2016-09-10 22:07:45yan12125setmessageid: <1473545265.89.0.511572120567.issue28070@psf.upfronthosting.co.za>
2016-09-10 22:07:45yan12125linkissue28070 messages
2016-09-10 22:07:45yan12125create