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 <rep...@bugs.python.org> <http://bugs.python.org/issue28792> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com