Senthil Kumaran
7bc0d872dd
Issue3243 - Support iterable bodies in httplib. Patch contributions by Xuanji Li and Chris AtLee.
2010-12-19 10:49:52 +00:00
Georg Brandl
8a60e94802
Bump to 3.2b2.
2010-12-19 10:30:28 +00:00
Georg Brandl
aedd2899c2
#6075 : make idle work with both Carbon AquaTk and Cocoa AquaTk. Patch by Kevin Walzer and Ned Deily.
2010-12-19 10:10:32 +00:00
Michael Foord
b3468f79ef
Issue 10611. Issue 9857. Improve the way exception handling, including test skipping, is done inside TestCase.run
2010-12-19 03:19:47 +00:00
Ezio Melotti
addc6f5a21
#10573 : use actual/expected consistently in unittest methods. The order of the args of assertCountEqual is also changed.
2010-12-18 20:00:04 +00:00
R. David Murray
63563cdf9d
#9286 : Fix the rfc822 parser to preserve whitespace in address local part.
...
Such addresses are not RFC compliant except under the 'obsolete syntax'
rules, but before this fix the whitespace was dropped from the input,
concatenating the pieces. That breaks one of the principles of the
email package, that of preserving the input as much as possible.
It also denies the application program the opportunity to apply its
own heuristics to interpretation of such non-compliant addresses.
It is possible users of the email package were depending on the local
part always being a single token, so this fix will not be backported.
2010-12-18 18:25:38 +00:00
Antoine Pitrou
2b37ce7f30
NEWS entry for r87373
2010-12-18 17:59:18 +00:00
R. David Murray
b68a7bc70c
#10404 : Use ctl-button-1 for context menus on OSX Idle.
...
This provides access to the context menus where they previously could
not be accessed due to the way OSX Tk binds buttons. It also
improves platform consistency.
Patch by Ned Deily.
2010-12-18 17:19:10 +00:00
Ezio Melotti
ac53ab64a6
#5587 : add a repr to dict_proxy objects. Patch by David Stanek and Daniel Urban.
2010-12-18 14:59:43 +00:00
Steven Bethard
fd311a712d
Add subparser aliases for argparse. Resolves issue 9324. Approved by Georg for beta2 on the tracker.
2010-12-18 11:19:23 +00:00
R. David Murray
52d1b4e62f
#9907 : call rl_initialize early when using editline on OSX
...
editline rl_initialize apparently discards any mappings done before it
is called, which makes tab revert to file completion instead of inserting
a tab. So now on OSX we call rl_initialize first if we are using
readline, and then re-read the users .editrc (if any) afterward so they
can still override our defaults.
Patch by Ned Deily, modified by Ronald Oussoren.
2010-12-18 03:48:32 +00:00
Łukasz Langa
71b37a5d6d
100% test coverage, better mapping protocol compatibility, some minor bugfixes
2010-12-17 21:56:32 +00:00
Martin v. Löwis
0e74cacdff
Upgrade to sqlite3 3.7.4.
2010-12-17 21:04:09 +00:00
Martin v. Löwis
910a4edbcd
Upgrade Tcl/Tk to 8.5.9.
2010-12-17 20:43:27 +00:00
Antoine Pitrou
401edd69cf
Issue #4188 : Avoid creating dummy thread objects when logging operations
...
from the threading module (with the internal verbose flag activated).
2010-12-17 17:42:16 +00:00
Antoine Pitrou
988dbd7bc2
Issue #10711 : Remove HTTP 0.9 support from http.client. The `strict`
...
parameter to HTTPConnection and friends is deprecated.
2010-12-17 17:35:56 +00:00
Senthil Kumaran
dca5b86233
Fix Issue9721 - urljoin behavior when the relative url starts with ';'
2010-12-17 04:48:45 +00:00
Antoine Pitrou
20f0fb68aa
Issue #10710 : `Misc/setuid-prog.c` is removed from the source tree.
2010-12-16 18:25:24 +00:00
Antoine Pitrou
c492437922
Issue #10714 : Limit length of incoming request in http.server to 65536 bytes
...
for security reasons. Initial patch by Ross Lagerwall.
2010-12-16 16:48:36 +00:00
Łukasz Langa
1ac0d7a7d3
Acknowledged renaming of SafeConfigParser to ConfigParser.
2010-12-16 01:42:36 +00:00
Raymond Hettinger
48f3bd331c
Nits
2010-12-16 00:30:53 +00:00
Antoine Pitrou
810023db3e
Issue #8844 : Regular and recursive lock acquisitions can now be interrupted
...
by signals on platforms using pthreads. Patch by Reid Kleckner.
2010-12-15 22:59:16 +00:00
Éric Araujo
60532bd6b6
Fix build_ext with VS 8.0. Patch by Hirokazu Yamamoto ( #9558 ).
2010-12-15 21:07:22 +00:00
Raymond Hettinger
96f3410ebe
Issue 10667: Fast path for collections.Counter
2010-12-15 16:30:37 +00:00
Antoine Pitrou
00c6b62939
Issue #10706 : Remove outdated script runtests.sh. Either `make test`
...
or `python -m test` should be used instead.
2010-12-15 15:33:18 +00:00
R. David Murray
ce4b170c5a
#4236 : avoid possible Fatal Error when import is called from __del__
...
Patch by Simon Cross, crasher test code by Martin von Löwis.
2010-12-14 23:06:25 +00:00
R. David Murray
ec07331eea
#775964 : skip YP/NIS entries instead of failing the test
...
Also includes doc updates mentioning that these entries may not
be retrievable via getgrnam and getgrgid.
Patch by Bobby Impollonia.
2010-12-14 16:20:53 +00:00
Gregory P. Smith
e85db2bbb8
Issue #1731717 : Fixed the problem where subprocess.wait() could cause an
...
OSError exception when The OS had been told to ignore SIGCLD in our process
or otherwise not wait for exiting child processes.
2010-12-14 14:38:00 +00:00
R. David Murray
32ef70c827
#10695 : use %s not %d so that a string 'port' does not cause a debug traceback
...
Passing the port as a string value works fine in regular mode, but
if you turned debug on it would throw an error trying to print the
port number, which is surprising and confusing.
2010-12-14 14:16:20 +00:00
Gregory P. Smith
8edd99d085
Issue #6559 : fix the subprocess.Popen pass_fds implementation. Add a unittest.
...
Issue #7213 : Change the close_fds default on Windows to better match the new
default on POSIX. True when possible (False if stdin/stdout/stderr are
supplied).
Update the documentation to reflect all of the above.
2010-12-14 13:43:30 +00:00
R. David Murray
7ec754b7da
#1078919 : make add_header automatically do RFC2231 encoding when needed.
...
Also document the use of three-tuples if control of the charset
and language is desired.
2010-12-13 23:51:19 +00:00
Gregory P. Smith
f86aa7c3d2
Mention the subprocess.Popen close_fds default change. Fixup *s to -s.
2010-12-13 08:07:14 +00:00
Nick Coghlan
6b22f3fa17
Issue #10188 (partial resolution): tidy up some behaviour in the new tempfile.TemporaryDirectory context manager
2010-12-12 15:24:21 +00:00
Benjamin Peterson
28a4dce6a8
remove (un)transform methods
2010-12-12 01:33:04 +00:00
Vinay Sajip
5a27d40186
logging: added handler of last resort.
2010-12-10 11:42:57 +00:00
Vinay Sajip
129fd04440
test.support: Added TestHandler and Matcher classes for better support of assertions about logging.
2010-12-10 08:19:38 +00:00
Ronald Oussoren
10e05e17a3
Fix for issue #10107 : Without this patch IDLE on OSX doesn't warn about unsaved files when quitting.
2010-12-07 15:28:10 +00:00
Benjamin Peterson
9b4e27e8c6
add news note
2010-12-07 03:47:37 +00:00
Georg Brandl
41ea8ae667
Bump to 3.2b1.
2010-12-04 19:09:24 +00:00
Éric Araujo
1215915045
Use proper plural forms in argparse ( #4391 )
2010-12-04 17:31:49 +00:00
Victor Stinner
13d49ee7d6
Issue #10601 : sys.displayhook uses 'backslashreplace' error handler on
...
UnicodeEncodeError.
2010-12-04 17:24:33 +00:00
Georg Brandl
cbc79c76a8
Add display/undisplay pdb commands.
2010-12-04 16:21:42 +00:00
Georg Brandl
44f2b640ff
#7245 : Add a SIGINT handler on continue in pdb that allows to break a program again by pressing Ctrl-C.
2010-12-04 16:00:47 +00:00
Mark Dickinson
d2a9b20efa
Issue #10596 : Fix float.__mod__ to have the same behaviour as
...
float.__divmod__ with respect to signed zeros.
2010-12-04 12:25:30 +00:00
Georg Brandl
1acb746d79
Add the "interact" pdb command from pdb++.
2010-12-04 11:20:26 +00:00
Georg Brandl
732324a3f8
#7905 : Actually respect the keyencoding parameter to shelve.Shelf.
2010-12-04 11:12:43 +00:00
Georg Brandl
c29cc6a8f2
#1569291 : speed up array.repeat() by making only O(log n) memcpy() calls; the code follows unicode_repeat.
2010-12-04 11:02:04 +00:00
Georg Brandl
9d8711964f
#1772833 : add -q command line option.
2010-12-04 10:47:18 +00:00
Georg Brandl
8334fd9285
Add an "optimize" parameter to compile() to control the optimization level, and provide an interface to it in py_compile, compileall and PyZipFile.
2010-12-04 10:26:46 +00:00
Hirokazu Yamamoto
427d3149eb
Fixed several corner case issues on os.stat/os.lstat related to reparse
...
points. (Windows)
- Set S_IEXEC via final path name not link name.
- Set S_IFLNK also via FindFirstFile (when CreateFile fails)
2010-12-04 10:16:05 +00:00
Senthil Kumaran
10064e9d7a
Add the NEWS entry for issue7904
2010-12-04 09:44:30 +00:00
Georg Brandl
d9e833c70a
#6045 : provide at least get() and setdefault() for all dbm modules.
2010-12-04 09:14:36 +00:00
Alexander Belopolsky
942af5a9a4
Issue #10557 : Fixed error messages from float() and other numeric
...
types. Added a new API function, PyUnicode_TransformDecimalToASCII(),
which transforms non-ASCII decimal digits in a Unicode string to their
ASCII equivalents.
2010-12-04 03:38:46 +00:00
Michael Foord
37d120aeb4
Issue 10620: Specifying test modules by path instead of module name to 'python -m unittest'
2010-12-04 01:11:21 +00:00
Terry Reedy
4b9b197518
Issue #10534 : add NEWS entry for r86983 and r87000.
2010-12-03 22:50:06 +00:00
Martin v. Löwis
4d0d471a80
Merge branches/pep-0384.
2010-12-03 20:14:31 +00:00
Antoine Pitrou
c4df784514
Issue #10272 : The ssl module now raises socket.timeout instead of a generic
...
SSLError on socket timeouts.
2010-12-03 19:59:41 +00:00
Éric Araujo
bb48a8b59a
Allow translators to reorder placeholders in localizable messages from
...
argparse (#10528 ).
There is no unit test; I checked with xgettext that no more warnings
were emitted. Steven approved the change.
2010-12-03 19:41:00 +00:00
Éric Araujo
a9c7a8fa5b
Fix incorrect use of gettext in argparse ( #10497 ).
...
Steven, the maintainer of argparse, agreed to have this committed
without tests for now, since the fix is obvious. See the bug log.
2010-12-03 19:19:17 +00:00
Antoine Pitrou
f3b68b3f98
Issue #10478 : Reentrant calls inside buffered IO objects (for example by
...
way of a signal handler) now raise a RuntimeError instead of freezing the
current process.
2010-12-03 18:41:39 +00:00
Łukasz Langa
b6a6f5f886
Issue 10499: Modular interpolation in configparser
2010-12-03 16:28:00 +00:00
Nick Coghlan
37ee850b10
Issue 2690: Add support for slicing and negative indices to range objects (includes precalculation and storage of the range length).
...
Refer to the tracker issue for the language moratorium implications of this change
2010-12-03 14:26:13 +00:00
Michael Foord
3ab34ccae3
Factor out common code from lib/test/__main__.py and lib/test/regrtest.py into a function.
2010-12-03 12:27:40 +00:00
Vinay Sajip
615615291f
logging: Added getLogRecordFactory/setLogRecordFactory with docs and tests.
2010-12-03 11:50:38 +00:00
Georg Brandl
9bd45f995f
#10549 : fix interface of docclass() for text documenter.
2010-12-03 09:58:38 +00:00
Nick Coghlan
7bb30b72d8
Improve Pydoc interactive browsing ( #2001 ). Patch by Ron Adam.
...
* A -b option to start an enhanced browsing session.
* Allow -b and -p options to be used together.
* Specifying port 0 will pick an arbitrary unused socket port.
* A new browse() function to start the new server and browser.
* Show Python version information in the header.
* A *Get* field which takes the same input as the help() function.
* A *Search* field which replaces the Tkinter search box.
* Links to *Module Index*, *Topics*, and *Keywords*.
* Improved source file viewing.
* An HTMLDoc.filelink() method.
* The -g option and the gui() and serve() functions are deprecated.
2010-12-03 09:29:11 +00:00
Georg Brandl
9af2a6e56f
Rewrap NEWS (Builbot test commit.)
2010-12-03 09:18:37 +00:00
Georg Brandl
f8de3fea12
#10360 : catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does.
2010-12-03 07:55:44 +00:00
Georg Brandl
d80d5f4ee8
#940286 : pydoc.Helper.help() ignores input/output init parameters.
2010-12-03 07:47:22 +00:00
Nick Coghlan
4c4c0f2fe6
Partially revert r78719 - it removed a check that is still needed in some cases (i.e. this will allow Michael to add the test.__main__ support that broke the buildbots previously)
2010-12-03 07:44:33 +00:00
Georg Brandl
1e5c5f8f7d
#1745035 : add limits for command and data size to smtpd; patch by Savio Sena.
2010-12-03 07:38:22 +00:00
Georg Brandl
106a54d764
Move entries from "core" section to where they belong.
2010-12-03 07:37:16 +00:00
R. David Murray
b579dba119
#1486713 : Add a tolerant mode to HTMLParser.
...
The motivation for adding this option is that the the functionality it
provides used to be provided by sgmllib in Python2, and was used by,
for example, BeautifulSoup. Without this option, the Python3 version
of BeautifulSoup and the many programs that use it are crippled.
The original patch was by 'kxroberto'. I modified it heavily but kept his
heuristics and test. I also added additional heuristics to fix #975556 ,
#1046092 , and part of #6191 . This patch should be completely backward
compatible: the behavior with the default strict=True is unchanged.
2010-12-03 04:06:39 +00:00
Brian Curtin
79cdb661f5
Fix #10554 . Added context manager support to Popen objects.
...
Added a few common Popen uses to the tests like we've done for a few other
instances of adding context managers. Eventually the entire test suite
could be converted to use the context manager format.
2010-12-03 02:46:02 +00:00
Michael Foord
5074df623b
Issue 7911: unittest.TestCase.longMessage defaults to True for improved failure messages by default
2010-12-03 00:53:09 +00:00
Daniel Stutzbach
98338227a7
Issue9915: speeding up sorting with a key
2010-12-02 21:55:33 +00:00
R. David Murray
a0b44b5adb
#8989 : add 'domain' keyword to make_msgid.
...
Patch by Adrian von Bidder.
2010-12-02 21:47:19 +00:00
Brian Curtin
52173d4959
Fix #9333 . Expose os.symlink on Windows only when usable.
...
In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege
is an account privilege that is required to be held by the user. Not only
must the privilege be enabled for the account, the activated privileges for
the currently running application must be adjusted to enable the requested
privilege.
Rather than exposing an additional function to be called prior to the user's
first os.symlink call, we handle the AdjustTokenPrivileges Windows API call
internally and only expose os.symlink when the privilege escalation was
successful.
Due to the change of only exposing os.symlink when it's available, we can
go back to the original test skipping methods of checking via `hasattr`.
2010-12-02 18:29:18 +00:00
Georg Brandl
02524629f3
#7475 : add (un)transform method to bytes/bytearray and str, add back codecs that can be used with them from Python 2.
2010-12-02 18:06:51 +00:00
Terry Reedy
5a22b65117
Issue 9299 Add exist_ok parameter to os.makedirs to suppress 'File exists' exception. Patch by Ray Allen.
2010-12-02 07:05:56 +00:00
Nick Coghlan
b2ddf7979d
Issue #9573 : os.fork now works when triggered as a side effect of import (the wisdom of actually relying on this remains questionable!)
2010-12-02 04:11:46 +00:00
R. David Murray
d2bb830edc
#10464 : fix netrc handling of lines with embedded '#" characters.
...
Patch by Xuanji Li.
2010-12-02 02:58:07 +00:00
Raymond Hettinger
482ba77245
Add itertools.accumulate().
2010-12-01 22:48:00 +00:00
Alexander Belopolsky
41e422a4ff
Issue #4113 : Added custom __repr__ method to functools.partial.
2010-12-01 20:05:49 +00:00
Ezio Melotti
ed3a7d2d60
#10273 : Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex.
2010-12-01 02:32:32 +00:00
Ezio Melotti
f10c400b91
Fix test failure in debug builds and add NEWS entry for r86908
2010-12-01 01:45:53 +00:00
Antoine Pitrou
715f3cd10d
Issue #8685 : Speed up set difference `a - b` when source set `a` is
...
much larger than operand `b`. Patch by Andrew Bennetts.
2010-11-30 22:23:20 +00:00
Nick Coghlan
9fc443cf59
Issue 9873: the URL parsing functions now accept ASCII encoded byte sequences in addition to character strings
2010-11-30 15:48:08 +00:00
Georg Brandl
71c23d4473
Include structseq.h in Python.h, and remove now-redundant includes in individual sources.
2010-11-30 09:30:54 +00:00
Nick Coghlan
234515afe5
Issue 10586: change the new functools.lru_cache implementation to expose the maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple.
2010-11-30 06:19:46 +00:00
Raymond Hettinger
69b34bfe9c
Issue #10323 : Predictable final state for slice().
2010-11-30 02:49:29 +00:00
Senthil Kumaran
6f1070485f
Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
...
Handle multiple breakpoints at same line. Update docs/test.
Patch by Xavier de Gaye.
2010-11-29 11:54:17 +00:00
Raymond Hettinger
ead22227cc
Issue #10565 : Iterator ABC should require both __next__ and __iter__.
2010-11-29 03:56:12 +00:00
Antoine Pitrou
e71362d3de
Issue #10518 : Bring back the callable() builtin.
...
Approved by Guido (BDFL) and Georg (RM).
2010-11-27 22:00:11 +00:00
Raymond Hettinger
6e165b30de
Issue 10242: unittest.assertItemsEqual makes too many assumptions.
2010-11-27 09:31:37 +00:00
Eric Smith
984bb58000
Issue #7094 : Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon.
2010-11-25 16:08:06 +00:00
Terry Reedy
99f9637de8
Issue 2986: Add autojunk paramater to SequenceMatcher to turn off heuristic. Patch by Terry Reedy, Eli Bendersky, and Simon Cross
2010-11-25 06:12:34 +00:00
Ezio Melotti
17f9b3d289
Add NEWS entry for r86732 and fix double function in the table.
2010-11-24 22:02:18 +00:00
Brian Curtin
1b9df39620
Fix #8879 . Add os.link support to Windows.
...
Additionally, the st_ino attribute of stat structures was not being filled
in. This was left out of the fix to #10027 and was noticed due to
test_tarfile failing when applying the patch for this issue. An earlier
version of the fix to #10027 included st_ino, but that attribute got lost
in the shuffle of a few review/fix cycles. All tests pass.
2010-11-24 20:24:31 +00:00
Brian Curtin
f5e76d01ea
Fix #10027 . st_nlink not set on Windows calls to os.stat/lstat.
...
Note: This patch has no tests because as of now there is no way to create
links. #8879 adds that and the tests will go in there. I've manually observed
that existing links on my system function properly with this.
2010-11-24 13:14:05 +00:00