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 amaury.forgeotdarc
Recipients Suzumizaki, amaury.forgeotdarc, brett.cannon, eric.snow, ncoghlan, serhiy.storchaka, vstinner
Date 2014-02-02.17:53:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391363585.22.0.438598684374.issue20485@psf.upfronthosting.co.za>
In-reply-to
Content
I'd use a much simpler encoding.
Maybe something like
    name.encode('unicode-escape').replace(b'\\', b'_')
As you said, simplicity is important for tools which generate code!
History
Date User Action Args
2014-02-02 17:53:05amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, brett.cannon, ncoghlan, vstinner, Suzumizaki, eric.snow, serhiy.storchaka
2014-02-02 17:53:05amaury.forgeotdarcsetmessageid: <1391363585.22.0.438598684374.issue20485@psf.upfronthosting.co.za>
2014-02-02 17:53:05amaury.forgeotdarclinkissue20485 messages
2014-02-02 17:53:05amaury.forgeotdarccreate