[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor
STINNER Victor added the comment: I pushed quickly my patch, so Julien can rebase his patch on top of that. I like his patch because it changes bisect to use FASTCALL which makes bisect faster! -- ___ Python tracker

[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 45713818fd81 by Victor Stinner in branch 'default': Issue #28792: Remove aliases from _bisect https://hg.python.org/cpython/rev/45713818fd81 -- nosy: +python-dev ___ Python tracker

[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor
STINNER Victor added the comment: Oh, bisect() was renamed to bisect_right() and insort() renamed to insort_right() in the changeset 67b3ac439f64 of Python 2.1. The aliases created for "backward compatibility" are for compatibility with... Python 2.0 :-) The aliases were never deprecated. Mayb

[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread Julien Palard
Julien Palard added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue28792] bisect: implement aliases in Python, remove C aliases

2016-11-24 Thread STINNER Victor
New submission from STINNER Victor: Attached patch simplifies the _bisect module: remove _bisect.bisect and _bisect.insort aliases. Aliases are created in Lib/bisect.py. I wrote the patch to prepare the C code for Argument Clinic, see issue #28754. Note: Lib/test/test_bisect.py already contain