Mercurial > cpython-lru_cache-weakref
diff Include/object.h @ 40401:88133417dfd0
- patch #1600346 submitted by Tomer Filiba
- Renamed nb_nonzero slots to nb_bool
- Renamed __nonzero__ methods to __bool__
- update core, lib, docs, and tests to match
| author | Jack Diederich <jackdied@gmail.com> |
|---|---|
| date | Tue, 28 Nov 2006 19:15:13 +0000 |
| parents | aa59466ebd9c |
| children | 6ebad2a6b990 |
line wrap: on
line diff
--- a/Include/object.h Wed Nov 22 14:42:41 2006 +0000 +++ b/Include/object.h Tue Nov 28 19:15:13 2006 +0000 @@ -160,7 +160,7 @@ unaryfunc nb_negative; unaryfunc nb_positive; unaryfunc nb_absolute; - inquiry nb_nonzero; + inquiry nb_bool; unaryfunc nb_invert; binaryfunc nb_lshift; binaryfunc nb_rshift;
