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 vstinner
Recipients Arfrever, amaury.forgeotdarc, belopolsky, ezio.melotti, jafo, lemburg, loewis, ronaldoussoren, vstinner
Date 2011-01-14.00:36:29
SpamBayes Score 4.1174048e-05
Marked as misclassified No
Message-id <1294965542.28561.3.camel@marge>
In-reply-to <1294959932.55.0.965366560451.issue6697@psf.upfronthosting.co.za>
Content
Le jeudi 13 janvier 2011 à 23:05 +0000, Alexander Belopolsky a écrit :
> I take your comment as +1 for adding PyModule_GetNameObject().

I wrote a similar patch to add PyModule_GetNameObject() (I am working on
another huge patch, to fix #3080). You have to document the new function
in Doc/c-api/module.rst.

Yes, it's better to work on unicode than encode unicode to bytes
(PyModule_GetName() with UTF-8) and then decode bytes from unicode
(PyUnicode_FromFormat with %s).

I am too tired to review the patch.
History
Date User Action Args
2011-01-14 00:36:31vstinnersetrecipients: + vstinner, lemburg, loewis, jafo, ronaldoussoren, amaury.forgeotdarc, belopolsky, ezio.melotti, Arfrever
2011-01-14 00:36:29vstinnerlinkissue6697 messages
2011-01-14 00:36:29vstinnercreate