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 pitrou
Recipients Mark.Shannon, docs@python, georg.brandl, larry, loewis, pitrou
Date 2013-03-31.20:40:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364762445.03.0.804408849458.issue17589@psf.upfronthosting.co.za>
In-reply-to
Content
Py_INCREF usable as an rvalue sounds more like an accident than a deliberate feature, and it would be IMO counter-productive to codify this behaviour in the docs.

As for the lvalue usage of Py_REFCNT and Py_SIZE, I think it would be better if it were limited to CPython core. But arguably writers of extension types may want to mutate the size field of a varsize object.
History
Date User Action Args
2013-03-31 20:40:45pitrousetrecipients: + pitrou, loewis, georg.brandl, larry, docs@python, Mark.Shannon
2013-03-31 20:40:45pitrousetmessageid: <1364762445.03.0.804408849458.issue17589@psf.upfronthosting.co.za>
2013-03-31 20:40:45pitroulinkissue17589 messages
2013-03-31 20:40:44pitroucreate