]> granicus.if.org Git - python/commit
Issue #3080: Add PyModule_GetNameObject()
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 23 Feb 2011 00:21:43 +0000 (00:21 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 23 Feb 2011 00:21:43 +0000 (00:21 +0000)
commitbd475115c4fb0dda55f3d1f4443bff58abd1203f
tree5d8ebf7b06289fe9bbe5e8381185bd308d20bb2a
parent501c09a754bc329ed9b3d0c1be0c51ccd6687c6c
Issue #3080: Add PyModule_GetNameObject()

repr(module) uses %R to format module name and filenames, instead of '%s' and
'%U', so surrogates from undecodable bytes in a filename (PEP 383) are escaped.
Doc/c-api/module.rst
Include/moduleobject.h
Objects/moduleobject.c