[issue42332] add __weakref__ to types.GenericAlias

2020-11-17 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42332] add __weakref__ to types.GenericAlias

2020-11-17 Thread miss-islington
miss-islington added the comment: New changeset 71ba5f52d2a80e7beffc923c54c0b6345cd0637a by kj in branch '3.9': [3.9] bpo-42332: Add weakref slot to types.GenericAlias (GH-23250) (GH-23309) https://github.com/python/cpython/commit/71ba5f52d2a80e7beffc923c54c0b6345cd0637a --

[issue42332] add __weakref__ to types.GenericAlias

2020-11-15 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +22200 pull_request: https://github.com/python/cpython/pull/23309 ___ Python tracker ___ ___

[issue42332] add __weakref__ to types.GenericAlias

2020-11-15 Thread miss-islington
miss-islington added the comment: New changeset 384b7a4bd988986bca227c7e85c32d766da74708 by kj in branch 'master': bpo-42332: Add weakref slot to types.GenericAlias (GH-23250) https://github.com/python/cpython/commit/384b7a4bd988986bca227c7e85c32d766da74708 -- nosy: +miss-islington

[issue42332] add __weakref__ to types.GenericAlias

2020-11-12 Thread Guido van Rossum
Guido van Rossum added the comment: I think it's reasonable to consider this a bug to be fixed. -- ___ Python tracker ___ ___

[issue42332] add __weakref__ to types.GenericAlias

2020-11-12 Thread Tin Tvrtković
Tin Tvrtković added the comment: It would be great if we could get this into 3.9. -- ___ Python tracker ___ ___ Python-bugs-list

[issue42332] add __weakref__ to types.GenericAlias

2020-11-12 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch nosy: +kj nosy_count: 2.0 -> 3.0 pull_requests: +22147 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23250 ___ Python tracker

[issue42332] add __weakref__ to types.GenericAlias

2020-11-12 Thread Tin Tvrtković
New submission from Tin Tvrtković : For example, dict[int, int] cannot be used with singledispatch because types.GenericAlias doesn't support weak references. I'm an author of a third party library (https://github.com/Tinche/cattrs) for which this functionality would be useful. Here's a