18.03.21 03:39, Victor Stinner пише:
> I'm happy to see that Python 3.10 now also implements faster bytecode
> which rely on this change ;-)

It was used long time ago before 3.10. For example:

a[i] = \
    f()

  2           0 LOAD_NAME                0 (f)
              2 CALL_FUNCTION            0

  1           4 LOAD_NAME                1 (a)
              6 LOAD_NAME                2 (i)
              8 STORE_SUBSCR
             10 LOAD_CONST               0 (None)
             12 RETURN_VALUE

x = [
    1,
    2,
]

  2           0 LOAD_CONST               0 (1)

  3           2 LOAD_CONST               1 (2)

  1           4 BUILD_LIST               2
              6 STORE_NAME               0 (x)
              8 LOAD_CONST               2 (None)
             10 RETURN_VALUE

_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/L24E77UPUVGEZPOXYVIVI76GGJARW6K6/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to