Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Good point! Thank you Mark for your comment.

In theory, fewer bytecodes is better (the first example doesn't create a new 
object, it operates with references to existing objects). But in practice the 
difference is very small and overwhelmed by random factors. We need hundreds or 
thousands of constants to get a stable result. This is far from a common use 
case.

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

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

Reply via email to