]> granicus.if.org Git - python/commit
PyCode_NewEmpty:
authorJeffrey Yasskin <jyasskin@gmail.com>
Fri, 8 May 2009 21:51:06 +0000 (21:51 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Fri, 8 May 2009 21:51:06 +0000 (21:51 +0000)
commit1aa4700234aa0657ee8cb12cfd9b615fef9e0300
tree6a480c31e4b83218ae9412f7ab2e9d41b34f8fd0
parent083d1f9f9a26486cf9f0d85fb0e76e6cf9474b0c
PyCode_NewEmpty:
Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
are trying to build an empty code object, usually to put it in a dummy frame
object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
just the filename, function name, and first line number, instead of also
requiring lots of code internals.
Doc/c-api/code.rst [new file with mode: 0644]
Doc/c-api/concrete.rst
Include/code.h
Lib/test/test_code.py
Misc/NEWS
Modules/_ctypes/callbacks.c
Modules/_testcapimodule.c
Modules/pyexpat.c
Objects/codeobject.c