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 vstinner
Recipients benjamin.peterson, brett.cannon, python-dev, serhiy.storchaka, vstinner
Date 2016-01-26.00:19:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453767555.69.0.188236437218.issue26146@psf.upfronthosting.co.za>
In-reply-to
Content
I pushed an enhanced version of constant-3.patch:

* fix the compiler: don't emit LOAD_CONST for ast.Constant if the value is a string (str) or a number (int, float, complex), as done previously for ast.Str and ast.Num

* add unit tests on: the compiler (ensure that LOAD_CONST is emitted for constants), ast.get_docstring() and ast.literal_eval()
History
Date User Action Args
2016-01-26 00:19:15vstinnersetrecipients: + vstinner, brett.cannon, benjamin.peterson, python-dev, serhiy.storchaka
2016-01-26 00:19:15vstinnersetmessageid: <1453767555.69.0.188236437218.issue26146@psf.upfronthosting.co.za>
2016-01-26 00:19:15vstinnerlinkissue26146 messages
2016-01-26 00:19:15vstinnercreate