GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [3.12] Behavior change: __getattr__ gets called after property raises NotImplementedError · Issue #103551 · python/cpython Closed Closed Copy link Labels type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionHi, Version: While testing pytest in 3.12 on Windows, we noticed an odd behavior that we believe might be a bug/regression. Consider this minimal example: class Stat: @property def owner(self): print("--> accessing owner") raise NotImplementedError("owner not implemented") def __getattr__(self, item): return getattr(1, "foobar") s = Stat() s.owner (Using Running this in Python
In Python The property is still being accessed (as shown by the Changing the example slightly: class Stat: @property def owner(self): print("--> accessing owner") raise NotImplementedError("owner not implemented") def __getattr__(self, item): raise AttributeError("foobar") s = Stat() s.owner In Python Please let us know if you need more information. Activity
MetadataMetadataAssigneesLabelstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |