[New-bugs-announce] [issue8361] Remove assert in functools.total_ordering

Éric Araujo report at bugs.python.org
Sat Apr 10 13:41:25 CEST 2010


New submission from Éric Araujo <merwok at netwok.org>:

Hello

The correct behavior of functools.total_ordering depends on a check performed with an assert. Attached patch changes it to a test that always runs.

Since it’s a kind of protocol error, I went for TypeError but you may disagree.

Regards

----------
components: Library (Lib)
files: remove-assert-in-total_ordering.diff
keywords: patch
messages: 102770
nosy: merwok, rhettinger
severity: normal
status: open
title: Remove assert in functools.total_ordering
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file16852/remove-assert-in-total_ordering.diff

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


More information about the New-bugs-announce mailing list