- 03 Eyl, 2006 2 kayıt (commit)
-
-
Neal Norwitz yazdı
-
Nick Coghlan yazdı
-
- 19 Tem, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
r50697: Comments and docs cleanups, and some little fixes per recommendation from Raymond Hettinger.
-
- 18 Tem, 2006 2 kayıt (commit)
-
-
Tim Peters yazdı
-
Facundo Batista yazdı
-
- 11 May, 2006 1 kayıt (commit)
-
-
Georg Brandl yazdı
-
- 03 May, 2006 1 kayıt (commit)
-
-
Nick Coghlan yazdı
Finish bringing SVN into line with latest version of PEP 343 by getting rid of all remaining references to context objects that I could find. Without a __context__() method context objects no longer exist. Also get test_with working again, and adopt a suggestion from Neal for decimal.Context.get_manager()
-
- 02 May, 2006 1 kayıt (commit)
-
-
Guido van Rossum yazdı
discussion. There are two places of documentation that still mention __context__: Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without spending a whole lot of time thinking about it; and whatsnew, which Andrew usually likes to change himself.
-
- 25 Nis, 2006 1 kayıt (commit)
-
-
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.
-
- 10 Mar, 2006 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Anyway, this is the changes to the with-statement so that __exit__ must return a true value in order for a pending exception to be ignored. The PEP (343) is already updated.
-
- 28 Şub, 2006 1 kayıt (commit)
-
-
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.
-
- 22 Agu, 2005 1 kayıt (commit)
-
-
Georg Brandl yazdı
-
- 20 Haz, 2005 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 07 Haz, 2005 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 27 Mar, 2005 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
instead of raising a TypeError. Allows other types to successfully implement __radd__() style methods. * Remove future division import from test suite. * Remove test suite's shadowing of __builtin__.dir().
-
- 15 Mar, 2005 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 01 Mar, 2005 1 kayıt (commit)
-
-
Brett Cannon yazdı
-
- 06 Şub, 2005 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 18 Ara, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
* The decimal module wouldn't load on builds without threads.
-
- 24 Kas, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 27 Eki, 2004 1 kayıt (commit)
-
-
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.
-
- 26 Eki, 2004 1 kayıt (commit)
-
-
Facundo Batista yazdı
-
- 20 Eki, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
(Contributed by Neal Norwitz. Reviewed by Facundo Bastista.)
-
- 12 Eki, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 09 Eki, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Simplify internal calls and logic for _fix() and _fixexponents(). (Contributed by Facundo Batista.)
-
- 27 Eyl, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 19 Eyl, 2004 1 kayıt (commit)
-
-
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.
-
- 19 Agu, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
updates as bugfixes.
-
- 17 Agu, 2004 1 kayıt (commit)
-
-
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.
-
- 08 Agu, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
* Facilitate reloads of local thread.
-
- 06 Agu, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
* Protect the pre-defined contexts by using a deepcopy() instead of copy(). * Micro-optimization: prefer x&1 over x%2
-
- 14 Tem, 2004 4 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
Raymond Hettinger yazdı
-
Raymond Hettinger yazdı
by the locals() call in the context constructor. * Remove unnecessary properties for int, exp, and sign which duplicated information returned by as_tuple().
-
Raymond Hettinger yazdı
* Context.create_decimal can take a zero default just like Decimal(). * Fix typo in comment.
-
- 10 Tem, 2004 1 kayıt (commit)
-
-
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.
-
- 09 Tem, 2004 2 kayıt (commit)
-
-
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.
-
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.
-
- 08 Tem, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 07 Tem, 2004 1 kayıt (commit)
-
-
Tim Peters yazdı
-