2afbf96 | Fred Drake | 26 April 2006, 05:15:41 UTC | markup fixes, cleanup | 26 April 2006, 05:15:41 UTC |
d845e53 | Tim Peters | 26 April 2006, 01:15:53 UTC | Rev 45706 renamed stuff in contextlib.py, but didn't rename 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. | 26 April 2006, 01:15:53 UTC |
8f56d02 | Guido van Rossum | 25 April 2006, 20:12:45 UTC | Implement MvL's improvement on __context__ in Condition; this can just call __context__ on the underlying lock. (The same change for Semaphore does *not* work!) | 25 April 2006, 20:12:45 UTC |
4e1777d | Thomas Heller | 25 April 2006, 18:26:08 UTC | Fix compiler warnings on Darwin. Patch by Brett Canon, see https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1475959&group_id=71702 | 25 April 2006, 18:26:08 UTC |
1ddba60 | Thomas Wouters | 25 April 2006, 15:29:46 UTC | Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses 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. | 25 April 2006, 15:29:46 UTC |
0452049 | Thomas Wouters | 25 April 2006, 15:08:10 UTC | Fix SF bug #1476111: SystemError in socket sendto. The AF_INET6 and 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. | 25 April 2006, 15:08:10 UTC |
3bbbc49 | George Yoshida | 25 April 2006, 14:09:58 UTC | minor tweak | 25 April 2006, 14:09:58 UTC |
6dbff33 | Thomas Wouters | 25 April 2006, 13:53:23 UTC | SF bug/patch #1433877: string parameter to ioctl not null terminated 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.) | 25 April 2006, 13:53:23 UTC |
d798a18 | Andrew M. Kuchling | 25 April 2006, 12:47:25 UTC | Rework context terminology | 25 April 2006, 12:47:25 UTC |
b33842a | Andrew M. Kuchling | 25 April 2006, 12:31:38 UTC | Add two items; easy_install is now off the table, though pkgutil still is | 25 April 2006, 12:31:38 UTC |
34a70c6 | Thomas Wouters | 25 April 2006, 12:28:56 UTC | Fix markup glitch in unittest docs. Will backport. | 25 April 2006, 12:28:56 UTC |
e708cf5 | Nick Coghlan | 25 April 2006, 11:05:56 UTC | Fix latex typo | 25 April 2006, 11:05:56 UTC |
a7e820a | Nick Coghlan | 25 April 2006, 10:56:51 UTC | Move the PEP 343 documentation and implementation closer to the 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. | 25 April 2006, 10:56:51 UTC |
327ea38 | Neal Norwitz | 25 April 2006, 05:49:42 UTC | Revert previous change, SKIP had a versionadded elsewhere | 25 April 2006, 05:49:42 UTC |
cfba5f8 | Neal Norwitz | 25 April 2006, 05:05:03 UTC | Restore Walters name | 25 April 2006, 05:05:03 UTC |
85c767a | Neal Norwitz | 25 April 2006, 05:04:35 UTC | versionadded for SKIP | 25 April 2006, 05:04:35 UTC |
711bf30 | Tim Peters | 25 April 2006, 03:31:36 UTC | Patch #1475231: add a new SKIP doctest option, thanks to Edward Loper. | 25 April 2006, 03:31:36 UTC |
e96b229 | Trent Mick | 25 April 2006, 00:34:50 UTC | Put break at correct level so *all* root HKEYs acutally get checked for an installed VC6. Otherwise only the first such tree gets checked and this warning doesn't get displayed. | 25 April 2006, 00:34:50 UTC |
be635cd | Tim Peters | 24 April 2006, 22:45:13 UTC | Whitespace normalization. | 24 April 2006, 22:45:13 UTC |
0a07ab9 | Phillip J. Eby | 24 April 2006, 20:53:13 UTC | Revert addition of setuptools | 24 April 2006, 20:53:13 UTC |
0a7ed8c | Andrew M. Kuchling | 24 April 2006, 14:30:47 UTC | Edits, using the new term 'context specifier' in a few places | 24 April 2006, 14:30:47 UTC |
a6c67b5 | Thomas Wouters | 24 April 2006, 11:37:13 UTC | Stop test_tcl's testLoadTk from leaking the Tk commands 'loadtk' registers. | 24 April 2006, 11:37:13 UTC |
03f76cf | Nick Coghlan | 24 April 2006, 05:52:15 UTC | More reliable version of new command line tests that just checks the exit codes | 24 April 2006, 05:52:15 UTC |
314dadb | Nick Coghlan | 24 April 2006, 05:24:26 UTC | Back out new command line tests (broke buildbot) | 24 April 2006, 05:24:26 UTC |
0e01962 | Nick Coghlan | 24 April 2006, 04:59:28 UTC | Fix broken contextlib test from last checkin (I'd've sworn I tested that before checking it in. . .) | 24 April 2006, 04:59:28 UTC |
da2268f | Nick Coghlan | 24 April 2006, 04:37:15 UTC | Fix contextlib.nested to cope with exit methods raising and handling exceptions | 24 April 2006, 04:37:15 UTC |
27ec1a7 | Nick Coghlan | 24 April 2006, 04:32:47 UTC | Add unit tests for the -m and -c command line switches | 24 April 2006, 04:32:47 UTC |
877cf23 | Nick Coghlan | 24 April 2006, 04:17:02 UTC | Change PEP 343 related documentation to use the term context specifier instead of context object | 24 April 2006, 04:17:02 UTC |
c195d8a | Nick Coghlan | 24 April 2006, 03:04:43 UTC | Note changes made to PEP 343 related documentation | 24 April 2006, 03:04:43 UTC |
8dc73d2 | Tim Peters | 24 April 2006, 02:03:16 UTC | Bug #1337990: clarified that `doctest` does not support examples requiring both expected output and an exception. I'll backport to 2.4 next. | 24 April 2006, 02:03:16 UTC |
d4c2177 | Andrew M. Kuchling | 23 April 2006, 21:51:10 UTC | Add two items | 23 April 2006, 21:51:10 UTC |
edb575e | Andrew M. Kuchling | 23 April 2006, 21:01:04 UTC | Edits to the PEP 343 section | 23 April 2006, 21:01:04 UTC |
7b1559a | Skip Montanaro | 23 April 2006, 19:32:14 UTC | correct example | 23 April 2006, 19:32:14 UTC |
9ab2f45 | Skip Montanaro | 23 April 2006, 19:30:50 UTC | it's always helpful if the example works... | 23 April 2006, 19:30:50 UTC |
56a3706 | Skip Montanaro | 23 April 2006, 19:26:33 UTC | minor tweak | 23 April 2006, 19:26:33 UTC |
47767c3 | Skip Montanaro | 23 April 2006, 19:14:27 UTC | first cut at trace module doc | 23 April 2006, 19:14:27 UTC |
81b7e57 | Tim Peters | 23 April 2006, 18:13:45 UTC | Whitespace normalization. | 23 April 2006, 18:13:45 UTC |
4383230 | Nick Coghlan | 23 April 2006, 17:04:07 UTC | Backdated NEWS entry to record the implementation of PEP 338 for alpha 1 | 23 April 2006, 17:04:07 UTC |
09b1bc3 | Nick Coghlan | 23 April 2006, 16:35:19 UTC | Take 2 on mentioning the with statement, this time without inadvertently killing the Unicode examples | 23 April 2006, 16:35:19 UTC |
e0ea50b | Nick Coghlan | 23 April 2006, 16:05:04 UTC | Add a (very) brief mention of the with statement to the end of chapter 8 | 23 April 2006, 16:05:04 UTC |
fee3dfc | Nick Coghlan | 23 April 2006, 15:39:16 UTC | Update with statement documentation to use same terminology as 2.5a1 implementation | 23 April 2006, 15:39:16 UTC |
3e99c0a | Gerhard Häring | 23 April 2006, 15:24:26 UTC | Updated the sqlite3 module to the external pysqlite 2.2.2 version. | 23 April 2006, 15:24:26 UTC |
5ef9d9f | Nick Coghlan | 23 April 2006, 15:14:37 UTC | Update contextlib documentation to use the same terminology as the module implementation | 23 April 2006, 15:14:37 UTC |
84faa85 | Nick Coghlan | 23 April 2006, 15:13:32 UTC | Add a Context Types section to parallel the Iterator Types section (uses the same terminology as the 2.5a1 implementation) | 23 April 2006, 15:13:32 UTC |
32fd16e | Ronald Oussoren | 23 April 2006, 12:36:23 UTC | Patch 1471761 - test for broken poll at runtime 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. | 23 April 2006, 12:36:23 UTC |
d06b6f2 | Ronald Oussoren | 23 April 2006, 11:59:25 UTC | Patch 1471925 - Weak linking support for OSX 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. | 23 April 2006, 11:59:25 UTC |
a1d3b10 | George Yoshida | 23 April 2006, 09:27:10 UTC | wrap SyntaxError with \exception{} | 23 April 2006, 09:27:10 UTC |
ab05edc | Greg Ward | 23 April 2006, 03:47:58 UTC | Update optparse to Optik 1.5.1. | 23 April 2006, 03:47:58 UTC |
cdd4328 | Hye-Shik Chang | 22 April 2006, 15:48:15 UTC | Remove $CJKCodecs$ RCS tags. The CJKCodecs isn't maintained outside anymore. | 22 April 2006, 15:48:15 UTC |
51a23fe | George Yoshida | 22 April 2006, 15:27:14 UTC | - add versionadded tag - make arbitrary arguments come last | 22 April 2006, 15:27:14 UTC |
449be38 | Martin v. Löwis | 22 April 2006, 15:19:54 UTC | Port to Python 2.5. Drop .DEF file. Change output file names to .pyd. | 22 April 2006, 15:19:54 UTC |
3c134a2 | George Yoshida | 22 April 2006, 15:10:49 UTC | Typo fixes | 22 April 2006, 15:10:49 UTC |
6685128 | Martin v. Löwis | 22 April 2006, 11:40:03 UTC | Fix more ssize_t issues. | 22 April 2006, 11:40:03 UTC |
26fd960 | Martin v. Löwis | 22 April 2006, 11:15:41 UTC | Fix more ssize_t problems. | 22 April 2006, 11:15:41 UTC |
8694a6d | Neal Norwitz | 22 April 2006, 06:07:46 UTC | Add libctypes as a dep | 22 April 2006, 06:07:46 UTC |
6d7cd7d | Tim Peters | 22 April 2006, 05:52:59 UTC | Whitespace normalization. | 22 April 2006, 05:52:59 UTC |
1da4a94 | Andrew M. Kuchling | 22 April 2006, 02:32:43 UTC | Add Gregory K. Johnson's revised version of mailbox.py (funded by the 2005 Summer of Code). The revision adds a number of new mailbox classes that support adding and removing messages; these classes also support mailbox locking and default to using email.Message instead of rfc822.Message. The old mailbox classes are largely left alone for backward compatibility. The exception is the Maildir class, which was present in the old module and now inherits from the new classes. The Maildir class's interface is pretty simple, though, so I think it'll be compatible with existing code. (The change to the NEWS file also adds a missing word to a different news item, which unfortunately required rewrapping the line.) | 22 April 2006, 02:32:43 UTC |
81efcf6 | Andrew M. Kuchling | 22 April 2006, 02:06:03 UTC | Make copy of test_mailbox.py. We'll still want to check the backward compatibility classes in the new mailbox.py that I'll be committing in a few minutes. One change has been made: the tests use len(mbox) instead of len(mbox.boxes). The 'boxes' attribute was never documented and contains some internal state that seems unlikely to have been useful. | 22 April 2006, 02:06:03 UTC |
6ce35a9 | Andrew M. Kuchling | 22 April 2006, 01:58:40 UTC | Fix comment typo | 22 April 2006, 01:58:40 UTC |
3ccdb6a | Andrew M. Kuchling | 22 April 2006, 01:51:41 UTC | Typo fixes | 22 April 2006, 01:51:41 UTC |
a93ee47 | Phillip J. Eby | 21 April 2006, 21:53:37 UTC | Guido wrote contextlib, not me, but thanks anyway. ;) | 21 April 2006, 21:53:37 UTC |
21fbd57 | Tim Peters | 21 April 2006, 21:18:10 UTC | SF bug #1473760 TempFile can hang on Windows. Python 2.4 changed ntpath.abspath to do an import inside the function. As a result, due to Python's import lock, anything calling abspath on Windows (directly, or indirectly like tempfile.TemporaryFile) hung when it was called from a thread spawned as a side effect of importing a module. This is a depressingly frequent problem, and deserves a more general fix. I'm settling for a micro-fix here because this specific one accounts for a report of Zope Corp's ZEO hanging on Windows, and it was an odd way to change abspath to begin with (ntpath needs a different implementation depending on whether we're actually running on Windows, and the _obvious_ way to arrange for that is not to bury a possibly-failing import _inside_ the function). Note that if/when other micro-fixes of this kind get made, the new Lib/test/threaded_import_hangers.py is a convenient place to add tests for them. | 21 April 2006, 21:18:10 UTC |
9f7e58a | Thomas Heller | 21 April 2006, 18:29:17 UTC | Documentation for ctypes. I think that 'generic operating system services' is the best category. Note that the Doc/lib/libctypes.latex file is generated from reST sources. You are welcome to make typo fixes, and I'll try to keep the reST sources in sync, but markup changes would be lost - they should be fixed in the tool that creates the latex file. The conversion script is external/ctypes/docs/manual/mkpydoc.py. | 21 April 2006, 18:29:17 UTC |
6ff67ef | Thomas Heller | 21 April 2006, 16:51:04 UTC | Merge in changes from ctypes 0.9.9.6 upstream version. | 21 April 2006, 16:51:04 UTC |
4b75a7c | Thomas Heller | 21 April 2006, 16:48:56 UTC | Merge in changes from ctypes 0.9.9.6 upstream version. | 21 April 2006, 16:48:56 UTC |
f9cc594 | Tim Peters | 21 April 2006, 16:34:54 UTC | Whitespace normalization. | 21 April 2006, 16:34:54 UTC |
cd84b92 | George Yoshida | 21 April 2006, 16:34:17 UTC | Correct the grammar | 21 April 2006, 16:34:17 UTC |
db8955b | Hye-Shik Chang | 21 April 2006, 16:28:34 UTC | Backport p3yk r45619: Add empty __init__ methods for stateful multibytecodec instances. This resolves a problem found by Thomas Wouters: http://mail.python.org/pipermail/python-dev/2006-April/064051.html | 21 April 2006, 16:28:34 UTC |
0d84028 | George Yoshida | 21 April 2006, 16:21:12 UTC | Fix a markup. This generated a ugly code, "P>". | 21 April 2006, 16:21:12 UTC |
568f1d0 | Thomas Wouters | 21 April 2006, 13:54:43 UTC | Py_ssize_t issue; repr()'ing a very large string would result in a teensy string, because of a cast to int. | 21 April 2006, 13:54:43 UTC |
07b3508 | Martin v. Löwis | 21 April 2006, 13:48:26 UTC | Upgrade to vsextcomp 0.8 (and thus the SDK for W2k3SP1) | 21 April 2006, 13:48:26 UTC |
e78eeb1 | Andrew M. Kuchling | 21 April 2006, 13:26:42 UTC | Add item | 21 April 2006, 13:26:42 UTC |
fb08e73 | Andrew M. Kuchling | 21 April 2006, 13:08:02 UTC | Add \label to make better HTML filenames | 21 April 2006, 13:08:02 UTC |
42c6e2f | Andrew M. Kuchling | 21 April 2006, 13:01:45 UTC | Add two items; typographical improvement for the 'with' statement; minor edits | 21 April 2006, 13:01:45 UTC |
ba67a8a | Andrew M. Kuchling | 21 April 2006, 12:58:30 UTC | Typo, grammar fixes. This file could use another proofreading pass. | 21 April 2006, 12:58:30 UTC |
3a7b58e | Andrew M. Kuchling | 21 April 2006, 12:57:58 UTC | Add TODO item | 21 April 2006, 12:57:58 UTC |
b0a1e6b | Andrew M. Kuchling | 21 April 2006, 12:57:35 UTC | Add explanatory message | 21 April 2006, 12:57:35 UTC |
84a7ee7 | Andrew M. Kuchling | 21 April 2006, 12:38:41 UTC | Typo fixes | 21 April 2006, 12:38:41 UTC |
4e90810 | Thomas Wouters | 21 April 2006, 11:26:56 UTC | Fix variable/format-char discrepancy in new-style class __getitem__, __delitem__, __setslice__ and __delslice__ hooks. This caused test_weakref and test_userlist to fail in the p3yk branch (where UserList, like all classes, is new-style) on amd64 systems, with open-ended slices: the sys.maxint value for empty-endpoint was transformed into -1. | 21 April 2006, 11:26:56 UTC |
64ed043 | Martin v. Löwis | 21 April 2006, 10:00:46 UTC | Package setuptools | 21 April 2006, 10:00:46 UTC |
262fb92 | Skip Montanaro | 21 April 2006, 02:31:07 UTC | Allow pstats.Stats creator to specify an alternate to stdout. | 21 April 2006, 02:31:07 UTC |
c34b931 | Skip Montanaro | 21 April 2006, 01:33:40 UTC | This is a long-ago patch I submitted to SF (1100924) to time the gc passes. Barry approved it awhile ago. Been sitting in my sandbox for awhile as well. | 21 April 2006, 01:33:40 UTC |
f75225b | Jack Jansen | 20 April 2006, 21:38:17 UTC | - tp_init shouldn't call base class tp_init by default - tp_new (which was apparently always overridden:-) called base class tp_init in stead of tp_new. | 20 April 2006, 21:38:17 UTC |
3b675d2 | Andrew M. Kuchling | 20 April 2006, 13:43:21 UTC | Change a footnote to a parenthetical (in two senses) paragraph | 20 April 2006, 13:43:21 UTC |
af015cf | Andrew M. Kuchling | 20 April 2006, 13:39:40 UTC | Argh, make another markup fix | 20 April 2006, 13:39:40 UTC |
3343218 | Andrew M. Kuchling | 20 April 2006, 13:38:36 UTC | Markup fix | 20 April 2006, 13:38:36 UTC |
63fe9b5 | Andrew M. Kuchling | 20 April 2006, 13:36:06 UTC | Add some items; add "New module" consistently; make contextlib.closing example more interesting and more correct (thanks Gustavo!); add a name | 20 April 2006, 13:36:06 UTC |
449b24e | Neal Norwitz | 20 April 2006, 06:56:05 UTC | Address issues brought up by MvL on python-checkins. I tested this with valgrind on amd64. The man pages I found for diff architectures are inconsistent on this. I'm not entirely sure this change is correct for all architectures either. Perhaps we should just over-allocate and not worry about it? | 20 April 2006, 06:56:05 UTC |
0d21b1e | Neal Norwitz | 20 April 2006, 06:44:42 UTC | Whitespace, fix indentation | 20 April 2006, 06:44:42 UTC |
c661b88 | Martin v. Löwis | 20 April 2006, 04:54:23 UTC | Document r43622. | 20 April 2006, 04:54:23 UTC |
94785ef | Skip Montanaro | 20 April 2006, 01:29:48 UTC | Correct implementation and documentation of os.confstr. Add a simple test case. I've yet to figure out how to provoke a None return I can test. | 20 April 2006, 01:29:48 UTC |
d0b8e83 | Marc-André Lemburg | 19 April 2006, 15:48:59 UTC | Add news item for pybench addition. | 19 April 2006, 15:48:59 UTC |
dc5f808 | Thomas Wouters | 19 April 2006, 15:38:01 UTC | Make s.replace() work with explicit counts exceeding 2Gb. | 19 April 2006, 15:38:01 UTC |
c311f64 | Marc-André Lemburg | 19 April 2006, 15:27:33 UTC | Adding pybench 1.3 to the Tools/ directory. | 19 April 2006, 15:27:33 UTC |
79cdce3 | Thomas Wouters | 19 April 2006, 15:09:44 UTC | Teach Python/ceval.c's inlining of 'str += str' about Py_ssize_t sizes; this was having funny effects when called on >2Gb strings ;P | 19 April 2006, 15:09:44 UTC |
4abb366 | Thomas Wouters | 19 April 2006, 14:50:15 UTC | Use Py_ssize_t to hold the 'width' argument to the ljust, rjust, center and zfill stringmethods, so they can create strings larger than 2Gb on 64bit systems (even win64.) The unicode versions of these methods already did this right. | 19 April 2006, 14:50:15 UTC |
6719131 | Andrew M. Kuchling | 19 April 2006, 12:55:39 UTC | Write datetime.strptime() item; show use of @contextmanager in defining __context__ methods; minor edits; add two names | 19 April 2006, 12:55:39 UTC |
a9017c3 | Armin Rigo | 19 April 2006, 11:50:27 UTC | SF Patch #1062014: AF_UNIX sockets under Linux have a special abstract namespace that is now fully supported. | 19 April 2006, 11:50:27 UTC |
ab012af | Brett Cannon | 18 April 2006, 23:58:52 UTC | Added a pycremoval rule. Called by clean, it removes all .pyc and .pyo files. Handy to have as a separate rule from clean when mucking around with bytecode generation. | 18 April 2006, 23:58:52 UTC |
503b73e | Thomas Wouters | 18 April 2006, 23:04:00 UTC | Add proper svn magic to ignore .pyc/.pyo files in Lib/setuptools (and subdirs) like it already exists for the other Lib subdirs. | 18 April 2006, 23:04:00 UTC |