PEP 667: Add discussion and implementation link (#3688)

This commit is contained in:
Tian Gao 2024-03-05 02:54:24 -08:00 committed by GitHub
parent 6a6f355bcb
commit 2179ebc927
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 15 deletions

View File

@ -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: