- 22 Mar, 2018 1 kayıt (commit)
-
-
jab yazdı
This improves error message for situations when a non-class is checked w.r.t. an abstract base class.
-
- 18 Şub, 2018 1 kayıt (commit)
-
-
Ivan Levkivskyi yazdı
This adds C versions of methods used by ABCMeta that improve performance of various ABC operations.
-
- 12 Ock, 2018 1 kayıt (commit)
-
-
yahya-abou-imran yazdı
-
- 06 Haz, 2017 1 kayıt (commit)
-
-
Aaron Hall, MBA yazdı
-
- 15 Mar, 2017 1 kayıt (commit)
-
-
Nate yazdı
Many metaclasses in the standard library don't play nice with __init_subclass__. This bug makes ABCMeta in particular with __init_subclass__, which is an 80/20 solution for me personally. AFAICT, a general solution to this problem requires updating all metaclasses in the standard library to make sure they pass **kwargs to type.__new__, whereas this PR only fixes ABCMeta. For context, see https://bugs.python.org/issue29581. * added a test combining ABCMeta and __init_subclass__ * Added NEWS item
-
- 22 Tem, 2014 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
fully qualified class names of Python implemented classes.
-
- 24 Ara, 2013 1 kayıt (commit)
-
-
R David Murray yazdı
-
- 25 May, 2013 1 kayıt (commit)
-
-
Łukasz Langa yazdı
-
- 13 Ara, 2012 1 kayıt (commit)
-
-
Andrew Svetlov yazdı
Patch by Bruno Dupuis.
-
- 15 Ara, 2011 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
Thanks to Darren Dale for patch.
-
- 24 Şub, 2011 1 kayıt (commit)
-
-
Éric Araujo yazdı
-
- 21 Agu, 2010 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
This also causes the _weakref module to be built into the core.
-
- 17 Agu, 2010 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 22 Haz, 2010 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
Be generous in abc.py to allow this.
-
- 23 Mar, 2010 1 kayıt (commit)
-
-
Florent Xicluna yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78800 | florent.xicluna | 2010-03-08 16:20:28 +0100 (lun, 08 mar 2010) | 2 lines #7624: Fix isinstance(foo(), collections.Callable) for old-style classes. ........
-
- 08 Mar, 2010 1 kayıt (commit)
-
-
Florent Xicluna yazdı
-
- 28 Ock, 2010 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 27 Ock, 2010 4 kayıt (commit)
-
-
Benjamin Peterson yazdı
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77791 | benjamin.peterson | 2010-01-26 20:25:58 -0600 (Tue, 26 Jan 2010) | 9 lines Merged revisions 77789 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77789 | benjamin.peterson | 2010-01-26 20:16:42 -0600 (Tue, 26 Jan 2010) | 1 line raise a clear TypeError when trying to register a non-class ........ ................
-
Benjamin Peterson yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77789 | benjamin.peterson | 2010-01-26 20:16:42 -0600 (Tue, 26 Jan 2010) | 1 line raise a clear TypeError when trying to register a non-class ........
-
Benjamin Peterson yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77788 | benjamin.peterson | 2010-01-26 20:15:28 -0600 (Tue, 26 Jan 2010) | 1 line for UserDict to be compatible with abcs, it must subclass object ........ r77789 | benjamin.peterson | 2010-01-26 20:16:42 -0600 (Tue, 26 Jan 2010) | 1 line raise a clear TypeError when trying to register a non-class ........
-
Benjamin Peterson yazdı
-
- 04 May, 2009 3 kayıt (commit)
-
-
Walter Dörwald yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72278 | walter.doerwald | 2009-05-04 18:03:03 +0200 (Mo, 04 Mai 2009) | 2 lines Fix typos. ........
-
Walter Dörwald yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72278 | walter.doerwald | 2009-05-04 18:03:03 +0200 (Mo, 04 Mai 2009) | 2 lines Fix typos. ........
-
Walter Dörwald yazdı
-
- 28 Şub, 2009 2 kayıt (commit)
-
-
Georg Brandl yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70078 | georg.brandl | 2009-02-28 22:33:10 +0100 (Sa, 28 Feb 2009) | 2 lines Fix 3k-style metaclass syntax in docstrings. ........
-
Georg Brandl yazdı
-
- 02 Eyl, 2008 2 kayıt (commit)
-
-
Nick Coghlan yazdı
svn+ssh://pythondev@svn.python.org/python/trunk ........ r66144 | nick.coghlan | 2008-09-02 20:14:47 +1000 (Tue, 02 Sep 2008) | 1 line Issue 3747: Fix caching in ABCMeta.__subclasscheck__ (R: Georg Brandl) ........
-
Nick Coghlan yazdı
-
- 17 Mar, 2008 1 kayıt (commit)
-
-
Jeffrey Yasskin yazdı
an exception. Issue reported by Joseph Armbruster.
-
- 28 Şub, 2008 2 kayıt (commit)
-
-
Christian Heimes yazdı
Merged revisions 61038,61042-61045,61047,61050,61053,61055-61056,61061-61062,61066,61068,61070,61083,61085,61092-61103 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r61098 | jeffrey.yasskin | 2008-02-28 05:45:36 +0100 (Thu, 28 Feb 2008) | 7 lines Move abc._Abstract into object by adding a new flag Py_TPFLAGS_IS_ABSTRACT, which forbids constructing types that have it set. The effect is to speed ./python.exe -m timeit -s 'import abc' -s 'class Foo(object): __metaclass__ = abc.ABCMeta' 'Foo()' up from 2.5us to 0.201us. This fixes issue 1762. ........ r61099 | jeffrey.yasskin | 2008-02-28 06:53:18 +0100 (Thu, 28 Feb 2008) | 3 lines Speed test_socketserver up from 28.739s to 0.226s, simplify the logic, and make sure all tests run even if some fail. ........ r61100 | jeffrey.yasskin | 2008-02-28 07:09:19 +0100 (Thu, 28 Feb 2008) | 21 lines Thread.start() used sleep(0.000001) to make sure it didn't return before the new thread had started. At least on my MacBook Pro, that wound up sleeping for a full 10ms (probably 1 jiffy). By using an Event instead, we can be absolutely certain that the thread has started, and return more quickly (217us). Before: $ ./python.exe -m timeit -s 'from threading import Thread' 't = Thread(); t.start(); t.join()' 100 loops, best of 3: 10.3 msec per loop $ ./python.exe -m timeit -s 'from threading import Thread; t = Thread()' 't.isAlive()' 1000000 loops, best of 3: 0.47 usec per loop After: $ ./python.exe -m timeit -s 'from threading import Thread' 't = Thread(); t.start(); t.join()' 1000 loops, best of 3: 217 usec per loop $ ./python.exe -m timeit -s 'from threading import Thread; t = Thread()' 't.isAlive()' 1000000 loops, best of 3: 0.86 usec per loop To be fair, the 10ms isn't CPU time, and other threads including the spawned one get to run during it. There are also some slightly more complicated ways to get back the .4us in isAlive() if we want. ........ r61101 | raymond.hettinger | 2008-02-28 10:23:48 +0100 (Thu, 28 Feb 2008) | 1 line Add repeat keyword argument to itertools.product(). ........ r61102 | christian.heimes | 2008-02-28 12:18:49 +0100 (Thu, 28 Feb 2008) | 1 line The empty tuple is usually a singleton with a much higher refcnt than 1 ........
-
Jeffrey Yasskin yazdı
which forbids constructing types that have it set. The effect is to speed ./python.exe -m timeit -s 'import abc' -s 'class Foo(object): __metaclass__ = abc.ABCMeta' 'Foo()' up from 2.5us to 0.201us. This fixes issue 1762.
-
- 14 Şub, 2008 1 kayıt (commit)
-
-
Christian Heimes yazdı
Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60697-60700,60705-60706,60708,60711,60714,60720,60724-60730,60732,60736,60742,60744,60746,60748,60750-60766,60769-60786 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r60752 | mark.dickinson | 2008-02-12 22:31:59 +0100 (Tue, 12 Feb 2008) | 5 lines Implementation of Fraction.limit_denominator. Remove Fraction.to_continued_fraction and Fraction.from_continued_fraction ........ r60754 | mark.dickinson | 2008-02-12 22:40:53 +0100 (Tue, 12 Feb 2008) | 3 lines Revert change in r60712: turn alternate constructors back into classmethods instead of staticmethods. ........ r60755 | mark.dickinson | 2008-02-12 22:46:54 +0100 (Tue, 12 Feb 2008) | 4 lines Replace R=fractions.Fraction with F=fractions.Fraction in test_fractions.py. This should have been part of the name change from Rational to Fraction. ........ r60758 | georg.brandl | 2008-02-13 08:20:22 +0100 (Wed, 13 Feb 2008) | 3 lines #2063: correct order of utime and stime in os.times() result on Windows. ........ r60762 | jeffrey.yasskin | 2008-02-13 18:58:04 +0100 (Wed, 13 Feb 2008) | 7 lines Working on issue #1762: Brought ./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__. ........ r60765 | brett.cannon | 2008-02-13 20:15:44 +0100 (Wed, 13 Feb 2008) | 5 lines Fix --enable-universalsdk and its comment line so that zsh's flag completion works. Thanks to Jeroen Ruigrok van der Werven for the fix. ........ r60771 | kurt.kaiser | 2008-02-14 01:08:55 +0100 (Thu, 14 Feb 2008) | 2 lines Bring NEWS.txt up to date from check-in msgs. ........ r60772 | raymond.hettinger | 2008-02-14 02:08:02 +0100 (Thu, 14 Feb 2008) | 3 lines Update notes on Decimal. ........ r60773 | raymond.hettinger | 2008-02-14 03:41:22 +0100 (Thu, 14 Feb 2008) | 1 line Fix decimal repr which should have used single quotes like other reprs. ........ r60785 | jeffrey.yasskin | 2008-02-14 07:12:24 +0100 (Thu, 14 Feb 2008) | 11 lines Performance optimizations on Fraction's constructor. ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3)` 31.7 usec/loop -> 9.2 usec/loop ./python.exe -m timeit -s 'from fractions import Fraction' 'Fraction(3, 2)'` 27.7 usec/loop -> 9.32 usec/loop ./python.exe -m timeit -s 'from fractions import Fraction; f = Fraction(3, 2)' 'Fraction(f)' 31.9 usec/loop -> 14.3 usec/loop ........ r60786 | jeffrey.yasskin | 2008-02-14 08:49:25 +0100 (Thu, 14 Feb 2008) | 5 lines Change simple instances (in Fraction) of self.numerator and self.denominator to self._numerator and self._denominator. This speeds abs() up from 12.2us to 10.8us and trunc() from 2.07us to 1.11us. This doesn't change _add and friends because they're more complicated. ........
-
- 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__.
-
- 05 Şub, 2008 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
This makes it possible to use ABCs in weakref.py (which will be done in a later checkin).
-
- 07 Ock, 2008 2 kayıt (commit)
-
-
Christian Heimes yazdı
-
Jeffrey Yasskin yazdı
ABCs.
-
- 30 Kas, 2007 2 kayıt (commit)
-
-
Christian Heimes yazdı
Guido said: Please roll this back. The error message you added is inappropriate when the parameter to a legitimate register() call is omitted, e.g. collections.Sequence.register()
-
Christian Heimes yazdı
Warning required when calling register() on an ABCMeta subclass.
-
- 22 Kas, 2007 1 kayıt (commit)
-
-
Guido van Rossum yazdı
With some changes of my own thrown in (e.g. backport of r58107).
-
- 23 Eki, 2007 1 kayıt (commit)
-
-
Georg Brandl yazdı
-