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 ezio.melotti
Recipients dwt, ezio.melotti, mrabarnett, pitrou, rhettinger
Date 2011-12-15.14:31:39
SpamBayes Score 1.3915566e-05
Marked as misclassified No
Message-id <1323959499.94.0.177188082865.issue13592@psf.upfronthosting.co.za>
In-reply-to
Content
If an eval-able re.Regex is used, the flags can be showed as second arg, like:
  re.Regex('a', re.I|re.S)
instead of being added to the pattern as in
  re.Regex('(?is)a')

The repr can be generated with something like
  're.Regex({r.pattern!r}, {r.flags})'.format(r=r)
that currently prints
  re.Regex('abc', 50)
but if #11957 is fixed, the result will look like
  re.Regex('abc', re.I|re.S)
for a regex created with
  r = re.compile('abc', re.I|re.S)
History
Date User Action Args
2011-12-15 14:31:39ezio.melottisetrecipients: + ezio.melotti, rhettinger, pitrou, mrabarnett, dwt
2011-12-15 14:31:39ezio.melottisetmessageid: <1323959499.94.0.177188082865.issue13592@psf.upfronthosting.co.za>
2011-12-15 14:31:39ezio.melottilinkissue13592 messages
2011-12-15 14:31:39ezio.melotticreate