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 — `types.GenericAlias` has extra `__copy__` and `__deepcopy__` in `__dir__` · Issue #105487 · python/cpython Closed Labels interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionRepro: >>> type A[X] = list[X] >>> dir(A[int]) [..., '__copy__', '__deepcopy__', ...] We can access all other attributes, but not >>> A[int].__copy__ Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'types.GenericAlias' object has no attribute '__copy__'. Did you mean: '__doc__'? >>> A[int].__deepcopy__ Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'types.GenericAlias' object has no attribute '__deepcopy__' I am not quite sure what is the right thing to do here 🤔 Linked PRsActivity
MetadataMetadataAssigneesLabelsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — 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. |