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.

Author pablogsal
Recipients gvanrossum, lukasz.langa, pablogsal
Date 2019-02-01.17:22:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549041770.94.0.819559735173.issue35879@roundup.psfhosted.org>
In-reply-to
Content
The extra referenced happen here in Python-ast.c :

value = ast2obj_string(o->type_comment);
    if (!value) goto failed;
    if (_PyObject_SetAttrId(result, &PyId_type_comment, value) == -1)
        goto failed;
    Py_DECREF(value);

ast2obj_string increments it once and the setattr does it again and then there is only one Py_DECREF.
History
Date User Action Args
2019-02-01 17:22:52pablogsalsetrecipients: + pablogsal, gvanrossum, lukasz.langa
2019-02-01 17:22:50pablogsalsetmessageid: <1549041770.94.0.819559735173.issue35879@roundup.psfhosted.org>
2019-02-01 17:22:50pablogsallinkissue35879 messages
2019-02-01 17:22:50pablogsalcreate