[New-bugs-announce] [issue28792] bisect: implement aliases in Python, remove C aliases

STINNER Victor report at bugs.python.org
Thu Nov 24 16:07:47 EST 2016


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 contains two unit tests:

    def test_backcompatibility(self):
        self.assertEqual(self.module.bisect, self.module.bisect_right)

    def test_backcompatibility(self):
        self.assertEqual(self.module.insort, self.module.insort_right)

----------
files: bisect.patch
keywords: patch
messages: 281651
nosy: haypo, larry, mdk, rhettinger
priority: normal
severity: normal
status: open
title: bisect: implement aliases in Python, remove C aliases
versions: Python 3.7
Added file: http://bugs.python.org/file45627/bisect.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28792>
_______________________________________


More information about the New-bugs-announce mailing list