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 methane
Recipients methane, python-dev, serhiy.storchaka, vstinner
Date 2017-01-25.15:51:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485359463.16.0.748071654124.issue29369@psf.upfronthosting.co.za>
In-reply-to
Content
> You should check if _PyUnicode_FromId() returns NULL if it was the first call and the UTF-8 decode failed to allocate memory.

thanks. new patch will fix it.

> You might initialize all these identifiers (and check for errors) in init_types() to avoid having to check for errors each time they are used.

Here is not so performance critical part.

> But the _ast module is not imported by default, only in programs importing "ast" explicitly.
> Well, I'm not opposed to the change, I'm just trying to understand how the code is used ;-)

We use Flask. Flask is based on Werkzeug. Werkzeug imports inspect.
inspect imports ast. ast imports _ast.
History
Date User Action Args
2017-01-25 15:51:03methanesetrecipients: + methane, vstinner, python-dev, serhiy.storchaka
2017-01-25 15:51:03methanesetmessageid: <1485359463.16.0.748071654124.issue29369@psf.upfronthosting.co.za>
2017-01-25 15:51:03methanelinkissue29369 messages
2017-01-25 15:51:02methanecreate