1. 03 Eyl, 2006 2 kayıt (commit)
  2. 19 Tem, 2006 1 kayıt (commit)
  3. 18 Tem, 2006 2 kayıt (commit)
  4. 11 May, 2006 1 kayıt (commit)
  5. 03 May, 2006 1 kayıt (commit)
  6. 02 May, 2006 1 kayıt (commit)
  7. 25 Nis, 2006 1 kayıt (commit)
    • Nick Coghlan's avatar
      Move the PEP 343 documentation and implementation closer to the · a7e820a4
      Nick Coghlan yazdı
      terminology in the alpha 1 documentation.
      
       - "context manager" reverts to its alpha 1 definition
       - the term "context specifier" goes away entirely
       - contextlib.GeneratorContextManager is renamed GeneratorContext
      
      There are still a number of changes relative to alpha 1:
      
        - the expression in the with statement is explicitly called the
          "context expression" in the language reference
        - the terms 'with statement context', 'context object' or 'with
          statement context' are used in several places instead of a bare
          'context'. The aim of this is to avoid ambiguity in relation to the
          runtime context set up when the block is executed, and the context
          objects that already exist in various application domains (such as
          decimal.Context)
        - contextlib.contextmanager is renamed to contextfactory
          This best reflects the nature of the function resulting from the
          use of that decorator
        - decimal.ContextManager is renamed to WithStatementContext
          Simple dropping the 'Manager' part wasn't possible due to the
          fact that decimal.Context already exists and means something
          different. WithStatementContext is ugly but workable.
      
      A technically unrelated change snuck into this commit:
      contextlib.closing now avoids the overhead of creating a
      generator, since it's trivial to implement that particular
      context manager directly.
      a7e820a4
  8. 10 Mar, 2006 1 kayıt (commit)
  9. 28 Şub, 2006 1 kayıt (commit)
    • Guido van Rossum's avatar
      Updates to the with-statement: · 1a5e21e0
      Guido van Rossum yazdı
      - New semantics for __exit__() -- it must re-raise the exception
        if type is not None; the with-statement itself doesn't do this.
        (See the updated PEP for motivation.)
      
      - Added context managers to:
        - file
        - thread.LockType
        - threading.{Lock,RLock,Condition,Semaphore,BoundedSemaphore}
        - decimal.Context
      
      - Added contextlib.py, which defines @contextmanager, nested(), closing().
      
      - Unit tests all around; bot no docs yet.
      1a5e21e0
  10. 22 Agu, 2005 1 kayıt (commit)
  11. 20 Haz, 2005 1 kayıt (commit)
  12. 07 Haz, 2005 1 kayıt (commit)
  13. 27 Mar, 2005 1 kayıt (commit)
  14. 15 Mar, 2005 1 kayıt (commit)
  15. 01 Mar, 2005 1 kayıt (commit)
  16. 06 Şub, 2005 1 kayıt (commit)
  17. 18 Ara, 2004 1 kayıt (commit)
  18. 24 Kas, 2004 1 kayıt (commit)
  19. 27 Eki, 2004 1 kayıt (commit)
    • Raymond Hettinger's avatar
      SF patch #1053375. · 17931de1
      Raymond Hettinger yazdı
      (Contributed by Facundo Batista.)
      
      Code simplification by eliminating the unnecessary and error-prone
      convolutions for the previously weird sign convention in _WorkRep().
      Makes the code more understandable, more reliable, and a bit faster.
      17931de1
  20. 26 Eki, 2004 1 kayıt (commit)
  21. 20 Eki, 2004 1 kayıt (commit)
  22. 12 Eki, 2004 1 kayıt (commit)
  23. 09 Eki, 2004 1 kayıt (commit)
    • Raymond Hettinger's avatar
      SF patch #1043218 · dab988dd
      Raymond Hettinger yazdı
      Simplify internal calls and logic for _fix() and _fixexponents().
      (Contributed by Facundo Batista.)
      dab988dd
  24. 27 Eyl, 2004 1 kayıt (commit)
  25. 19 Eyl, 2004 1 kayıt (commit)
    • Raymond Hettinger's avatar
      SF patch #1020845: Decimal performance enhancements · 636a6b10
      Raymond Hettinger yazdı
      (Contributed by Nick Coghlan.)
      
      Various code cleanups and optimizations (saves about 40% on testsuite
      execution time and on the telco benchmark).
      
      * caches results of various operations on self (esp. checks for being
        a special value).
      
      * _WorkRep now uses ints and longs for intermediate computations.
      636a6b10
  26. 19 Agu, 2004 1 kayıt (commit)
  27. 17 Agu, 2004 1 kayıt (commit)
    • Raymond Hettinger's avatar
      Revise max() and min() to comply with the 8/2/2004 update to the specification · d6c700a3
      Raymond Hettinger yazdı
      (version 1.45):
      
      The max and min operations follow the rules in the current IEEE 754 revision draft:
      if one operand is a quiet NaN and the other is number, then the number is always returned
      if both operands are finite and equal in numerical value then an ordering is applied:
          if the signs differ then max returns the operand with the positive sign and
          min returns the operand with the negative sign; if the signs are the same then
          the exponent is used to select the result.
      d6c700a3
  28. 08 Agu, 2004 1 kayıt (commit)
  29. 06 Agu, 2004 1 kayıt (commit)
  30. 14 Tem, 2004 4 kayıt (commit)
  31. 10 Tem, 2004 1 kayıt (commit)
    • Raymond Hettinger's avatar
      Improve Context construction and representation: · bf440697
      Raymond Hettinger yazdı
      * Rename "trap_enablers" to just "traps".
      * Simplify names of "settraps" and "setflags" to just "traps" and "flags".
      * Show "capitals" in the context representation
      * Simplify the Context constructor to match its repr form so that only
        the set flags and traps need to be listed.
      * Representation can now be run through eval().
      
      Improve the error message when the Decimal constructor is given a float.
      
      The test suite no longer needs a duplicate reset_flags method.
      bf440697
  32. 09 Tem, 2004 2 kayıt (commit)
    • Raymond Hettinger's avatar
      * Update the test suite to reflect that ConversionSyntax was no longer · d87ac8f2
      Raymond Hettinger yazdı
        public.
      * Removed the non-signal conditions from __all__.
      * Removed the XXX comment which was resolved.
      * Use ^ instead of operator.xor
      * Remove the threading lock which is no longer necessary.
      d87ac8f2
    • Raymond Hettinger's avatar
      Module and tests: · 5aa478ba
      Raymond Hettinger yazdı
      * Map conditions to related signals.
      * Make contexts unhashable.
      * Eliminate used "default" attribute in exception definitions.
      * Eliminate the _filterfunc in favor of a straight list.
      
      Docs:
      * Eliminate documented references to conditions that are not signals.
      * Eliminate parenthetical notes such as "1/0 --> Inf" which are no
        longer true with the new defaults.
      5aa478ba
  33. 08 Tem, 2004 1 kayıt (commit)
  34. 07 Tem, 2004 1 kayıt (commit)