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.

classification
Title: parser.expr(): reference count error if more than one argument is passed
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: python-dev, vstinner
Priority: normal Keywords:

Created on 2011-06-04 23:30 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg137668 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-06-04 23:30
import parser; parser.expr("a", "b") raises a TypeError('expr() takes at most 1 argument (2 given)') but corrupt also the reference count of an object (I don't know which one): "python: Modules/gcmodule.c:327: visit_decref: Assertion `gc->gc.gc_refs != 0' failed."
msg137677 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-06-05 03:08
New changeset 3ffd8dea77bf by Benjamin Peterson in branch 'default':
only clear the parser error if it's set (closes #12264)
http://hg.python.org/cpython/rev/3ffd8dea77bf
History
Date User Action Args
2022-04-11 14:57:18adminsetgithub: 56473
2011-06-05 03:08:55python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg137677

resolution: fixed
stage: resolved
2011-06-04 23:30:59vstinnercreate