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 WGH
Recipients WGH, ezio.melotti, mrabarnett
Date 2017-02-04.16:23:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1486225383.48.0.902108011161.issue29444@psf.upfronthosting.co.za>
In-reply-to
Content
In [1]: import re

In [2]: b = bytearray(b'A'*100)

In [3]: m = re.search(b'A*', b)

In [4]: m.group()
Out[4]: b'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'

In [5]: del b[:]

In [6]: m.group()
Out[6]: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x9a\xc4\xb2i\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

I will attach the patch shortly.
History
Date User Action Args
2017-02-04 16:23:03WGHsetrecipients: + WGH, ezio.melotti, mrabarnett
2017-02-04 16:23:03WGHsetmessageid: <1486225383.48.0.902108011161.issue29444@psf.upfronthosting.co.za>
2017-02-04 16:23:03WGHlinkissue29444 messages
2017-02-04 16:23:03WGHcreate