PEP 667: Add discussion and implementation link (#3688)
This commit is contained in:
parent
6a6f355bcb
commit
2179ebc927
|
@ -2,9 +2,9 @@ PEP: 667
|
|||
Title: Consistent views of namespaces
|
||||
Author: Mark Shannon <mark@hotpy.org>,
|
||||
Tian Gao <gaogaotiantian@hotmail.com>
|
||||
Discussions-To: https://discuss.python.org/t/46631
|
||||
Status: Draft
|
||||
Type: Standards Track
|
||||
Content-Type: text/x-rst
|
||||
Created: 30-Jul-2021
|
||||
Python-Version: 3.13
|
||||
Post-History: 20-Aug-2021
|
||||
|
@ -61,7 +61,8 @@ prints ``1``
|
|||
This is inconsistent, and confusing.
|
||||
With this PEP both examples would print ``2``.
|
||||
|
||||
Worse than that, the current behavior can result in strange bugs [1]_
|
||||
Worse than that, the current behavior can result in strange `bugs
|
||||
<https://github.com/python/cpython/issues/74929>`__.
|
||||
|
||||
There are no compensating advantages for the current behavior;
|
||||
it is unreliable and slow.
|
||||
|
@ -452,23 +453,14 @@ of both the frame and mapping proxy until the next cycle collection.
|
|||
|
||||
``PyEval_GetLocals()`` already creates a cycle, as it returns a borrowed reference.
|
||||
|
||||
Implementation
|
||||
==============
|
||||
|
||||
References
|
||||
==========
|
||||
|
||||
.. [1] https://bugs.python.org/issue30744
|
||||
The implementation is in development as a `draft pull request on GitHub
|
||||
<https://github.com/python/cpython/pull/115153>`__.
|
||||
|
||||
Copyright
|
||||
=========
|
||||
|
||||
This document is placed in the public domain or under the
|
||||
CC0-1.0-Universal license, whichever is more permissive.
|
||||
|
||||
..
|
||||
Local Variables:
|
||||
mode: indented-text
|
||||
indent-tabs-mode: nil
|
||||
sentence-end-double-space: t
|
||||
fill-column: 70
|
||||
coding: utf-8
|
||||
End:
|
||||
|
|
Loading…
Reference in New Issue