Commit graph

2541 commits

Author SHA1 Message Date
Martin v. Löwis
777367103c Patch #1475845: Raise IndentationError for unexpected indent. 2006-05-04 05:51:03 +00:00
Georg Brandl
1bb6230930 Bug #1385040: don't allow "def foo(a=1, b): pass" in the compiler package. 2006-05-03 18:18:32 +00:00
Guido van Rossum
da5b701aee Get rid of __context__, per the latest changes to PEP 343 and python-dev
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.
2006-05-02 19:47:52 +00:00
Neal Norwitz
c4edb0ec81 SF #1479181: split open() and file() from being aliases for each other. 2006-05-02 04:43:14 +00:00
Martin v. Löwis
8672519ac0 Work around deadlock risk. Will backport. 2006-05-01 06:28:01 +00:00
Georg Brandl
3583cff5a9 Patch #1472854: make the rlcompleter.Completer class usable on non-
UNIX platforms.
2006-04-30 18:14:54 +00:00
Georg Brandl
fa42bd7af4 Patch #1470846: fix urllib2 ProxyBasicAuthHandler. 2006-04-30 07:06:11 +00:00
Martin v. Löwis
b75d43d374 Further changes for #1471883: Edit Misc/NEWS, and
add expat_config.h.
2006-04-29 12:37:25 +00:00
David Goodger
2c1e63f8a4 Added SVN access for Steven Bethard and Talin, for PEP updating. 2006-04-27 22:53:05 +00:00
Anthony Baxter
3556b2db57 2.5a2 2006-04-27 02:13:13 +00:00
Anthony Baxter
c7d00327ab 2.5a2 2006-04-27 02:11:24 +00:00
Hye-Shik Chang
f4795c82df Fix build on MIPS for libffi. I haven't tested this yet because I
don't have an access on MIPS machines.  Will be tested by buildbot. :)
2006-04-26 19:20:26 +00:00
Thomas Wouters
abd08884a6 The result of SF patch #1471578: big-memory tests for strings, lists and
tuples. Lots to be added, still, but this will give big-memory people
something to play with in 2.5 alpha 2, and hopefully get more people to
write these tests.
2006-04-26 15:53:30 +00:00
Thomas Wouters
6dbff33be8 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.)
2006-04-25 13:53:23 +00:00
Neal Norwitz
cfba5f8c2e Restore Walters name 2006-04-25 05:05:03 +00:00
Tim Peters
711bf30b89 Patch #1475231: add a new SKIP doctest option, thanks to
Edward Loper.
2006-04-25 03:31:36 +00:00
Phillip J. Eby
0a07ab97c5 Revert addition of setuptools 2006-04-24 20:53:13 +00:00
Nick Coghlan
da2268feec Fix contextlib.nested to cope with exit methods raising and handling exceptions 2006-04-24 04:37:15 +00:00
Nick Coghlan
27ec1a773c Add unit tests for the -m and -c command line switches 2006-04-24 04:32:47 +00:00
Nick Coghlan
c195d8a995 Note changes made to PEP 343 related documentation 2006-04-24 03:04:43 +00:00
Tim Peters
8dc73d2dc6 Bug #1337990: clarified that doctest does not support examples
requiring both expected output and an exception.

I'll backport to 2.4 next.
2006-04-24 02:03:16 +00:00
Nick Coghlan
4383230b90 Backdated NEWS entry to record the implementation of PEP 338 for alpha 1 2006-04-23 17:04:07 +00:00
Greg Ward
ab05edc0d1 Update optparse to Optik 1.5.1. 2006-04-23 03:47:58 +00:00
Andrew M. Kuchling
1da4a94719 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.)
2006-04-22 02:32:43 +00:00
Tim Peters
21fbd57d66 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.
2006-04-21 21:18:10 +00:00
Skip Montanaro
262fb9256b Allow pstats.Stats creator to specify an alternate to stdout. 2006-04-21 02:31:07 +00:00
Martin v. Löwis
c661b8821b Document r43622. 2006-04-20 04:54:23 +00:00
Marc-André Lemburg
d0b8e83dc5 Add news item for pybench addition. 2006-04-19 15:48:59 +00:00
Armin Rigo
a9017c39ce SF Patch #1062014: AF_UNIX sockets under Linux have a special
abstract namespace that is now fully supported.
2006-04-19 11:50:27 +00:00
Thomas Heller
1b04664eab Change those parts of the Python-api that were functions in 2.4, and
are now macros to exported functions again.

