[issue36437] method_descriptor surprising error message when self is passed a keyword argument

2021-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue36437] method_descriptor surprising error message when self is passed a keyword argument

2019-03-26 Thread STINNER Victor
New submission from STINNER Victor : _PyMethodDescr_FastCallKeywords() is an optimization in ceval.c to call methods. Problem: it introduces a wrong bug. >>> import io >>> help(io.FileIO.write) Help on method_descriptor: write(self, b, /) Write buffer b to file, return number of bytes wri