summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@gmail.com>2009-05-08 21:51:06 (GMT)
committerJeffrey Yasskin <jyasskin@gmail.com>2009-05-08 21:51:06 (GMT)
commit1aa4700234aa0657ee8cb12cfd9b615fef9e0300 (patch)
tree6a480c31e4b83218ae9412f7ab2e9d41b34f8fd0 /Python/traceback.c
parent083d1f9f9a26486cf9f0d85fb0e76e6cf9474b0c (diff)
downloadcpython-1aa4700234aa0657ee8cb12cfd9b615fef9e0300.zip
cpython-1aa4700234aa0657ee8cb12cfd9b615fef9e0300.tar.gz
cpython-1aa4700234aa0657ee8cb12cfd9b615fef9e0300.tar.bz2
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.
Diffstat (limited to 'Python/traceback.c')
0 files changed, 0 insertions, 0 deletions