commit | 1aa4700234aa0657ee8cb12cfd9b615fef9e0300 | [log] [tgz] |
---|---|---|
author | Jeffrey Yasskin <jyasskin@gmail.com> | Fri May 08 21:51:06 2009 +0000 |
committer | Jeffrey Yasskin <jyasskin@gmail.com> | Fri May 08 21:51:06 2009 +0000 |
tree | 6a480c31e4b83218ae9412f7ab2e9d41b34f8fd0 | |
parent | 083d1f9f9a26486cf9f0d85fb0e76e6cf9474b0c [diff] |
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.