* Add pep reference for annotations.
* Remove support for from ... import * at function scope. It will continue to be supported at class and module scope. This is the last dependency on the distinction between optimized and unoptimized byte codes within functions (LOAD_FAST vs LOAD_NAME), so remove that support as well. exec is already a function which also required specialization.
This commit is contained in:
parent
2faa29c5cf
commit
58bc5d3a66
|
@ -65,7 +65,7 @@ Core language
|
|||
|
||||
* True division becomes default behavior [#pep238]_ [done]
|
||||
* ``exec`` as a statement is not worth it -- make it a function [done]
|
||||
* (Maybe) add optional declarations for static typing [10]_
|
||||
* (Maybe) add optional declarations for static typing [#pep3107] [10]_
|
||||
* Support only new-style classes; classic classes will be gone [1]_ [done]
|
||||
* Replace ``print`` by a function [14]_ [#pep3105]_
|
||||
* Use ``except E1, E2, E3 as err:`` if you want the error variable. [3]_
|
||||
|
@ -80,6 +80,8 @@ Core language
|
|||
* Exceptions might grow an attribute to store the traceback [11]_
|
||||
* floats will not be acceptable as arguments in place of ints for operations
|
||||
where floats are inadvertantly accepted (PyArg_ParseTuple() i & l formats)
|
||||
* Remove from ... import * at function scope. This means that functions
|
||||
can always be optimized and support for unoptimized functions can go away.
|
||||
* Imports will be absolute by default. [done]
|
||||
Relative imports must be explicitly specified [#pep328]_ [done]
|
||||
* __init__.py might become optional in sub-packages. __init__.py will still
|
||||
|
@ -358,6 +360,9 @@ References
|
|||
.. [#pep3105] PEP 3105 (Make print a function)
|
||||
http://www.python.org/dev/peps/pep-3105
|
||||
|
||||
.. [#pep3107] PEP 3107 (Function Annotations)
|
||||
http://www.python.org/dev/peps/pep-3107
|
||||
|
||||
|
||||
Copyright
|
||||
=========
|
||||
|
|
Loading…
Reference in New Issue