- 26 Nis, 2006 2 kayıt (commit)
-
-
Fred Drake yazdı
-
Tim Peters yazdı
uses of it in test_with.py. As a result, test_with has been skipped (due to failing imports) on all buildbot boxes since. Alas, that's not a test failure -- you have to pay attention to the 1 skip unexpected on PLATFORM: test_with kinds of output at the ends of test runs to notice that this got broken. It's likely that more renaming in test_with.py would be desirable.
-
- 25 Nis, 2006 16 kayıt (commit)
-
-
Guido van Rossum yazdı
this can just call __context__ on the underlying lock. (The same change for Semaphore does *not* work!)
-
Thomas Heller yazdı
Patch by Brett Canon, see https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1475959&group_id=71702
-
Thomas Wouters yazdı
MAXPATHLEN-sized buffers for various output-buffers (like to realpath()), and that's correct on BSD platforms, but not Linux (which uses PATH_MAX, and does not define MAXPATHLEN.) Cursory googling suggests Linux is following a newer standard than BSD, but in cases like this, who knows. Using the greater of PATH_MAX and 1024 as a fallback for MAXPATHLEN seems to be the most portable solution.
-
Thomas Wouters yazdı
AF_PACKET cases in getsockaddrarg were missing their own checks for tuple-ness of the address argument, which means a confusing SystemError was raised by PyArg_ParseTuple instead.
-
George Yoshida yazdı
-
Thomas Wouters yazdı
The new char-array used in ioctl calls wasn't explicitly NUL-terminated; quite probably the cause for the test_pty failures on Solaris that we circumvented earlier. (I wasn't able to reproduce it with this patch, but it has been somewhat elusive to start with.)
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
Thomas Wouters yazdı
-
Nick Coghlan yazdı
-
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.
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
-
Tim Peters yazdı
Edward Loper.
-
Trent Mick yazdı
an installed VC6. Otherwise only the first such tree gets checked and this warning doesn't get displayed.
-
- 24 Nis, 2006 12 kayıt (commit)
-
-
Tim Peters yazdı
-
Phillip J. Eby yazdı
-
Andrew M. Kuchling yazdı
'context specifier' in a few places
-
Thomas Wouters yazdı
-
Nick Coghlan yazdı
-
Nick Coghlan yazdı
-
Nick Coghlan yazdı
Fix broken contextlib test from last checkin (I'd've sworn I tested that before checking it in. . .)
-
Nick Coghlan yazdı
-
Nick Coghlan yazdı
-
Nick Coghlan yazdı
-
Nick Coghlan yazdı
-
Tim Peters yazdı
requiring both expected output and an exception. I'll backport to 2.4 next.
-
- 23 Nis, 2006 10 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
Skip Montanaro yazdı
-
Skip Montanaro yazdı
-
Skip Montanaro yazdı
-
Skip Montanaro yazdı
-
Tim Peters yazdı
-
Nick Coghlan yazdı
-
Nick Coghlan yazdı
Take 2 on mentioning the with statement, this time without inadvertently killing the Unicode examples
-
Nick Coghlan yazdı
-