[Python-Dev] 'continue'/'break'/'return' inside 'finally' clause (original) (raw)
Neil Schemenauer nas-python at arctrix.com
Tue Jan 2 15:31:49 EST 2018
- Previous message (by thread): [Python-Dev] PEP 567 v2
- Next message (by thread): [Python-Dev] 'continue'/'break'/'return' inside 'finally' clause
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Serhiy Storchaka <storchaka at gmail.com> wrote:
Currently 'break' and 'return' are never used inside 'finally' clause in the stdlib.
See the _recv_bytes() function:
Lib/multiprocessing/connection.py: 316
I would want to see a third-party code that uses them.
These are the only ones I found so far:
./gevent/src/gevent/libev/corecffi.py: 147 ./gevent/src/gevent/threadpool.py: 226
I have an AST walker script that finds them.
Regards,
Neil
- Previous message (by thread): [Python-Dev] PEP 567 v2
- Next message (by thread): [Python-Dev] 'continue'/'break'/'return' inside 'finally' clause
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]