[Python-Dev] Re: Non-monotonically increasing line numbers in dis.findlinestarts() output
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_NAME0 (f) 2 CALL_FUNCTION0 1 4 LOAD_NAME1 (a) 6 LOAD_NAME2 (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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/L24E77UPUVGEZPOXYVIVI76GGJARW6K6/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission
We believe that we have found a simple way to make it possible to subclass exception groups, with fully functioning split() and subgroup(). See this section in the PEP: https://www.python.org/dev/peps/pep-0654/#subclassing-exception-groups It was also added to the reference implementation. This probably opens new possibilities for adoption strategies of exception groups and except* (in terms of the interaction of exception groups with except). ___ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/33AQ3V3RXRBWWCILJNCEIEERNGAG3M2T/ Code of Conduct: http://python.org/psf/codeofconduct/
