[issue43824] array.array.__deepcopy__() accepts a parameter of any type

2021-04-13 Thread MingZhe Hu
MingZhe Hu added the comment: copy.deepcopy() takes a memo argument for reason, but this memo object will not be used when passed to array.array.__deepcopy__(), that is, no matter called directly or not, as long as the C implementation of array.array.__deepcopy__() does not use the

[issue43824] array.array.__deepcopy__() accepts a parameter of any type

2021-04-12 Thread MingZhe Hu
New submission from MingZhe Hu : The C implementation of foreign function array.array.__deepcopy__() is declared as follows: https://github.com/python/cpython/blob/d9151cb45371836d39b6d53afb50c5bcd353c661/Modules/arraymodule.c#L855 The second argument is unused in the function body. However

[issue41624] typing.Coroutine documentation

2020-08-24 Thread MingZhe Hu
Change by MingZhe Hu : -- keywords: +patch pull_requests: +21061 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21952 ___ Python tracker <https://bugs.python.org/issu

[issue41624] typing.Coroutine documentation

2020-08-24 Thread MingZhe Hu
New submission from MingZhe Hu : The documentation [1] for Coroutine in typing library writes: class typing.Coroutine(Awaitable[V_co], Generic[T_co T_contra, V_co]) which should be: class typing.Coroutine(Awaitable[V_co], Generic[T_co, T_contra, V_co]) a comma is missed between the first