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 serhiy.storchaka
Recipients brett.cannon, larry, serhiy.storchaka
Date 2016-04-30.05:06:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461992790.56.0.572579544569.issue26891@psf.upfronthosting.co.za>
In-reply-to
Content
There is other code that sets refcount.

Include/object.h:764:    Py_REFCNT(op) = 1)
Objects/moduleobject.c:38:        Py_REFCNT(def) = 1;
Objects/longobject.c:5450:            Py_REFCNT(op) = refcnt + 1;
Objects/unicodeobject.c:1762:        Py_REFCNT(unicode) = 3;
Objects/unicodeobject.c:15044:    Py_REFCNT(s) -= 2;
Objects/unicodeobject.c:15103:            Py_REFCNT(s) += 1;
Objects/unicodeobject.c:15107:            Py_REFCNT(s) += 2;

I would suggest to set initial refcount to 1000000000, define Py_REFCNT(s) as returning constant 1000000000, and fix subsequent compiler errors.
History
Date User Action Args
2016-04-30 05:06:30serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, larry
2016-04-30 05:06:30serhiy.storchakasetmessageid: <1461992790.56.0.572579544569.issue26891@psf.upfronthosting.co.za>
2016-04-30 05:06:30serhiy.storchakalinkissue26891 messages
2016-04-30 05:06:30serhiy.storchakacreate