PEP 611: Drop restriction on the number of coroutines. (#1252)
This commit is contained in:
parent
e6afc5973f
commit
661b42eeb8
|
@ -110,10 +110,8 @@ This PR proposes that the following language features and runtime values be limi
|
|||
* The number of bytecode instructions in a code object.
|
||||
* The sum of local variables and stack usage for a code object.
|
||||
* The number of classes in a running interpreter.
|
||||
* The number of live coroutines in a running interpreter.
|
||||
|
||||
It is likely that operating system limits will restrict the number of usuable coroutines to much less than a million,
|
||||
and that memory constraints may be a limiting factor before the number of classes reaches one million.
|
||||
It is likely that memory constraints would be a limiting factor before the number of classes reaches one million.
|
||||
|
||||
Reducing the limits
|
||||
-------------------
|
||||
|
@ -191,7 +189,6 @@ It is anticipated that CPython will enforce the limits as follows:
|
|||
* The number of bytecode instructions in a code object: 3.9 onwards.
|
||||
* The sum of local variables and stack usage for a code object: 3.9 onwards.
|
||||
* The number of classes in a running interpreter: probably 3.10 onwards, maybe warning in 3.9.
|
||||
* The number of live coroutines in a running interpreter: Implicitly limited by operating system limits until at least 3.11.
|
||||
|
||||
Backwards Compatibility
|
||||
=======================
|
||||
|
|
Loading…
Reference in New Issue