STINNER Victor added the comment:

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()

----------
components: +Interpreter Core
resolution:  -> fixed
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26146>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to