Message408141
$ 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. |
|
Date |
User |
Action |
Args |
2021-12-09 16:52:22 | ethan.furman | set | recipients:
+ ethan.furman, paul.moore, steven.daprano, r.david.murray, bup, Gabriele Tornetta |
2021-12-09 16:52:22 | ethan.furman | set | messageid: <1639068742.13.0.876096878607.issue32683@roundup.psfhosted.org> |
2021-12-09 16:52:22 | ethan.furman | link | issue32683 messages |
2021-12-09 16:52:22 | ethan.furman | create | |
|