[issue31118] Make super() work with staticmethod by using __class__ for both arguments to super()

2017-08-04 Thread Ashwini Chaudhary
Changes by Ashwini Chaudhary <monty.sin...@gmail.com>: -- components: +Interpreter Core ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue31118] Make super() work with staticmethod by using __class__ for both arguments to super()

2017-08-04 Thread Ashwini Chaudhary
New submission from Ashwini Chaudhary: >From this question I noticed that super() doesn't work with static methods >with no arguments: https://stackoverflow.com/q/45498675/846892 My question is what's the issue with using __class__ for both arguments to super() in case of static

[issue27412] float('∞') returns 8.0

2016-06-29 Thread Ashwini Chaudhary
Ashwini Chaudhary added the comment: float('∞') raised ValueError as expected: ValueError: could not convert string to float: '∞' I am not sure how you ended up with 8.0. -- nosy: +ashwch ___ Python tracker <rep...@bugs.python.org>

[issue25665] typing.NamedTuple instances are not picklable.

2015-11-19 Thread Ashwini Chaudhary
New submission from Ashwini Chaudhary: Currently namedtuple(https://hg.python.org/cpython/file/3.5/Lib/collections/__init__.py#l418) sets the `__module__` attribute by looking up `__name__` in calling frame's globals. As in the case of `typing.NamedTuple` it is always going to be 'typing

[issue25665] typing.NamedTuple instances are not picklable.

2015-11-19 Thread Ashwini Chaudhary
Ashwini Chaudhary added the comment: Attached patch. -- keywords: +patch Added file: http://bugs.python.org/file41073/issue25665.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue13510] Clarify that readlines() is not needed to iterate over a file

2013-03-27 Thread Ashwini Chaudhary
Changes by Ashwini Chaudhary monty.sin...@gmail.com: -- nosy: +montysinngh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13510 ___ ___ Python-bugs

[issue17383] Error in documentation /2/tutorial/modules.html#more-on-modules

2013-03-07 Thread Ashwini Chaudhary
Changes by Ashwini Chaudhary monty.sin...@gmail.com: -- nosy: +montysinngh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17383 ___ ___ Python-bugs

[issue16701] Docs missing the behavior of += (in-place add) for lists.

2012-12-16 Thread Ashwini Chaudhary
New submission from Ashwini Chaudhary: I think the python docs are missing the behavior of += for lists. It actually calls list.extend() but can't find that anywhere in docs expect in source code, http://hg.python.org/cpython/file/2d2d4807a3ed/Objects/listobject.c#l892. -- assignee