[issue40296] help(list[int]) fails

2022-03-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 ___ Python tracker ___

[issue40296] help(list[int]) fails

2022-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e207d721fcea01123f0e3edb83b6decdcb5e5e63 by Miss Islington (bot) in branch '3.9': [3.9] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). (GH-31976) (GH-31981)

[issue40296] help(list[int]) fails

2022-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a5b7678a67ac99edd50822827b772e7d9afc8e64 by Serhiy Storchaka in branch '3.10': [3.10] bpo-40296: Fix supporting generic aliases in pydoc (GH-30253). (GH-31976) https://github.com/python/cpython/commit/a5b7678a67ac99edd50822827b772e7d9afc8e64

[issue40296] help(list[int]) fails

2022-03-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +30071 pull_request: https://github.com/python/cpython/pull/31981 ___ Python tracker

[issue40296] help(list[int]) fails

2022-03-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +30066 pull_request: https://github.com/python/cpython/pull/31976 ___ Python tracker ___

[issue40296] help(list[int]) fails

2022-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cd44afc573e2e2de8d7e5a9119c347373066cd10 by Serhiy Storchaka in branch 'main': bpo-40296: Fix supporting generic aliases in pydoc (GH-30253) https://github.com/python/cpython/commit/cd44afc573e2e2de8d7e5a9119c347373066cd10 --

[issue40296] help(list[int]) fails

2022-03-17 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- nosy: +JelleZijlstra ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40296] help(list[int]) fails

2022-03-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Fix test_html_doc in test_pydoc ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40296] help(list[int]) fails

2021-12-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +28474 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30253 ___ Python tracker

[issue40296] help(list[int]) fails

2020-04-16 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, I think help() or pydoc needs to special-case this. (Didn't your other PR attempt to fix this?) Note that issubclass(list[int].__class__, type) returns True -- the __class__ attribute in this case is taken from __origin__, while type() returns the

[issue40296] help(list[int]) fails

2020-04-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that isinstance(list[int], type) returns True, but list[int] is not actually an instance of type. >>> isinstance(list[int], type) True >>> issubclass(type(list[int]), type) False >>> type.__subclasses__(list[int]) Traceback (most recent call

[issue40296] help(list[int]) fails

2020-04-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : >>> help(list[int]) Traceback (most recent call last): File "", line 1, in File "/home/serhiy/py/cpython/Lib/_sitebuiltins.py", line 103, in __call__ return pydoc.help(*args, **kwds) File "/home/serhiy/py/cpython/Lib/pydoc.py", line 1905, in