[issue29251] [doc] Class __dict__ is only a mapping proxy

2022-03-08 Thread Irit Katriel


Irit Katriel  added the comment:

Thank you Stanley, I agree that this is no longer needed.

--
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29251] [doc] Class __dict__ is only a mapping proxy

2022-02-26 Thread Stanley


Stanley  added the comment:

>From what I can see, the original patch changed

... and the *dict* dictionary is the namespace containing definitions for class 
body and is copied to a standard dictionary to become the __dict__ attribute

into this

... and the *dict* dictionary is copied to the namespace containing definitions 
for the class body, which is referenced by the __dict__ attribute

so that the documentation avoids saying that the attribute is a dictionary, 
instead saying it just references a dictionary. However, current documentation 
says that

... it may be copied or wrapped before becoming the __dict__ attribute

which implies some sort of change already. In this case, is the patch for the 
functions page still applicable?

--
nosy: +slateny

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29251] [doc] Class __dict__ is only a mapping proxy

2021-12-05 Thread Irit Katriel

Irit Katriel  added the comment:

The patch would still apply to Doc/library/functions.rst.


https://docs.python.org/3.10/reference/datamodel.html#the-standard-type-hierarchy
  seems to have been changed quite a lot, but still has:

1. "Special read-only attribute: __dict__ is the module’s namespace as a 
dictionary object."


2. "__dict__
The dictionary containing the class’s namespace."

--
keywords: +easy -patch
nosy: +iritkatriel
title: Class __dict__ is only a mapping proxy -> [doc] Class __dict__ is only a 
mapping proxy
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 
3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com