This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients Gabriele Tornetta, bup, ethan.furman, paul.moore, r.david.murray, steven.daprano
Date 2021-12-09.16:52:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639068742.13.0.876096878607.issue32683@roundup.psfhosted.org>
In-reply-to
Content
$ python3
Python 3.8.10 (default, Sep 28 2021, 16:10:42) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> object
<class 'object'>

>>> import builtins
>>> builtins.object
<class 'object'>

>>> builtins.object = int
>>> object
<class 'int'>


Python is very much a language about responsibility.  If Django is overriding `__getattribute__` then it is their responsibility to ensure that everything still works properly.  If something doesn't, we file a bug report and/or implement a work-around.

As for side-effect free -- I'm not sure than anything in Python is guaranteed to be side-effect free, except maybe `is`.

There is no bug here, everything is working as intended.
History
Date User Action Args
2021-12-09 16:52:22ethan.furmansetrecipients: + ethan.furman, paul.moore, steven.daprano, r.david.murray, bup, Gabriele Tornetta
2021-12-09 16:52:22ethan.furmansetmessageid: <1639068742.13.0.876096878607.issue32683@roundup.psfhosted.org>
2021-12-09 16:52:22ethan.furmanlinkissue32683 messages
2021-12-09 16:52:22ethan.furmancreate