This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: PyCode_NewEmpty
Type: enhancement Stage: commit review
Components: Interpreter Core Versions: Python 3.1, Python 2.7
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jyasskin Nosy List: collinwinter, georg.brandl, jyasskin, pitrou
Priority: normal Keywords: patch

Created on 2009-05-07 18:24 by jyasskin, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit
PyCode_NewEmpty.patch jyasskin, 2009-05-07 18:24
Messages (4)
msg87385 - (view) Author: Jeffrey Yasskin (jyasskin) * (Python committer) Date: 2009-05-07 18:24
Most uses of PyCode_New found by 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.
msg87433 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-05-08 10:23
Good idea. The patch lacks some documentation.
msg87475 - (view) Author: Jeffrey Yasskin (jyasskin) * (Python committer) Date: 2009-05-08 21:55
Documented, tested, and committed to 2.7 as r72487.  This should be
forward-ported to 3.x also, but since we've already started the betas
for 3.1, it should probably wait for 3.2.
msg97313 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-01-06 17:31
PyCode_NewEmpty has been merged in r74132.
Date User Action Args
2022-04-11 14:56:48adminsetgithub: 50209
2010-01-06 17:31:04georg.brandlsetstatus: open -> closed
nosy: + georg.brandl
messages: + msg97313

2009-05-08 21:55:45jyasskinsetkeywords: - needs review

messages: + msg87475
2009-05-08 10:25:01pitrousetassignee: jyasskin
resolution: accepted
stage: patch review -> commit review
2009-05-08 10:23:42pitrousetnosy: + pitrou

messages: + msg87433
versions: + Python 3.1
2009-05-07 18:24:53jyasskincreate