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 — `code_richcompare` swallows errors · Issue #146199 · python/cpython Closed Labels extension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:This is a sub-issue for #146102 and more details can be found here. In class BadStr(str): _armed = False def __eq__(self, other): if BadStr._armed and isinstance(other, str) and str.__eq__(self, other): raise RuntimeError("Poison!") return str.__eq__(self, other) def __hash__(self): return str.__hash__(self) c1 = compile("pass", "test", "exec") c2 = c1.replace(co_name=BadStr("poison")) c3 = compile("pass", "poison", "exec") BadStr._armed = True c2 == c3 # assertion: !_PyErr_Occurred(tstate) CPython versions tested on:CPython main branch Operating systems tested on:Linux Linked PRsActivity
MetadataMetadataAssigneesLabelsextension-modulesC modules in the Modules dirC modules in the Modules dirtype-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. |