summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/code.rst
Commit message (Collapse)AuthorAgeFilesLines
* PyCode_NewEmpty:Jeffrey Yasskin2009-05-081-0/+50
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.