[issue29327] SystemError or crash in sorted(iterable=
Serhiy Storchaka
report at bugs.python.org
Fri Jan 20 01:04:20 EST 2017
Serhiy Storchaka added the comment:
> While Python 3.5 doesn't crash, I consider that it has also the bug. So I
> added Python 3.5 in Versions.
The patch uses new feature of 3.6 -- supporting positional-only parameters in
PyArg_ParseTupleAndKeywords() (see issue26282). Since passing an iterable as
a keyword argument never worked, it is safe to make the first parameter
positional-only.
Actually I think that argument parsing code of sorted() and list.sort() can be
simplified, but this is separate issue. I tried to make the bugfix patch simple.
----------
title: SystemError or crash in sorted(iterable=[]) -> SystemError or crash in sorted(iterable=
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29327>
_______________________________________
More information about the Python-bugs-list
mailing list