summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* minor adjustment suggested by Peter GephardtFred Drake2006-04-261-1/+1
|
* markup fixes, cleanupFred Drake2006-04-262-38/+67
|
* Rev 45706 renamed stuff in contextlib.py, but didn't renameTim Peters2006-04-261-8/+8
| | | | | | | | | | | | | | 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.
* Implement MvL's improvement on __context__ in Condition;Guido van Rossum2006-04-251-5/+1
| | | | | this can just call __context__ on the underlying lock. (The same change for Semaphore does *not* work!)
* Fix compiler warnings on Darwin.Thomas Heller2006-04-251-5/+5
| | | | | Patch by Brett Canon, see https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1475959&group_id=71702
* Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python usesThomas Wouters2006-04-253-0/+12
| | | | | | | | | 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.
* Fix SF bug #1476111: SystemError in socket sendto. The AF_INET6 andThomas Wouters2006-04-251-0/+16
| | | | | | 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.
* minor tweakGeorge Yoshida2006-04-251-1/+1
|
* SF bug/patch #1433877: string parameter to ioctl not null terminatedThomas Wouters2006-04-253-13/+12
| | | | | | | 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.)
* Rework context terminologyAndrew M. Kuchling2006-04-251-21/+22
|
* Add two items; easy_install is now off the table, though pkgutil still isAndrew M. Kuchling2006-04-251-1/+14
|
* Fix markup glitch in unittest docs. Will backport.Thomas Wouters2006-04-251-1/+1
|
* Fix latex typoNick Coghlan2006-04-251-1/+1
|
* Move the PEP 343 documentation and implementation closer to theNick Coghlan2006-04-257-139/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Revert previous change, SKIP had a versionadded elsewhereNeal Norwitz2006-04-251-1/+0
|
* Restore Walters nameNeal Norwitz2006-04-251-1/+1
|
* versionadded for SKIPNeal Norwitz2006-04-251-0/+1
|
* Patch #1475231: add a new SKIP doctest option, thanks toTim Peters2006-04-254-0/+47
| | | | Edward Loper.
* Put break at correct level so *all* root HKEYs acutally get checked forTrent Mick2006-04-251-1/+1
| | | | | an installed VC6. Otherwise only the first such tree gets checked and this warning doesn't get displayed.
* Whitespace normalization.Tim Peters2006-04-241-1/+1
|
* Revert addition of setuptoolsPhillip J. Eby2006-04-2440-10118/+0
|
* Edits, using the new termAndrew M. Kuchling2006-04-241-29/+31
| | | | 'context specifier' in a few places
* Stop test_tcl's testLoadTk from leaking the Tk commands 'loadtk' registers.Thomas Wouters2006-04-241-0/+1
|
* More reliable version of new command line tests that just checks the exit codesNick Coghlan2006-04-241-2/+37
|
* Back out new command line tests (broke buildbot)Nick Coghlan2006-04-241-55/+0
|
* Fix broken contextlib test from last checkin (I'd've sworn I tested that ↵Nick Coghlan2006-04-241-0/+2
| | | | before checking it in. . .)
* Fix contextlib.nested to cope with exit methods raising and handling exceptionsNick Coghlan2006-04-243-1/+33
|
* Add unit tests for the -m and -c command line switchesNick Coghlan2006-04-242-0/+57
|
* Change PEP 343 related documentation to use the term context specifier ↵Nick Coghlan2006-04-244-67/+78
| | | | instead of context object
* Note changes made to PEP 343 related documentationNick Coghlan2006-04-241-1/+5
|
* Bug #1337990: clarified that `doctest` does not support examplesTim Peters2006-04-242-4/+9
| | | | | | requiring both expected output and an exception. I'll backport to 2.4 next.
* Add two itemsAndrew M. Kuchling2006-04-231-0/+29
|
* Edits to the PEP 343 sectionAndrew M. Kuchling2006-04-231-65/+62
|
* correct exampleSkip Montanaro2006-04-231-9/+11
|
* it's always helpful if the example works...Skip Montanaro2006-04-231-6/+8
|
* minor tweakSkip Montanaro2006-04-231-2/+2
|
* first cut at trace module docSkip Montanaro2006-04-232-1/+96
|
* Whitespace normalization.Tim Peters2006-04-231-2/+2
|
* Backdated NEWS entry to record the implementation of PEP 338 for alpha 1Nick Coghlan2006-04-231-0/+7
|
* Take 2 on mentioning the with statement, this time without inadvertently ↵Nick Coghlan2006-04-231-3/+5
| | | | killing the Unicode examples
* Add a (very) brief mention of the with statement to the end of chapter 8Nick Coghlan2006-04-231-3/+33
|
* Update with statement documentation to use same terminology as 2.5a1 ↵Nick Coghlan2006-04-232-27/+38
| | | | implementation
* Updated the sqlite3 module to the external pysqlite 2.2.2 version.Gerhard Häring2006-04-2322-314/+311
|
* Update contextlib documentation to use the same terminology as the module ↵Nick Coghlan2006-04-231-7/+8
| | | | implementation
* Add a Context Types section to parallel the Iterator Types section (uses the ↵Nick Coghlan2006-04-231-0/+96
| | | | same terminology as the 2.5a1 implementation)
* Patch 1471761 - test for broken poll at runtimeRonald Oussoren2006-04-231-17/+66
| | | | | This patch checks if poll is broken when the select module is loaded instead of doing so at configure-time. This functionality is only active on Mac OS X.
* Patch 1471925 - Weak linking support for OSXRonald Oussoren2006-04-233-2/+98
| | | | | | This patch causes several symbols in the socket and posix module to be weakly linked on OSX and disables usage of ftime on OSX. These changes make it possible to use a binary build on OSX 10.4 on a 10.3 system.
* wrap SyntaxError with \exception{}George Yoshida2006-04-231-1/+1
|
* Update optparse to Optik 1.5.1.Greg Ward2006-04-234-179/+633
|
* Remove $CJKCodecs$ RCS tags. The CJKCodecs isn't maintained outsideHye-Shik Chang2006-04-2211-11/+0
| | | | anymore.