[New-bugs-announce] [issue5959] PyCode_NewEmpty

Jeffrey Yasskin report at bugs.python.org
Thu May 7 20:24:54 CEST 2009

New submission from Jeffrey Yasskin <jyasskin at gmail.com>:

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.

components: Interpreter Core
files: PyCode_NewEmpty.patch
keywords: needs review, patch
messages: 87385
nosy: collinwinter, jyasskin
severity: normal
stage: patch review
status: open
title: PyCode_NewEmpty
type: feature request
versions: Python 2.7
Added file: http://bugs.python.org/file13913/PyCode_NewEmpty.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list