1. 22 Mar, 2018 1 kayıt (commit)
  2. 18 Şub, 2018 1 kayıt (commit)
  3. 12 Ock, 2018 1 kayıt (commit)
  4. 06 Haz, 2017 1 kayıt (commit)
  5. 15 Mar, 2017 1 kayıt (commit)
    • Nate's avatar
      bpo-29581: Make ABCMeta.__new__ pass **kwargs to type.__new__ (#527) · bd583ef9
      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
      bd583ef9
  6. 22 Tem, 2014 1 kayıt (commit)
  7. 24 Ara, 2013 1 kayıt (commit)
  8. 25 May, 2013 1 kayıt (commit)
  9. 13 Ara, 2012 1 kayıt (commit)
  10. 15 Ara, 2011 1 kayıt (commit)
  11. 24 Şub, 2011 1 kayıt (commit)
  12. 21 Agu, 2010 1 kayıt (commit)
  13. 17 Agu, 2010 1 kayıt (commit)
  14. 22 Haz, 2010 1 kayıt (commit)
  15. 23 Mar, 2010 1 kayıt (commit)
  16. 08 Mar, 2010 1 kayıt (commit)
  17. 28 Ock, 2010 1 kayıt (commit)
  18. 27 Ock, 2010 4 kayıt (commit)
  19. 04 May, 2009 3 kayıt (commit)
  20. 28 Şub, 2009 2 kayıt (commit)
  21. 02 Eyl, 2008 2 kayıt (commit)
  22. 17 Mar, 2008 1 kayıt (commit)
  23. 28 Şub, 2008 2 kayıt (commit)
    • Christian Heimes's avatar
      Merged revisions… · 9e7f1d2e
      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
      ........
      9e7f1d2e
    • Jeffrey Yasskin's avatar
      Move abc._Abstract into object by adding a new flag Py_TPFLAGS_IS_ABSTRACT, · 960b9b7a
      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.
      960b9b7a
  24. 14 Şub, 2008 1 kayıt (commit)
    • Christian Heimes's avatar
      Merged revisions… · 68f5fbe9
      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.
      ........
      68f5fbe9
  25. 13 Şub, 2008 1 kayıt (commit)
    • Jeffrey Yasskin's avatar
      Working on issue #1762: Brought · 57bd60b4
      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__.
      57bd60b4
  26. 05 Şub, 2008 1 kayıt (commit)
  27. 07 Ock, 2008 2 kayıt (commit)
  28. 30 Kas, 2007 2 kayıt (commit)
    • Christian Heimes's avatar
      Backmerge -r59233:59232 · 45031dfd
      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()
      45031dfd
    • Christian Heimes's avatar
      Fix for bug #1109 · 2e510fb9
      Christian Heimes yazdı
      Warning required when calling register() on an ABCMeta subclass.
      2e510fb9
  29. 22 Kas, 2007 1 kayıt (commit)
  30. 23 Eki, 2007 1 kayıt (commit)