- 13 Şub, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
./python.exe -m timeit -s 'from fractions import Fraction; f = Fraction(3, 2)' 'isinstance(3, Fraction); isinstance(f, Fraction)' from 12.3 usec/loop to 3.44 usec/loop and ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3, 2)' from 48.8 usec to 23.6 usec by avoiding genexps and sets in __instancecheck__ and inlining the common case from __subclasscheck__.
-
- 07 Ock, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
ABCs.
-
- 22 Kas, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
With some changes of my own thrown in (e.g. backport of r58107).
-
- 10 Eyl, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Backport abc.py and isinstance/issubclass overloading to 2.6. I had to backport test_typechecks.py myself, and make one small change to abc.py to avoid duplicate work when x.__class__ and type(x) are the same.
-