Fixes [ 1465834 ] bdist_wininst preinstall script support is broken in 2.5a1.
2006-04-18 18:51:06 +00:00
Phillip J. Eby
17a35f906c add info re: pydoc, pkgutil, and setuptools additions 2006-04-18 16:45:14 +00:00
Andrew M. Kuchling
6db67821a1 Typo fix 2006-04-18 14:04:57 +00:00
Martin v. Löwis
45294a9562 Remove types from type_list if they have no objects
and unlist_types_without_objects is set.
Give dump_counts a FILE* argument.
2006-04-18 06:24:08 +00:00
Tim Peters
0969e8ad4e At least test_threading_local doesn't leak any more. 2006-04-18 03:02:10 +00:00
Tim Peters
c7605f21ae local.__del__(): This didn't actually do anything, because of too
much convolution <0.5 wink>.  Simplified to the point that it works,
and test_threading_local no longer reports leaks under -R.  Thanks
to Thomas Wouters for initial analysis.
2006-04-17 21:12:33 +00:00
Martin v. Löwis
4be4e657e0 Add reindent target. 2006-04-17 19:25:49 +00:00
Martin v. Löwis
bd30f52881 Patch #790710: Add breakpoint command lists in pdb. 2006-04-17 17:08:37 +00:00
Neal Norwitz
7ebd1f8491 Add some notes about a couple of poorly behaved tests 2006-04-17 01:49:14 +00:00
Neal Norwitz
0f77da36e9 test_cmd_line should not leak any more, ensure an empty reflog file exists if no leaks are found 2006-04-17 01:48:41 +00:00
Martin v. Löwis
0db2a989f3 Patch #1063914: Add clipboard_get. 2006-04-16 20:55:38 +00:00
Martin v. Löwis
19ab6c98cf Initialize structseq types only once. 2006-04-16 18:55:50 +00:00
Martin v. Löwis
d18d5a3153 Update instructions for EXTRA_CFLAGS: configure ignores
them; they have to be passed to make.
2006-04-16 18:55:07 +00:00
Martin v. Löwis
48bbaf2375 Patch #1470875: Building Python with MS Free Compiler. 2006-04-15 18:06:54 +00:00
Martin v. Löwis
4b501e6c7d Patch #1191700: Adjust column alignment in bdb breakpoint lists.
Backported to 2.4.
2006-04-15 08:41:11 +00:00
Martin v. Löwis
7e75f1aafb Patch #1191065: Fix preprocessor problems on systems where recvfrom
is a macro.
2006-04-15 08:35:59 +00:00
Martin v. Löwis
c90b17ec82 Patch #1161914: Add python-config. 2006-04-15 08:13:05 +00:00
Andrew M. Kuchling
db4018f320 Typo fix 2006-04-14 14:54:18 +00:00
Martin v. Löwis
0f48d98b74 Patch #1324762: Change --with-cxx to --with-cxx-main. 2006-04-14 14:34:26 +00:00
Neal Norwitz
615461603c SF Bug #1454485, array.array('u') could crash the interpreter when
passing a string.  Martin already fixed the actual crash by ensuring
Py_UNICODE is unsigned.  As discussed on python-dev, this fix
removes the possibility of creating a unicode string from a raw buffer.

There is an outstanding question of how to fix the crash in 2.4.
2006-04-14 05:20:28 +00:00
Tim Peters
384178c12d Added George Yoshida. 2006-04-14 04:54:58 +00:00