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 Ramchandra Apte
Recipients Ramchandra Apte, amaury.forgeotdarc, ezio.melotti, harveyang
Date 2012年02月21日.10:50:35
SpamBayes Score 1.2231411e-06
Marked as misclassified No
Message-id <1329821435.87.0.185174643316.issue14068@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is not in re, it is because you are passing '。' to re.split which in Python 2.x is actually passed as '\xe3\x80\x82'.
You should pass u'。' to re.compile.
Could we raise a SyntaxError when in a progam a unicode character is in a bytes string?
Python 3 does so; it raises "SyntaxError: bytes can only contain ASCII literal characters." when you execute b'。'
History
Date User Action Args
2012年02月21日 10:50:35Ramchandra Aptesetrecipients: + Ramchandra Apte, amaury.forgeotdarc, ezio.melotti, harveyang
2012年02月21日 10:50:35Ramchandra Aptesetmessageid: <1329821435.87.0.185174643316.issue14068@psf.upfronthosting.co.za>
2012年02月21日 10:50:35Ramchandra Aptelinkissue14068 messages
2012年02月21日 10:50:35Ramchandra Aptecreate

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