[issue17185] unittest mock create_autospec doesn't correctly replace mocksignature

2018-11-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this being worked on or can I try fixing this? My analysis so far is as below : 1. For functions : inspect.signature looks for attribute __signature__ for functions and while creating the mock for a function since we already have the signature

[issue33578] cjkcodecs missing getstate and setstate implementations

2018-11-05 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue34897] distutils test errors when CXX is not set

2018-11-05 Thread Tal Einat
Tal Einat added the comment: Michael, please read more about comparisons[1] and the None object[2]. [1] https://docs.python.org/3/library/stdtypes.html#comparisons [2] https://docs.python.org/3/library/stdtypes.html#the-null-object -- ___ Python tr

[issue35143] Annotations future requires unparse, but not accessible from Python

2018-11-05 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue35174] Calling for super().__str__ seems to call self.__repr__ in list subclass

2018-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: list inherits __str__ from object. object.__str__() calls __repr__() which can be overridden in subclasses. So if you want repr() and str() returned the same, you need to define only the __repr__() method. This is a feature, not a bug. -- nosy: +se

[issue30129] functools.partialmethod should look more like what it's impersonating.

2018-11-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I did some analysis with the given example script. Related issue where Aaron has some analysis : issue12154 . The patch doesn't break anything since there are no tests for this that also could be added. 1. When we do inspect.getdoc(c.sum) it looks

[issue12154] PyDoc Partial Functions

2018-11-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Adding my analysis here which is also at related issue : issue30129. On the attached program written by @skip.montanaro both c.sum and Child.sum return None for inspect.getdocs thus docstrings in pydoc are empty which can be fixed in both functools

<    1   2