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 serhiy.storchaka
Recipients ezio.melotti, serhiy.storchaka, vstinner
Date 2013年11月21日.07:41:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385019706.69.0.579937406555.issue19676@psf.upfronthosting.co.za>
In-reply-to
Content
The proposed patch adds the "namereplace" error handler. This error handler is almost same as the "backslashreplace" error handler, but use \N{...} escape sequences if there is a character name in Unicode database. Result is a little more human-readable (but less portable) than with "backslashreplace".
>>> '∀ x∈R'.encode('ascii', 'namereplace')
b'\\N{FOR ALL} x\\N{ELEMENT OF}\\N{BLACK-LETTER CAPITAL R}'
The proposition was discussed and bikeshedded on Python-Ideas: http://comments.gmane.org/gmane.comp.python.ideas/21296 .
History
Date User Action Args
2013年11月21日 07:41:47serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, ezio.melotti
2013年11月21日 07:41:46serhiy.storchakasetmessageid: <1385019706.69.0.579937406555.issue19676@psf.upfronthosting.co.za>
2013年11月21日 07:41:46serhiy.storchakalinkissue19676 messages
2013年11月21日 07:41:46serhiy.storchakacreate

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