homepage

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 Gareth.Gouldstone
Recipients Gareth.Gouldstone, ezio.melotti, mrabarnett
Date 2014年03月21日.01:31:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395365477.75.0.293934412072.issue21002@psf.upfronthosting.co.za>
In-reply-to
Content
I believe that the SRE_Scanner object should have a .fullmatch() method for consistency with other re pattern-matching behaviour.
>>> rex = re.compile('([^\\W\\d_]{1,2}[0-9]{1,2}[^\\d\\W_]?)[ \\t]*([0-9][^\\d\\W_]{2})')
>>> rex.scanner('bn20bs')
<_sre.SRE_Scanner object at 0x102006400>
>>> rex.scanner('bn20bs').search() 
<_sre.SRE_Match object; span=(0, 6), match='bn20bs'>
>>> rex.scanner('bn20bs').match() 
<_sre.SRE_Match object; span=(0, 6), match='bn20bs'>
>>> rex.scanner('bn20bs').fullmatch() Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
AttributeError: '_sre.SRE_Scanner' object has no attribute 'fullmatch'
History
Date User Action Args
2014年03月21日 01:31:18Gareth.Gouldstonesetrecipients: + Gareth.Gouldstone, ezio.melotti, mrabarnett
2014年03月21日 01:31:17Gareth.Gouldstonesetmessageid: <1395365477.75.0.293934412072.issue21002@psf.upfronthosting.co.za>
2014年03月21日 01:31:17Gareth.Gouldstonelinkissue21002 messages
2014年03月21日 01:31:16Gareth.Gouldstonecreate

AltStyle によって変換されたページ (->オリジナル) /