[issue23641] Got rid of bad dunder names

Serhiy Storchaka report at bugs.python.org
Wed Mar 11 15:42:15 CET 2015


New submission from Serhiy Storchaka:

Proposed patch gets rid of uses and mentions of bad dunder names. I.e. names inherited from Python 2: __cmp__, __nonzero__, __getslice__, __unicode__, __div__, etc. They are replaced by correct names (__truediv__, __floordiv__, __eq__, __bool__, etc) or removed. Also fixed typos and other minor bugs. Also added support for __matmul__ and __getnewargs_ex__ in unittest.mock and added tests for __matmul__.

----------
components: Library (Lib), Tests
files: bad_dunder_names.patch
keywords: patch
messages: 237868
nosy: ezio.melotti, michael.foord, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Got rid of bad dunder names
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file38443/bad_dunder_names.patch

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


More information about the Python-bugs-list mailing list