Serhiy Storchaka
|
d94a65a069
|
bpo-25732: Make functools.total_ordering implementing __ne__. (#3748)
Patch by Raymond Hettinger.
|
2017-09-25 14:41:34 +03:00 |
Raymond Hettinger
|
911da47996
|
Issue #11628: cmp_to_key should use__slots__.
|
2011-03-22 13:20:59 -07:00 |
Éric Araujo
|
374274db7f
|
Fix the total_ordering decorator to handle cross-type comparisons
that could lead to infinite recursion (closes #10042).
|
2011-03-19 04:29:36 +01:00 |
Georg Brandl
|
ea56710cda
|
#5341: fix typo and adapt docstring syntax.
|
2010-04-14 08:56:01 +00:00 |
Raymond Hettinger
|
4e45512de2
|
Issue 8361: Remove assert from functools.total_ordering
|
2010-04-10 16:57:36 +00:00 |
Raymond Hettinger
|
e1d665a90e
|
Classes that override __eq__ also need to define __hash__.
|
2010-04-05 18:53:43 +00:00 |
Raymond Hettinger
|
bb006cf26c
|
Add tests for cmp_to_key.
Adopt PEP 8 compliant function name.
Factor-out existing uses cmp_to_key.
Update documentation to use internal pointers instead of external resource.
|
2010-04-04 21:45:01 +00:00 |
Raymond Hettinger
|
a551f31d48
|
Add functools.CmpToKey()
|
2010-04-04 18:34:45 +00:00 |
Brett Cannon
|
83e818415a
|
Copy reduce() to _functools so to have functools.reduce() not raise a warning
from usage under -3.
|
2008-08-09 23:30:55 +00:00 |
Guido van Rossum
|
d51b579c51
|
Patch # 1739906 by Christian Heimes -- add reduce to functools (importing
it from __builtin__).
|
2007-08-27 20:51:00 +00:00 |
Andrew M. Kuchling
|
41eb7164df
|
[Bug #1576241] Let functools.wraps work with built-in functions
|
2006-10-27 16:39:10 +00:00 |
Andrew M. Kuchling
|
efb57072fe
|
Typo fix
|
2006-10-26 19:16:46 +00:00 |
Nick Coghlan
|
676725db92
|
Add functools.update_wrapper() and functools.wraps() as described in PEP 356
|
2006-06-08 13:54:49 +00:00 |
Tim Peters
|
27c70598a8
|
Whitespace normalization.
|
2006-05-30 02:26:46 +00:00 |
Nick Coghlan
|
08490146df
|
When adding a module like functools, it helps to let SVN know about the file.
|
2006-05-29 20:27:44 +00:00 |