homepage

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 petr.viktorin
Recipients eric.smith, petr.viktorin, serhiy.storchaka, vstinner
Date 2018年09月11日.18:34:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536690892.38.0.0269046726804.issue34595@psf.upfronthosting.co.za>
In-reply-to
Content
> The PEP 399 requires that C accelerator behaves exactly as Python, [...]
It does not. PEP 399 requires that that the C code must pass the same *test suite*. And error messages in particular tend to not be checked in tests.
Anyway, I don't see how that applies to replacing `Py_TYPE(obj)->tp_name` by `%T`. The real reason for *that* change is removing borrowed references, right?
I have not yet seen a good reason why Py_TYPE(obj) is bad. The reasons you give in https://pythoncapi.readthedocs.io/bad_api.html#borrowed-references are about tagged pointers and PyList_GetItem(), but Py_TYPE() is very different.
I don't think the reasons are strong enough to add new API to PyUnicode_FromFormat().
History
Date User Action Args
2018年09月11日 18:34:52petr.viktorinsetrecipients: + petr.viktorin, vstinner, eric.smith, serhiy.storchaka
2018年09月11日 18:34:52petr.viktorinsetmessageid: <1536690892.38.0.0269046726804.issue34595@psf.upfronthosting.co.za>
2018年09月11日 18:34:52petr.viktorinlinkissue34595 messages
2018年09月11日 18:34:52petr.viktorincreate

AltStyle によって変換されたページ (->オリジナル) /