diff options
author | Batuhan Taskaya <batuhan@python.org> | 2021-06-27 14:58:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-27 14:58:32 (GMT) |
commit | 107a2c59c91b3911bdd6dfdb83271c588c506a5a (patch) | |
tree | 77d8a1c089b367f734ee46f549940ed01eb7191e /Lib/abc.py | |
parent | 9eea201b7c39a69afa2a7978dde40266104154f5 (diff) | |
download | cpython-107a2c59c91b3911bdd6dfdb83271c588c506a5a.zip cpython-107a2c59c91b3911bdd6dfdb83271c588c506a5a.tar.gz cpython-107a2c59c91b3911bdd6dfdb83271c588c506a5a.tar.bz2 |
bpo-40528: fix is_simple(sum)s behavior for attributes (GH-26918)
This is something I noticed while (now discontinued) experimenting
with the idea of annotating operators with location information. Unfortunately
without this addition, adding any `attributes` to stuff like `unaryop`
doesn't change anything since the code assumes they are singletons and
caches all instances. This patch fixes this assumption with including
the attributes as well as constructor fields.
Diffstat (limited to 'Lib/abc.py')
0 files changed, 0 insertions, 0 deletions