[Python-Dev] What is the purpose of NEXT_BLOCK()? (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Wed Mar 21 12:13:03 EDT 2018
- Previous message (by thread): [Python-Dev] What is the purpose of NEXT_BLOCK()?
- Next message (by thread): [Python-Dev] ThreadedProcessPoolExecutor
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
21.03.18 17:13, Guido van Rossum пише:
Maybe spelunking in the Python 2 branch will help? It seems it was introduced in 2005 by Jeremy Hylton with this comment:
/* The distinction between NEWBLOCK and NEXTBLOCK is subtle. (I'd like to find better names.) NEWBLOCK() creates a new block and sets it as the current block. NEXTBLOCK() also creates an implicit jump from the current block to the new block. */ That comment (and NEWBLOCK()) are no longer found in the Python 3 source.
It explains what NEXT_BLOCK() does, but not why it was needed to do this.
NEW_BLOCK() was never used at all.
- Previous message (by thread): [Python-Dev] What is the purpose of NEXT_BLOCK()?
- Next message (by thread): [Python-Dev] ThreadedProcessPoolExecutor
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]