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
78a1a15c20
Merged revisions 86925 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86925 | r.david.murray | 2010-12-01 21:58:07 -0500 (Wed, 01 Dec 2010) | 4 lines
#10464 : fix netrc handling of lines with embedded '#" characters.
Patch by Xuanji Li.
........
2010-12-02 03:10:43 +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
101f09e72f
Issue #10323 : Predictable final state for slice().
2010-11-30 03:09:05 +00:00
Raymond Hettinger
69b34bfe9c
Issue #10323 : Predictable final state for slice().
2010-11-30 02:49:29 +00:00
Alexander Belopolsky
fdb32c15e4
Merged revisions 86857 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86857 | raymond.hettinger | 2010-11-28 22:56:12 -0500 (Sun, 28 Nov 2010) | 1 line
Issue #10565 : Iterator ABC should require both __next__ and __iter__.
........
2010-11-30 01:01:02 +00:00
Senthil Kumaran
5170c81662
Merged revisions 86861 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86861 | senthil.kumaran | 2010-11-29 19:54:17 +0800 (Mon, 29 Nov 2010) | 5 lines
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 12:27:45 +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
Benjamin Peterson
68eb3718d9
point in the general direction of 3.1.4
2010-11-28 04:50: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
Benjamin Peterson
5757429130
3.1.3 final version bump
2010-11-27 14:46:13 +00:00
Raymond Hettinger
6e165b30de
Issue 10242: unittest.assertItemsEqual makes too many assumptions.
2010-11-27 09:31:37 +00:00
Matthias Klose
55aa2f39a3
Merged revisions 85645 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85645 | matthias.klose | 2010-10-17 15:22:33 +0200 (Sun, 17 Oct 2010) | 2 lines
- Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension.
........
2010-11-26 11:56:26 +00:00
Georg Brandl
d62ecbf0ba
Merged revisions 85728,85731,85735,85766-85771,85773,85777 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r85728 | georg.brandl | 2010-10-19 20:54:25 +0200 (Di, 19 Okt 2010) | 1 line
#10092 : Properly reset locale in Locale*Calendar classes. The context manager was buggy because setlocale() returns the *new* locale, not the old. Also add a test for this.
........
r85731 | georg.brandl | 2010-10-19 23:07:16 +0200 (Di, 19 Okt 2010) | 1 line
Be consistent in the spelling of thread-safe(ty).
........
r85735 | georg.brandl | 2010-10-20 08:50:19 +0200 (Mi, 20 Okt 2010) | 1 line
Fix r85728: use "" to mean the system default locale, which should work on more systems.
........
r85766 | georg.brandl | 2010-10-21 09:40:03 +0200 (Do, 21 Okt 2010) | 1 line
#10159 : sort completion matches before comparing to dir() result.
........
r85767 | georg.brandl | 2010-10-21 14:49:28 +0200 (Do, 21 Okt 2010) | 1 line
#9095 , #8912 , #8999 : add support in patchcheck for Mercurial checkouts, C file reindenting, and docs whitespace fixing.
........
r85768 | georg.brandl | 2010-10-21 14:59:14 +0200 (Do, 21 Okt 2010) | 1 line
#9919 : fix off-by-one error in lineno command in Misc/gdbinit; also add newline to its output.
........
r85769 | georg.brandl | 2010-10-21 15:01:23 +0200 (Do, 21 Okt 2010) | 1 line
Fix missing import.
........
r85770 | georg.brandl | 2010-10-21 15:29:10 +0200 (Do, 21 Okt 2010) | 1 line
#3077 : fix h2py substitution of character literals.
........
r85771 | georg.brandl | 2010-10-21 15:34:51 +0200 (Do, 21 Okt 2010) | 1 line
#1203650 : allow larger list of files in windows makefile for freeze.
........
r85773 | georg.brandl | 2010-10-21 15:45:52 +0200 (Do, 21 Okt 2010) | 1 line
#4829 : better error message for invalid file mode
........
r85777 | georg.brandl | 2010-10-21 17:44:51 +0200 (Do, 21 Okt 2010) | 1 line
Add .hgeol file for the Mercurial EOL extension.
........
2010-11-26 08:52:36 +00:00
Georg Brandl
c524cff3d3
Merged revisions 85530,85532-85534,85538-85543,85546-85548 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r85530 | georg.brandl | 2010-10-15 17:32:05 +0200 (Fr, 15 Okt 2010) | 1 line
Refrain from using inline suites.
........
r85532 | georg.brandl | 2010-10-15 18:03:02 +0200 (Fr, 15 Okt 2010) | 1 line
#7771 : reference to documentation of dictview methods and operations.
........
r85533 | georg.brandl | 2010-10-15 18:07:41 +0200 (Fr, 15 Okt 2010) | 1 line
#9683 : remove broken dead code dealing with nested arguments removed from Py3k, and update the docs and docstrings accordingly.
........
r85534 | georg.brandl | 2010-10-15 18:19:43 +0200 (Fr, 15 Okt 2010) | 1 line
#9801 : document how list and dict proxies created by Managers behave w.r.t. mutable items.
........
r85538 | georg.brandl | 2010-10-15 18:35:46 +0200 (Fr, 15 Okt 2010) | 1 line
#7303 : add documentation for useful pkgutil functions and classes.
........
r85539 | georg.brandl | 2010-10-15 18:42:14 +0200 (Fr, 15 Okt 2010) | 1 line
Fix issue references.
........
r85540 | georg.brandl | 2010-10-15 18:42:37 +0200 (Fr, 15 Okt 2010) | 1 line
#6798 : fix wrong docs for the arguments to several trace events.
........
r85541 | georg.brandl | 2010-10-15 18:53:24 +0200 (Fr, 15 Okt 2010) | 1 line
#4968 : updates to inspect.is* function docs.
........
r85542 | georg.brandl | 2010-10-15 19:01:15 +0200 (Fr, 15 Okt 2010) | 1 line
#7790 : move table of struct_time members to the actual description of struct_time.
........
r85543 | georg.brandl | 2010-10-15 19:03:02 +0200 (Fr, 15 Okt 2010) | 1 line
#4785 : document strict argument of JSONDecoder, plus add object_pairs_hook in the docstrings.
........
r85546 | georg.brandl | 2010-10-15 19:58:45 +0200 (Fr, 15 Okt 2010) | 1 line
#5762 : fix handling of empty namespace in minidom, which would result in AttributeError on toxml().
........
r85547 | georg.brandl | 2010-10-15 20:00:35 +0200 (Fr, 15 Okt 2010) | 1 line
#6098 : Refrain from claiming DOM level 3 conformance in minidom.
........
r85548 | georg.brandl | 2010-10-15 21:46:19 +0200 (Fr, 15 Okt 2010) | 1 line
#10072 : assume a bit less knowledge of the FTP protocol in the ftplib docs.
........
2010-11-26 08:42:45 +00:00
Georg Brandl
aba9796c5e
Merged revisions 85450-85455,85460-85465 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r85450 | georg.brandl | 2010-10-14 08:35:53 +0200 (Do, 14 Okt 2010) | 1 line
#7642 : update to os.system() docs.
........
r85451 | georg.brandl | 2010-10-14 08:41:42 +0200 (Do, 14 Okt 2010) | 1 line
#3865 : add note about benchmarking with profilers, and move licensing stuff to bottom of document.
........
r85452 | georg.brandl | 2010-10-14 08:43:22 +0200 (Do, 14 Okt 2010) | 1 line
#10046 : small correction to atexit docs.
........
r85453 | georg.brandl | 2010-10-14 08:46:08 +0200 (Do, 14 Okt 2010) | 1 line
#6825 : small correction to split() docs.
........
r85454 | georg.brandl | 2010-10-14 08:48:47 +0200 (Do, 14 Okt 2010) | 1 line
Mention 2to3.
........
r85455 | georg.brandl | 2010-10-14 08:59:45 +0200 (Do, 14 Okt 2010) | 1 line
#1710703 : write zipfile structures also in the case of closing a new, but empty, archive.
........
r85460 | georg.brandl | 2010-10-14 09:24:28 +0200 (Do, 14 Okt 2010) | 1 line
#9964 : fix running test_import under -O or -OO.
........
r85461 | georg.brandl | 2010-10-14 09:29:08 +0200 (Do, 14 Okt 2010) | 1 line
#9964 : fix lib2to3 fixer fix_operator when running under -OO.
........
r85462 | georg.brandl | 2010-10-14 09:32:52 +0200 (Do, 14 Okt 2010) | 1 line
#9964 : fix running test_xml_etree under -OO.
........
r85463 | georg.brandl | 2010-10-14 09:34:56 +0200 (Do, 14 Okt 2010) | 1 line
Better check for "any optimize option given".
........
r85464 | georg.brandl | 2010-10-14 09:42:27 +0200 (Do, 14 Okt 2010) | 1 line
#9964 : fix running test_compileall under -O and -OO.
........
r85465 | georg.brandl | 2010-10-14 10:08:56 +0200 (Do, 14 Okt 2010) | 1 line
#9964 : fix running test_cmd_line_script under -O and -OO.
........
2010-11-26 08:37:46 +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
3188b2082e
Merged revisions 86737 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86737 | ezio.melotti | 2010-11-25 00:02:18 +0200 (Thu, 25 Nov 2010) | 1 line
Add NEWS entry for r86732 and fix double function in the table.
........
2010-11-24 22:04:22 +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
Łukasz Langa
e61602fc84
information on Issue #9846
2010-11-23 00:19:53 +00:00
Ezio Melotti
2baf1a69f4
#9424 : add a DeprecationWarning for assertEquals, assertNotEquals, assertAlmostEquals, assertNotAlmostEquals, and assert_
2010-11-22 12:56:58 +00:00
Martin v. Löwis
362976539f
Issue #10459 : Update CJK character names to Unicode 5.1.
2010-11-22 10:52:58 +00:00
Martin v. Löwis
5cbc71e50a
Issue #10459 : Update CJK character names to Unicode 6.0.
2010-11-22 09:00:02 +00:00
Senthil Kumaran
c8f7bdf326
Merged revisions 86679 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86679 | senthil.kumaran | 2010-11-22 13:08:13 +0800 (Mon, 22 Nov 2010) | 3 lines
Fix - s/urllib2/urllib.request/
........
2010-11-22 05:11:05 +00:00
Senthil Kumaran
249d7e3c2e
Fix - s/urllib2/urllib.request/
2010-11-22 05:08:13 +00:00
Senthil Kumaran
d17ebdba4a
Merged revisions 86676 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86676 | senthil.kumaran | 2010-11-22 12:48:26 +0800 (Mon, 22 Nov 2010) | 4 lines
Fix Issue4493 - urllib2 adds '/' to the path component of url, when it does not
starts with one. This behavior is exhibited by browser and other clients.
........
2010-11-22 04:53:57 +00:00
Senthil Kumaran
c295862ce0
Fix Issue4493 - urllib2 adds '/' to the path component of url, when it does not
...
starts with one. This behavior is exhibited by browser and other clients.
2010-11-22 04:48:26 +00:00
Brian Curtin
f213d2317c
Backport the distutils part of r83399 to fix #7645 .
2010-11-22 02:04:33 +00:00
Brian Curtin
44c1db05fb
Merged revisions 86651 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86651 | brian.curtin | 2010-11-21 17:45:10 -0600 (Sun, 21 Nov 2010) | 5 lines
Fix #6378 . Start IDLE using the proper version of Python based on the directory
tree that idle.bat resides in.
Works with any/all versions of Python installed concurrently.
........
2010-11-21 23:48:14 +00:00
Brian Curtin
f991642efe
Fix #6378 . Start IDLE using the proper version of Python based on the directory
...
tree that idle.bat resides in.
Works with any/all versions of Python installed concurrently.
2010-11-21 23:45:10 +00:00
Michael Foord
086f30815c
Issue 10470: 'python -m unittest' launches test discovery by default.(If you need to pass options to test discovery the discover subcommand must still be specified explicitly.)
2010-11-21 21:28:01 +00:00
Senthil Kumaran
e4dad4f8e2
Fix issue3709 - BaseHTTPRequestHandler will buffer the headers and write only on end_headers call.
2010-11-21 14:36:14 +00:00
Raymond Hettinger
d325c4b233
Revert r86517
2010-11-21 04:08:28 +00:00
Nick Coghlan
e0f04659cd
Issue #10220 : Add inspect.getgeneratorstate(). Initial patch by Rodolpho Eckhardt
2010-11-21 03:44:04 +00:00
Ezio Melotti
19f2aeba67
Merged revisions 86596 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line
#9424 : Replace deprecated assert* methods in the Python test suite.
........
2010-11-21 01:30:29 +00:00
Benjamin Peterson
0b458d52f9
count() should return integers #10474
2010-11-20 22:35:41 +00:00
R. David Murray
650f147298
#10453 : compileall now uses argparse instead of getopt, so -h works.
...
Patch by Michele Orrù.
2010-11-20 21:18:51 +00:00
Antoine Pitrou
a78f74ce02
Issue #8078 : Add constants for higher baud rates in the termios module.
...
Patch by Rodolpho Eckhardt.
2010-11-20 20:03:08 +00:00
Antoine Pitrou
5a96b5241f
Issue #10255 : Fix reference leak in Py_InitializeEx(). Patch by Neil
...
Schemenauer.
2010-11-20 19:50:57 +00:00
Éric Araujo
bfa17a562a
Merged revisions 86601,86605 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86601 | eric.araujo | 2010-11-20 20:35:27 +0100 (sam., 20 nov. 2010) | 2 lines
Fix two NameErrors in distutils (#10407 )
........
r86605 | eric.araujo | 2010-11-20 20:37:28 +0100 (sam., 20 nov. 2010) | 2 lines
Add entry for r86601
........
2010-11-20 19:45:32 +00:00
Éric Araujo
e7606649b3
Add entry for r86601
2010-11-20 19:37:28 +00:00
Ezio Melotti
b3aedd4862
#9424 : Replace deprecated assert* methods in the Python test suite.
2010-11-20 19:04:17 +00:00
Alexander Belopolsky
44454afbe3
Issue #10371 : Deprecated undocumented functions in the trace module.
2010-11-20 18:21:07 +00:00
Benjamin Peterson
5f78040057
add filename to ENOENT message #4925
2010-11-20 18:07:52 +00:00
Michael Foord
c610e3e55e
Addition of issue 9926 to NEWS
2010-11-20 17:50:34 +00:00
Benjamin Peterson
5a1ca6e368
Merged revisions 86587 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86587 | benjamin.peterson | 2010-11-20 11:24:04 -0600 (Sat, 20 Nov 2010) | 1 line
correct logic when pos is after the string #10467
........
2010-11-20 17:26:25 +00:00
Benjamin Peterson
fa73555cfc
correct logic when pos is after the string #10467
2010-11-20 17:24:04 +00:00
R. David Murray
6bb9989ae3
#1574217 : only swallow AttributeErrors in isinstance, not everything.
...
Patch and tests by Brian Harring, with improvements by Ralf Schmitt.
2010-11-20 16:33:30 +00:00
Łukasz Langa
f149e45a4e
removed a NEWS entry that cloned itself in mysterious circumstances
2010-11-20 16:24:30 +00:00
Łukasz Langa
45ec426157
acknowledge configparser evolution
2010-11-20 16:16:24 +00:00
Michael Foord
8ca6d9884b
Issue 10326: TestCase instances can now be pickled (they store names of instance methods instead of references to the instance methods themselves).
2010-11-20 15:34:26 +00:00
Michael Foord
95fc51dfda
Issue 9732: addition of getattr_static to the inspect module
2010-11-20 15:07:30 +00:00
Georg Brandl
89197fe93c
socket.gethostbyname(socket.gethostname()) can fail when host name resolution is not set up correctly; do not fail test_socket if this is the case.
2010-11-20 14:16:17 +00:00
Georg Brandl
fbef44f255
Merged revisions 85970 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r85970 | georg.brandl | 2010-10-30 10:29:28 +0200 (Sa, 30 Okt 2010) | 1 line
#10198 : fix duplicate header when writeframes() is called with an empty string.
........
2010-11-20 11:29:58 +00:00
Georg Brandl
9f1c1dcde3
#10465 : fix broken delegation in __getattr__ of _PaddedFile.
2010-11-20 11:25:01 +00:00
Mark Dickinson
4ccc137aff
Issue #9920 : Skip tests for cmath.atan and cmath.atanh applied to
...
complex zeros on systems where the log1p function fails to respect
the sign of zero. This fixes a test failure on AIX.
2010-11-20 11:08:27 +00:00
Mark Dickinson
6646cd45be
Issue #10325 : Fix two issues in the fallback definitions of PY_LLONG_MAX and
...
PY_ULLONG_MAX in pyport.h. Thanks Hallvard B Furuseth for the patch.
2010-11-20 10:43:10 +00:00
Georg Brandl
54445adfd3
Fix rst markup errors.
2010-11-20 10:24:34 +00:00
Benjamin Peterson
aab9585130
Merged revisions 86538 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86538 | benjamin.peterson | 2010-11-19 19:38:49 -0600 (Fri, 19 Nov 2010) | 1 line
use %R format code; fixes invalid dereferencing #10391
........
2010-11-20 01:48:38 +00:00
Benjamin Peterson
5b066817e2
use %R format code; fixes invalid dereferencing #10391
2010-11-20 01:38:49 +00:00
Stefan Krah
d8b661dd90
Issue #10356 : hash(Decimal("sNaN")) now raises ValueError instead of TypeError.
2010-11-18 15:20:34 +00:00
Alexander Belopolsky
9a4030ee75
Issue #10446 NEWS entry
2010-11-18 03:50:18 +00:00
Brett Cannon
0ffe6a9760
Fix a minor inconsistency in capitalization for the 'No module named' exception
...
message in importlib.
Thanks to Éric Araujo for spotting the inconsistency.
2010-11-18 03:03:04 +00:00
Brian Curtin
8fb9b868bd
Fix #8886 . Use context managers throughout the test.
2010-11-18 02:15:28 +00:00
Benjamin Peterson
f609654b0e
handle dict subclasses gracefully in PyArg_ValidateKeywordArguments
2010-11-17 22:33:12 +00:00
David Malcolm
82e73cb951
Issue #9518 : Extend the PyModuleDef_HEAD_INIT macro to explicitly
...
zero-initialize all fields, fixing compiler warnings seen when building
extension modules with gcc with "-Wmissing-field-initializers" (implied
by "-W")
2010-11-17 21:20:18 +00:00
Antoine Pitrou
664c2d1fc0
Issue #10443 : Add the SSLContext.set_default_verify_paths() method.
2010-11-17 20:29:42 +00:00
Antoine Pitrou
b6d4ee5361
Issue #10440 : Support RUSAGE_THREAD as a constant in the resource module.
...
Patch by Robert Collins.
2010-11-17 16:19:35 +00:00
Stefan Krah
dc817b229c
Issue #10356 : Decimal(-1).__hash__() should equal hash(Decimal(-1)).
2010-11-17 11:16:34 +00:00
Antoine Pitrou
dbe7519da9
Issue #10429 : IMAP.starttls() stored the capabilities as bytes objects,
...
rather than strings.
2010-11-16 17:55:26 +00:00
Georg Brandl
9b0034d040
Post-release bumps.
2010-11-16 15:15:56 +00:00
Vinay Sajip
8593ae6451
Logging: added stack_info argument.
2010-11-14 21:33:04 +00:00
Martin v. Löwis
3a72b250eb
Merged revisions 84339,84487 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84339 | martin.v.loewis | 2010-08-28 15:40:10 +0200 (Sa, 28 Aug 2010) | 1 line
Stop packaging versioncheck.
........
r84487 | martin.v.loewis | 2010-09-04 16:38:09 +0200 (Sa, 04 Sep 2010) | 3 lines
Issue #1303434 : Include PDBs in release.
Patch by James Lee and Daniel Stutzbach.
........
2010-11-14 18:13:49 +00:00
Senthil Kumaran
2e89cf3465
Merged revisions 86450 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86450 | senthil.kumaran | 2010-11-13 20:27:49 +0800 (Sat, 13 Nov 2010) | 3 lines
Fix Issue5111 - Wrap the Ipv6 host with [] in the Host header
........
2010-11-14 03:14:52 +00:00
Benjamin Peterson
650db5bd68
prepare for final
2010-11-13 23:34:41 +00:00
Benjamin Peterson
5889129571
bump to 3.1.3rc1
2010-11-13 17:28:56 +00:00
Georg Brandl
4fbc0d8baa
Minor edits.
2010-11-13 13:25:40 +00:00
Senthil Kumaran
74ebd9e6a3
Fix Issue5111 - Wrap the Ipv6 host with [] in the Host header
2010-11-13 12:27:49 +00:00
Mark Dickinson
fec6620dfb
Make Fraction(-1).__hash__() return -2 rather than -1 (see issue 10356).
2010-11-13 10:27:38 +00:00
Georg Brandl
24854cac99
Bump to 3.2a4.
2010-11-13 06:39:58 +00:00
Antoine Pitrou
f3b001f966
Issue #4471 : Add the IMAP.starttls() method to enable encryption on
...
standard IMAP4 connections. Original patch by Lorenzo M. Catucci.
2010-11-12 18:49:16 +00:00
R. David Murray
6495136e40
#1466065 : add validate option to base64.b64decode
...
Patch by Neil Tallim. This provides a mechanism for module
users to achieve RFC 3548 compliance in the cases where ignoring
non-base64-alphabet input characters is *not* mandated by the RFC that
references RFC 3548.
2010-11-11 20:09:20 +00:00
Alexander Belopolsky
b9d10d08c4
Issue #10386 : Added __all__ to token module; this simplifies importing
...
in tokenize module and prevents leaking of private names through
import *.
2010-11-11 14:07:41 +00:00
Antoine Pitrou
b0afa00254
Remove spurious NEWS entry.
2010-11-10 14:03:53 +00:00
Antoine Pitrou
cb4f929812
I'm only backporting the tests (which run fine), as well as
...
a shortened version of Lib/test/script_helper.py.
Merged revisions 86395 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86395 | antoine.pitrou | 2010-11-10 14:55:25 +0100 (mer., 10 nov. 2010) | 4 lines
Issue #10372 : Import the warnings module only after the IO library is
initialized, so as to avoid bootstrap issues with the '-W' option.
........
2010-11-10 14:01:16 +00:00
Antoine Pitrou
cf9f98034a
Issue #10372 : Import the warnings module only after the IO library is
...
initialized, so as to avoid bootstrap issues with the '-W' option.
2010-11-10 13:55:25 +00:00
Antoine Pitrou
5466e920d9
Merged revisions 86383 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86383 | antoine.pitrou | 2010-11-10 00:10:33 +0100 (mer., 10 nov. 2010) | 4 lines
Issue #4471 : Properly shutdown socket in IMAP.shutdown(). Patch by
Lorenzo M. Catucci.
........
2010-11-09 23:12:32 +00:00
Antoine Pitrou
d79f3c8b3a
Issue #4471 : Properly shutdown socket in IMAP.shutdown(). Patch by
...
Lorenzo M. Catucci.
2010-11-09 23:10:33 +00:00
Antoine Pitrou
7ec819e3a9
Merged revisions 86380 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86380 | antoine.pitrou | 2010-11-09 23:55:55 +0100 (mar., 09 nov. 2010) | 4 lines
Fix IMAP.login() to work properly.
Also, add remote tests for imaplib (part of #4471 ).
........
2010-11-09 22:57:20 +00:00
Antoine Pitrou
b1436f185d
Fix IMAP.login() to work properly.
...
Also, add remote tests for imaplib (part of #4471 ).
2010-11-09 22:55:55 +00:00
Ask Solem
84c29a2e16
Remove uneeded NEWS entries for minor documentation updates.
2010-11-09 22:04:16 +00:00
Ask Solem
ff7ffdd752
Issue #8028 : multiprocessing: Documented that ``Process.terminate``
...
is only intented for use by the parent process.
2010-11-09 21:52:33 +00:00
Ask Solem
518eaa8a76
Issue #7707 : Documented that multiprocessing.Queue operations during
...
import can lead to deadlocks.
2010-11-09 21:46:03 +00:00
Ask Solem
e912f5ab7a
Added missing NEWS entry for my previous commit (r86370).
2010-11-09 21:14:53 +00:00
Antoine Pitrou
fb0469112f
Issue #10022 : The dictionary returned by the `getpeercert()` method
...
of SSL sockets now has additional items such as `issuer` and `notBefore`.
2010-11-09 20:21:19 +00:00
Antoine Pitrou
859c4ef0a0
Make `usenetrc` False by default (the old behaviour of having it True by
...
default could be rather confusing).
2010-11-09 18:58:42 +00:00
Antoine Pitrou
1cb121ecea
Issue #1926 : Add support for NNTP over SSL on port 563, as well as
...
STARTTLS. Patch by Andrew Vant.
2010-11-09 18:54:37 +00:00
Victor Stinner
58c0752a33
Issue #10335 : Add tokenize.open(), detect the file encoding using
...
tokenize.detect_encoding() and open it in read only mode.
2010-11-09 01:08:59 +00:00
Éric Araujo
0cfba09b09
This was actually fixed for the previous alpha.
2010-11-08 21:48:23 +00:00
Éric Araujo
551f02ca63
Add missing NEWS entry for a fix committed by Senthil.
...
All recent modifications to distutils should now be covered in NEWS.
2010-11-08 18:15:17 +00:00
R. David Murray
7dff9e08fb
#10321 : Add support for sending binary DATA and Message objects to smtplib
2010-11-08 17:15:13 +00:00
Éric Araujo
a563392f92
Move a news entry to the right section (+ light reformatting)
2010-11-08 17:13:03 +00:00
Georg Brandl
b8bbffd34d
Fix next version name.
2010-11-08 16:57:52 +00:00
Victor Stinner
64bc3b28a3
Issue #10329 : The trace module writes reports using the input Python script
...
encoding, instead of the locale encoding. Patch written by Alexander
Belopolsky.
2010-11-07 15:47:36 +00:00
Hirokazu Yamamoto
4ae5f138da
Issue #6317 : Now winsound.PlaySound only accepts unicode with MvL's approval.
2010-11-07 14:29:26 +00:00
Hirokazu Yamamoto
339293a372
Merged revisions 86283 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86283 | hirokazu.yamamoto | 2010-11-07 18:23:15 +0900 | 1 line
Issue #6317 : Now winsound.PlaySound can accept non ascii filename.
........
2010-11-07 11:53:57 +00:00
Hirokazu Yamamoto
35adf5dcf1
Changed entry name because it's hard to merge.
2010-11-07 11:32:01 +00:00
Hirokazu Yamamoto
c08c9bccfc
Issue #6317 : Now winsound.PlaySound can accept non ascii filename.
2010-11-07 09:23:15 +00:00
Éric Araujo
651e6b5d49
Merged revisions 86271 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86271 | eric.araujo | 2010-11-06 16:01:07 +0100 (sam., 06 nov. 2010) | 2 lines
Add missing NEWS entries for some of my commits.
........
2010-11-06 15:37:39 +00:00
Éric Araujo
e7cf954247
Add missing NEWS entries for some of my commits.
2010-11-06 15:01:07 +00:00
Éric Araujo
1ca7556dd0
Merged revisions 86244 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86244 | eric.araujo | 2010-11-06 05:48:05 +0100 (sam., 06 nov. 2010) | 3 lines
Prevent race condition with mkdir in distutils. Patch by Arfrever on #9281 .
........
2010-11-06 04:51:10 +00:00
Éric Araujo
ba7209f0a5
Prevent race condition with mkdir in distutils. Patch by Arfrever on #9281 .
2010-11-06 04:48:05 +00:00
Éric Araujo
1c1340b30a
Merged revisions 86239,86241 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86239 | eric.araujo | 2010-11-06 05:09:29 +0100 (sam., 06 nov. 2010) | 2 lines
Fix caching error found by regrtest -R (#10229 )
........
r86241 | eric.araujo | 2010-11-06 05:24:00 +0100 (sam., 06 nov. 2010) | 2 lines
Add missing NEWS entry for r86239.
........
2010-11-06 04:35:07 +00:00
Éric Araujo
909ddbd193
Add missing NEWS entry for r86239.
2010-11-06 04:24:00 +00:00
Éric Araujo
c6d7ead095
Merged revisions 86223-86224,86226,86234 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86223 | eric.araujo | 2010-11-06 00:51:56 +0100 (sam., 06 nov. 2010) | 2 lines
Always close files in distutils code and tests (#10252 ).
........
r86224 | eric.araujo | 2010-11-06 00:58:34 +0100 (sam., 06 nov. 2010) | 2 lines
Add missing entry for r86223.
........
r86226 | eric.araujo | 2010-11-06 00:59:32 +0100 (sam., 06 nov. 2010) | 2 lines
Of course, I forgot one file in r86223.
........
r86234 | eric.araujo | 2010-11-06 03:10:32 +0100 (sam., 06 nov. 2010) | 2 lines
Also close file descriptors from os.popen and subprocess.Popen
........
2010-11-06 02:58:56 +00:00
Éric Araujo
89c0478c53
Add missing entry for r86223.
2010-11-05 23:58:34 +00:00
Antoine Pitrou
243757eb79
Issue #10180 : Pickling file objects is now explicitly forbidden, since
...
unpickling them produced nonsensical results.
2010-11-05 21:15:39 +00:00
Antoine Pitrou
8d46e4267c
Merged revisions 86214 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86214 | antoine.pitrou | 2010-11-05 20:47:27 +0100 (ven., 05 nov. 2010) | 4 lines
Issue #10311 : The signal module now restores errno before returning from
its low-level signal handler. Patch by Hallvard B Furuseth.
........
2010-11-05 19:54:58 +00:00
Antoine Pitrou
39a6591507
Issue #10311 : The signal module now restores errno before returning from
...
its low-level signal handler. Patch by Hallvard B Furuseth.
2010-11-05 19:47:27 +00:00
Antoine Pitrou
a078115434
Issue #10282 : Add a `nntp_implementation` attribute to NNTP objects.
2010-11-05 19:16:37 +00:00
David Malcolm
9696088b6d
Issue #10288 : The deprecated family of "char"-handling macros
...
(ISLOWER()/ISUPPER()/etc) have now been removed: use Py_ISLOWER() etc
instead.
2010-11-05 17:23:41 +00:00
Antoine Pitrou
08eeadac27
Issue #10283 : Add a `group_pattern` argument to NNTP.list().
2010-11-04 21:36:15 +00:00
Antoine Pitrou
020e09a5b4
Merged revisions 86175 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86175 | antoine.pitrou | 2010-11-04 21:48:37 +0100 (jeu., 04 nov. 2010) | 4 lines
Issue #3699 : Fix test_bigaddrspace and extend it to test bytestrings
as well as unicode strings. Initial patch by Sandro Tosi.
........
2010-11-04 20:50:00 +00:00
Antoine Pitrou
99c4830d0c
Issue #3699 : Fix test_bigaddrspace and extend it to test bytestrings
...
as well as unicode strings. Initial patch by Sandro Tosi.
2010-11-04 20:48:37 +00:00
Antoine Pitrou
aeb6ceead7
Issue #10293 : Remove obsolete field in the PyMemoryView structure,
...
unused undocumented value PyBUF_SHADOW, and strangely-looking code in
PyMemoryView_GetContiguous.
2010-11-04 20:30:33 +00:00
Eric Smith
27bbca6f79
Issue #6081 : Add str.format_map. str.format_map(mapping) is similar to str.format(**mapping), except mapping does not get converted to a dict.
2010-11-04 17:06:58 +00:00
Phillip J. Eby
b6d4a8e4de
Implement http://bugs.python.org/issue10155 using And Clover's patch, w/added
...
docs and support for more client-generated CGI variables. (This should
complete the WSGI 1.0.1 compliance changes for Python 3.x.)
2010-11-03 22:39:01 +00:00
Antoine Pitrou
4103bc09a4
Issue #10281 : nntplib now returns None for absent fields in the OVER/XOVER
...
response, instead of raising an exception.
2010-11-03 18:18:43 +00:00
Phillip J. Eby
a01799f71a
Update docs (and sample app in wsgiref.simple_server) to reflect PEP 3333.
2010-11-03 00:46:45 +00:00
Antoine Pitrou
f80b3f72c6
Issue #10280 : NNTP.nntp_version should reflect the highest version
...
advertised by the server.
2010-11-02 22:31:52 +00:00
Brett Cannon
ed82ca1078
Ditch some dead code in test_unicode_file.
...
Closes issue #10294 . Thanks Stefan Behnel for the find.
2010-11-02 19:27:59 +00:00
Michael Foord
b36f8329c0
Removing the keyword only restriction for the places argument in unittest.TestCase.assert[Not]AlmostEqual
2010-11-02 14:46:41 +00:00
Martin v. Löwis
16f344df36
Issue #10184 : Touch directories only once when extracting a tarfile.
2010-11-01 21:39:13 +00:00
Alexander Belopolsky
ea13d9d86b
Issue #10199 : Moved Demo/turtle under Lib/
2010-11-01 17:39:37 +00:00
Giampaolo Rodolà
5ea3d0f95b
Fix Issue 6706: return None on connect() in case of EWOULDBLOCK/ECONNABORTED error.
2010-11-01 15:18:09 +00:00
Antoine Pitrou
4d98489da3
Issue #10265 : Close file objects explicitly in sunau. Patch by Brian Brazil.
2010-10-31 21:27:04 +00:00
Raymond Hettinger
189316a2e3
Issue 10110: Let Queue.put recognize a full queue when the maxsize parameter has been reduced.
2010-10-31 17:57:52 +00:00
Benjamin Peterson
076ed00003
add --enable-loadable-sqlite-extensions #10268
2010-10-31 17:11:02 +00:00
Antoine Pitrou
b805ee5fcf
Merged revisions 86037 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86037 | antoine.pitrou | 2010-10-31 17:04:14 +0100 (dim., 31 oct. 2010) | 4 lines
Issue #10266 : uu.decode didn't close in_file explicitly when it was given
as a filename. Patch by Brian Brazil.
........
2010-10-31 16:06:55 +00:00
Antoine Pitrou
f569826f06
Issue #10266 : uu.decode didn't close in_file explicitly when it was given
...
as a filename. Patch by Brian Brazil.
2010-10-31 16:04:14 +00:00
Antoine Pitrou
e974571d36
Issue #10160 : Speed up operator.attrgetter. Patch by Christos Georgiou.
2010-10-31 15:26:04 +00:00
Vinay Sajip
65b4af34d7
Updated NEWS about logging.basicConfig().
2010-10-31 15:11:43 +00:00
Antoine Pitrou
e305425b86
Merged revisions 85975 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85975 | antoine.pitrou | 2010-10-30 15:03:56 +0200 (sam., 30 oct. 2010) | 4 lines
Issue #10246 : uu.encode didn't close file objects explicitly when filenames
were given to it. Patch by Brian Brazil.
........
2010-10-31 13:07:00 +00:00
Antoine Pitrou
735e3b195a
Merged revisions 85982 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85982 | antoine.pitrou | 2010-10-30 18:19:14 +0200 (sam., 30 oct. 2010) | 4 lines
Issue #10253 : FileIO leaks a file descriptor when trying to open a file
for append that isn't seekable. Patch by Brian Brazil.
........
2010-10-31 13:05:21 +00:00
Raymond Hettinger
b643ef8f8e
Issue #5729 : json.dumps to support using '\t' as an indent string
2010-10-31 08:00:16 +00:00
Benjamin Peterson
bbb0412ad1
if FileIO.__init__ fails, close fd
2010-10-30 23:16:28 +00:00
Antoine Pitrou
8d2b51b46a
Issue #10253 : FileIO leaks a file descriptor when trying to open a file
...
for append that isn't seekable. Patch by Brian Brazil.
2010-10-30 16:19:14 +00:00
Georg Brandl
6ce29fa7a8
Fix test_mailbox by supporting context manager protocol for get_file() returns.
2010-10-30 14:33:28 +00:00
Antoine Pitrou
bfa3470b85
Issue #10246 : uu.encode didn't close file objects explicitly when filenames
...
were given to it. Patch by Brian Brazil.
2010-10-30 13:03:56 +00:00
Georg Brandl
cc2adbc693
#10198 : fix duplicate header when writeframes() is called with an empty string.
2010-10-30 08:29:28 +00:00
Raymond Hettinger
7529afce3c
Issue 10221: Improve error message for dict.pop().
2010-10-30 08:14:53 +00:00
Raymond Hettinger
dd4215483f
Issue 10221: Improve error message for dict.pop().
2010-10-30 08:10:29 +00:00
Brett Cannon
028011f9f0
Silence ResourceWarnings in modulefinder by using file context managers.
2010-10-30 00:26:48 +00:00
Brett Cannon
011057854d
Add some missing entries related to the various ResourceWarning fixes I have committed.
2010-10-30 00:18:54 +00:00
Antoine Pitrou
e1eca4e3f5
Issue #10233 : Close file objects in a timely manner in the tarfile module
...
and its test suite.
2010-10-29 23:49:49 +00:00
Martin v. Löwis
72f48422e2
Issue #9377 : Use Unicode API for gethostname on Windows.
2010-10-29 18:20:08 +00:00
Antoine Pitrou
e033e06db0
Issue #10093 : ResourceWarnings are now issued when files and sockets are
...
deallocated without explicit closing. These warnings are silenced by
default, except in pydebug mode.
2010-10-29 10:38:18 +00:00
Lars Gustäbel
9cbdd75ec5
Add read support for all missing variants of the GNU sparse
...
extensions. Thus, in addition to GNUTYPE_SPARSE headers, sparse
information in pax headers created by GNU tar can now be decoded.
All three formats 0.0, 0.1 and 1.0 are supported.
On filesystems that support this, holes in files are now restored
whenever a sparse member is extracted.
2010-10-29 09:08:19 +00:00
Antoine Pitrou
98e2b45297
Merged revisions 85896 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85896 | antoine.pitrou | 2010-10-29 00:56:58 +0200 (ven., 29 oct. 2010) | 4 lines
Issue #5437 : A preallocated MemoryError instance should not hold traceback
data (including local variables caught in the stack trace) alive infinitely.
........
2010-10-28 23:06:57 +00:00
Antoine Pitrou
07e20ef50b
Issue #5437 : A preallocated MemoryError instance should not hold traceback
...
data (including local variables caught in the stack trace) alive infinitely.
2010-10-28 22:56:58 +00:00
Georg Brandl
b9a4391754
#10218 : return timeout status from Condition.wait, mirroring other primitives' behavior.
2010-10-28 09:03:20 +00:00
Georg Brandl
4d54088599
#7351 : add more consistent exception name alias.
2010-10-28 06:42:33 +00:00
Antoine Pitrou
323dd70b48
Merged revisions 85868 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85868 | antoine.pitrou | 2010-10-27 22:13:57 +0200 (mer., 27 oct. 2010) | 3 lines
Issue #8852 : Allow the socket module to build on OpenSolaris.
........
2010-10-27 20:27:14 +00:00
Antoine Pitrou
b156a46b26
Issue #8852 : Allow the socket module to build on OpenSolaris.
2010-10-27 20:13:57 +00:00
Antoine Pitrou
0619ae798d
Merged revisions 85858 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85858 | antoine.pitrou | 2010-10-27 20:33:30 +0200 (mer., 27 oct. 2010) | 5 lines
Issue #5027 : The standard `xml` namespace is now understood by
xml.sax.saxutils.XMLGenerator as being bound to
http://www.w3.org/XML/1998/namespace . Patch by Troy J. Farrell.
........
2010-10-27 18:37:51 +00:00
Antoine Pitrou
6b03ee6033
Issue #5027 : The standard `xml` namespace is now understood by
...
xml.sax.saxutils.XMLGenerator as being bound to
http://www.w3.org/XML/1998/namespace . Patch by Troy J. Farrell.
2010-10-27 18:33:30 +00:00
Georg Brandl
7424dd359c
#5975 : add unix_dialect to csv module.
2010-10-27 07:27:06 +00:00
R. David Murray
35e982f770
Merged revisions 85846 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85846 | r.david.murray | 2010-10-26 08:42:24 -0400 (Tue, 26 Oct 2010) | 2 lines
#7761 : fix telnetlib.interact failures on Windows.
........
2010-10-26 12:47:19 +00:00
R. David Murray
ba488d1504
#7761 : fix telnetlib.interact failures on Windows.
2010-10-26 12:42:24 +00:00
Vinay Sajip
a39c571061
logging: Added style option to Formatter to allow %, {} or himBHformatting.
2010-10-25 13:57:39 +00:00
Jesus Cea
7e9065cf8c
Issue #10143 : Update "os.pathconf" values
2010-10-25 13:02:04 +00:00
Georg Brandl
08be72d0aa
Add a new warning gategory, ResourceWarning, as discussed on python-dev. It is silent by default,
...
except when configured --with-pydebug.
Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
2010-10-24 15:11:22 +00:00
Georg Brandl
5bbbf1d9f9
Merged revisions 85536 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r85536 | georg.brandl | 2010-10-15 18:26:08 +0200 (Fr, 15 Okt 2010) | 1 line
#9054 : fix crash when using pyexpat with a system expat lib version 2.0.1.
........
2010-10-24 14:20:36 +00:00
Nick Coghlan
543af75961
Issue 5178: Add tempfile.TemporaryDirectory (original patch by Neil Schemenauer)
2010-10-24 11:23:25 +00:00
Benjamin Peterson
9831611865
Merged revisions 85814 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85814 | benjamin.peterson | 2010-10-23 21:52:05 -0500 (Sat, 23 Oct 2010) | 1 line
remove broken code accounting an offset the size of the line #10186
........
2010-10-24 02:57:31 +00:00
Benjamin Peterson
503d6c5ae9
remove broken code accounting an offset the size of the line #10186
2010-10-24 02:52:05 +00:00
R. David Murray
8451c4b6e0
#1349106 : add linesep argument to generator.flatten and header.encode.
2010-10-23 22:19:56 +00:00
Georg Brandl
1e908af335
#6518 : enable context manager protocol for ossaudiodev types.
2010-10-23 17:31:52 +00:00
Victor Stinner
75d8c5cea2
Issue #6011 : sysconfig and distutils.sysconfig use the surrogateescape error
...
handler to parse the Makefile file. Avoid a UnicodeDecodeError if the source
code directory name contains a non-ASCII character and the locale encoding is
ASCII.
2010-10-23 17:02:31 +00:00
Victor Stinner
3aa6cea861
Issue #10077 : Fix logging of site module errors at startup.
2010-10-23 08:50:36 +00:00
Antoine Pitrou
ff150f2921
Revert r85797 (and r85798): it broke the Windows buildbots because of
...
test_multiprocessing's misbehaviour.
2010-10-22 21:41:05 +00:00
Antoine Pitrou
7eecffd05d
Issue #9935 : Speed up pickling of instances of user-defined classes.
2010-10-22 19:43:59 +00:00
Antoine Pitrou
d532321f7b
Issue #5639 : Add a *server_hostname* argument to `SSLContext.wrap_socket`
...
in order to support the TLS SNI extension. `HTTPSConnection` and
`urlopen()` also use this argument, so that HTTPS virtual hosts are now
supported.
2010-10-22 18:19:07 +00:00
Georg Brandl
83938437cb
#10166 : rewrite self-recursion to iteration in pstats.Stats.add(). Also add a unittest and a stats test file.
2010-10-22 06:28:01 +00:00
Brian Curtin
000f974b44
Fix #10162 : Add try/except around _winreg.OpenKey for keys that are
...
unreadable by all users, e.g., Flash, Silverlight, and Java keys were
causing errors.
We don't currently have a way to grant/deny permissions for a key
via winreg so there are no tests for this.
2010-10-21 14:11:48 +00:00
Antoine Pitrou
9583cac633
Issue #10089 : Add support for arbitrary -X options on the command-line.
...
They can be retrieved through a new attribute `sys._xoptions`.
2010-10-21 13:42:28 +00:00
Victor Stinner
f933e1ab6f
Issue #4388 : On Mac OS X, decode command line arguments from UTF-8, instead of
...
the locale encoding. If the LANG (and LC_ALL and LC_CTYPE) environment variable
is not set, the locale encoding is ISO-8859-1, whereas most programs (including
Python) expect UTF-8. Python already uses UTF-8 for the filesystem encoding and
to encode command line arguments on this OS.
2010-10-20 22:58:25 +00:00
Vinay Sajip
2a20dfc2aa
logging: Made StreamHandler terminator configurable.
2010-10-20 20:05:38 +00:00
Ronald Oussoren
7e7dbab08a
Merged revisions 85744 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85744 | ronald.oussoren | 2010-10-20 15:10:12 +0200 (Wed, 20 Oct 2010) | 7 lines
Fix for issue #7473 .
Without this patch you'll get link errors in some extensions
(in particular the _curses_panel) one when you try to build
a 3-way universal framework when you previously installed a
2-way universal framework using the python.org installer.
........
2010-10-20 13:40:38 +00:00
Ronald Oussoren
f3500e1198
Fix for issue #7473 .
...
Without this patch you'll get link errors in some extensions
(in particular the _curses_panel) one when you try to build
a 3-way universal framework when you previously installed a
2-way universal framework using the python.org installer.
2010-10-20 13:10:12 +00:00
Vinay Sajip
6dbed2e8b3
logging: Allowed filters to be just callables.
2010-10-19 20:53:01 +00:00
Vinay Sajip
6fac817136
logging: Added tests for _logRecordClass changes.
2010-10-19 20:44:14 +00:00
Georg Brandl
7004bd1a3d
#10092 : Properly reset locale in Locale*Calendar classes. The context manager was buggy because setlocale() returns the *new* locale, not the old. Also add a test for this.
2010-10-19 18:54:25 +00:00
Vinay Sajip
062d56b1f0
logging: Added _logRecordClass, getLogRecordClass, setLogRecordClass to increase flexibility of LogRecord creation.
2010-10-19 15:26:24 +00:00
Victor Stinner
15244f7b12
Recorded merge of revisions 85569-85570 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85569 | victor.stinner | 2010-10-16 15:14:10 +0200 (sam., 16 oct. 2010) | 4 lines
Issue #9713 , #10114 : Parser functions (eg. PyParser_ASTFromFile) expects
filenames encoded to the filesystem encoding with surrogateescape error handler
(to support undecodable bytes), instead of UTF-8 in strict mode.
........
r85570 | victor.stinner | 2010-10-16 15:42:53 +0200 (sam., 16 oct. 2010) | 4 lines
Fix ast_error_finish() and err_input(): filename can be NULL
Fix my previous commit (r85569).
........
2010-10-19 01:22:07 +00:00
Alexander Belopolsky
4a98e3b6d0
Issue #10117 : Tools/scripts/reindent.py now accepts source files that
...
use encoding other than ASCII or UTF-8. Source encoding is preserved
when reindented code is written to a file.
2010-10-18 14:43:38 +00:00
Hirokazu Yamamoto
089144e511
Merged revisions 85689 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85689 | hirokazu.yamamoto | 2010-10-18 21:13:18 +0900 | 3 lines
Issue #5117 : Case normalization was needed on ntpath.relpath(). And
fixed root directory issue on posixpath.relpath(). (Ported working fixes
from ntpath)
........
2010-10-18 13:49:09 +00:00
Hirokazu Yamamoto
b08820ad40
Issue #5117 : Case normalization was needed on ntpath.relpath(). And
...
fixed root directory issue on posixpath.relpath(). (Ported working fixes
from ntpath)
2010-10-18 12:13:18 +00:00
R. David Murray
e194dd60f0
#678250 : Make mmap flush a noop on ACCESS_READ and ACCESS_COPY.
...
Patch by Sébastien Sablé. This solves a test_mmap failure on AIX.
2010-10-18 01:14:06 +00:00
R. David Murray
a90032a3fb
#1343 : Add short_empty_elements option to XMLGenerator.
...
Patch and tests by Neil Muller.
2010-10-17 22:46:45 +00:00
Benjamin Peterson
8f67d0893f
make hashes always the size of pointers; introduce Py_hash_t #9778
2010-10-17 20:54:53 +00:00
Martin v. Löwis
c980ffde14
Drop OPT:Olimit, as it confuses SunPRO (and other compilers).
2010-10-17 19:36:54 +00:00
Matthias Klose
8690ae57f3
- Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension.
2010-10-17 13:22:33 +00:00
Victor Stinner
9d396399da
Issue #10123 : Don't use non-ascii filenames in test_doctest tests. Add a
...
new test specific to unicode (non-ascii name and filename).
2010-10-16 21:54:59 +00:00
Victor Stinner
4c7c8c3023
Issue #9713 , #10114 : Parser functions (eg. PyParser_ASTFromFile) expects
...
filenames encoded to the filesystem encoding with surrogateescape error handler
(to support undecodable bytes), instead of UTF-8 in strict mode.
2010-10-16 13:14:10 +00:00
Benjamin Peterson
e9633491ca
Merged revisions 85562 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85562 | benjamin.peterson | 2010-10-15 22:45:45 -0500 (Fri, 15 Oct 2010) | 1 line
don't identify the toplevel namespace by name #9997
........
2010-10-16 03:49:22 +00:00
Benjamin Peterson
230b20684f
don't identify the toplevel namespace by name #9997
2010-10-16 03:45:45 +00:00
Barry Warsaw
f6219a588d
Add NEWS for issue 9807 part 1.
2010-10-16 01:20:45 +00:00
R. David Murray
e16cda9ad8
#9862 : On AIX PIPE_BUF is broken. Make it 512.
...
Patch by Sébastien Sablé.
2010-10-15 23:12:57 +00:00
Georg Brandl
3844f0d7cd
#6098 : Refrain from claiming DOM level 3 conformance in minidom.
2010-10-15 18:00:35 +00:00
Georg Brandl
b9cd72a9f7
#5762 : fix handling of empty namespace in minidom, which would result in AttributeError on toxml().
2010-10-15 17:58:45 +00:00
Georg Brandl
d2413428dc
Fix issue references.
2010-10-15 16:42:14 +00:00
Alexander Belopolsky
e8f583244a
Issue #9308 : Removed redundant coding cookies. Added tests for
...
importing encoded modules that do not depend on specific stdlib
modules being encoded in a certain way.
2010-10-15 16:28:20 +00:00
Georg Brandl
c01537f742
#9054 : fix crash when using pyexpat with a system expat lib version 2.0.1.
2010-10-15 16:26:08 +00:00
Georg Brandl
1f7fffb308
#2830 : add html.escape() helper and move cgi.escape() uses in the standard library to it. It defaults to quote=True and also escapes single quotes, which makes casual use safer. The cgi.escape() interface is not touched, but emits a (silent) PendingDeprecationWarning.
2010-10-15 15:57:45 +00:00
Georg Brandl
b4dac71a87
#5355 : Provide mappings from Expat error numbers to string descriptions and backwards, in order to actually make it possible to analyze error codes provided by ExpatError.
2010-10-15 14:46:48 +00:00
Victor Stinner
f3170ccef8
Use locale encoding if Py_FileSystemDefaultEncoding is not set
...
* PyUnicode_EncodeFSDefault(), PyUnicode_DecodeFSDefaultAndSize() and
PyUnicode_DecodeFSDefault() use the locale encoding instead of UTF-8 if
Py_FileSystemDefaultEncoding is NULL
* redecode_filenames() functions and _Py_code_object_list (issue #9630 )
are no more needed: remove them
2010-10-15 12:04:23 +00:00
Florent Xicluna
d9f57630fe
Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409 )
2010-10-14 20:56:20 +00:00
Alexander Belopolsky
1bcbaab15a
Issue 9183: Intern UTC timezone.
2010-10-14 17:03:51 +00:00
Matthias Klose
3fbfea1fae
- Issue #10094 : Use versioned .so files on GNU/kfreeBSD and the GNU Hurd.
2010-10-14 15:24:22 +00:00
Antoine Pitrou
b1c5496738
Issue #7523 : Add SOCK_CLOEXEC and SOCK_NONBLOCK to the socket module,
...
where supported by the system. Patch by Nikita Vetoshkin.
2010-10-14 15:05:38 +00:00
Victor Stinner
22a351aabf
Issue #10095 : fp_setreadl() doesn't reopen the file, reuse instead the file
...
descriptor.
2010-10-14 12:04:34 +00:00
Senthil Kumaran
383c32dd38
Issue10063 - file:// scheme will stop accessing remote hosts via ftp protocol
2010-10-14 11:57:35 +00:00
Georg Brandl
66c221e993
#9418 : first step of moving private string methods to _string module.
2010-10-14 07:04:07 +00:00
Georg Brandl
268e4d4cf3
#1710703 : write zipfile structures also in the case of closing a new, but empty, archive.
2010-10-14 06:59:45 +00:00
Victor Stinner
052a04d34a
Revert r85435 (and r85440): decode command line arguments from utf-8
...
Python exits with a fatal error if the command line contains an undecodable
argument. PyUnicode_FromString() fails at the first undecodable byte because it
calls the error handler, but error handlers are not ready before Python
initialization.
2010-10-13 23:24:06 +00:00
Victor Stinner
90bbaa57f9
Issue #9992 : On Mac OS X, decode command line arguments from utf-8 instead of
...
the locale encoding.
2010-10-13 22:15:06 +00:00
Benjamin Peterson
ae87a27a29
Merged revisions 85429 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85429 | benjamin.peterson | 2010-10-13 16:59:36 -0500 (Wed, 13 Oct 2010) | 1 line
remove obselete import implementation #7287
........
2010-10-13 22:02:44 +00:00
Victor Stinner
8f6b6b0cc3
Issue #9992 : Remove PYTHONFSENCODING environment variable.
2010-10-13 22:02:27 +00:00
Benjamin Peterson
aa96592a59
remove obselete import implementation #7287
2010-10-13 21:59:36 +00:00
Antoine Pitrou
674f40092a
Merged revisions 85420 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85420 | antoine.pitrou | 2010-10-13 18:17:14 +0200 (mer., 13 oct. 2010) | 5 lines
Issue #10041 : The signature of optional arguments in socket.makefile()
didn't match that of io.open(), and they also didn't get forwarded
properly to TextIOWrapper in text mode. Patch by Kai Zhu.
........
2010-10-13 16:25:33 +00:00
Antoine Pitrou
834bd81c51
Issue #10041 : The signature of optional arguments in socket.makefile()
...
didn't match that of io.open(), and they also didn't get forwarded
properly to TextIOWrapper in text mode. Patch by Kai Zhu.
2010-10-13 16:17:14 +00:00
Antoine Pitrou
803e6d670c
Issue #9003 : http.client.HTTPSConnection, urllib.request.HTTPSHandler and
...
urllib.request.urlopen now take optional arguments to allow for
server certificate checking, as recommended in public uses of HTTPS.
2010-10-13 10:36:15 +00:00
Benjamin Peterson
582162e42b
Merged revisions 85392 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85392 | benjamin.peterson | 2010-10-12 17:57:59 -0500 (Tue, 12 Oct 2010) | 1 line
prefer clearing global objects to obscure module.__dict__ bugs #10068
........
2010-10-12 23:06:22 +00:00
Benjamin Peterson
5c4bfc4af0
prefer clearing global objects to obscure module.__dict__ bugs #10068
2010-10-12 22:57:59 +00:00
Victor Stinner
93f5cd42e7
Merged revisions 85386-85387,85389 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85386 | victor.stinner | 2010-10-13 00:23:23 +0200 (mer., 13 oct. 2010) | 3 lines
Issue #6612 : Fix site and sysconfig to catch os.getcwd() error, eg. if the
current directory was deleted.
........
r85387 | victor.stinner | 2010-10-13 00:26:08 +0200 (mer., 13 oct. 2010) | 2 lines
#6612 : add the author of the patch (W. Trevor King)
........
r85389 | victor.stinner | 2010-10-13 00:42:37 +0200 (mer., 13 oct. 2010) | 2 lines
NEWS: Move #6612 to Library section
........
2010-10-12 22:56:55 +00:00
Victor Stinner
11b1f3dac1
NEWS: Move #6612 to Library section
2010-10-12 22:42:37 +00:00
Victor Stinner
06bca9a24b
#6612 : add the author of the patch (W. Trevor King)
2010-10-12 22:26:08 +00:00
Victor Stinner
b103a937ea
Issue #6612 : Fix site and sysconfig to catch os.getcwd() error, eg. if the
...
current directory was deleted.
2010-10-12 22:23:23 +00:00
Antoine Pitrou
04248a8d99
Issue #3873 : Speed up unpickling from file objects which have a peek()
...
method.
2010-10-12 20:51:21 +00:00
Antoine Pitrou
b0182c8ca5
Issue #10075 : Add a session_stats() method to SSLContext objects.
2010-10-12 20:09:02 +00:00
Georg Brandl
8349031934
Post-release bumps.
2010-10-12 12:38:48 +00:00
Martin v. Löwis
44270f1c65
Add entry for r85371.
2010-10-11 22:50:33 +00:00
Martin v. Löwis
e8930228c7
Add 3.2b1.
2010-10-11 22:38:01 +00:00
Vinay Sajip
1c71b2af1a
Issue #9948 : logging: fixed problem of losing filename case information.
2010-10-10 20:36:04 +00:00
Georg Brandl
27a28589c5
Rewrap.
2010-10-10 09:49:21 +00:00
Georg Brandl
002fa2de90
Bump to 3.2a3.
2010-10-10 09:40:34 +00:00
Antoine Pitrou
dbec780a0b
Issue #9437 : Fix building C extensions with non-default LDFLAGS.
2010-10-10 09:37:12 +00:00
Antoine Pitrou
19f8edc39d
Issue #10062 : Allow building on platforms which do not have sem_timedwait.
2010-10-10 08:37:22 +00:00
Antoine Pitrou
c15835437d
Merged revisions 85349 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85349 | antoine.pitrou | 2010-10-10 10:10:16 +0200 (dim., 10 oct. 2010) | 4 lines
Some platforms provide uintptr_t in inttypes.h. Patch by
Akira Kitada.
........
2010-10-10 08:15:08 +00:00
Antoine Pitrou
1bf29b7da7
Some platforms provide uintptr_t in inttypes.h. Patch by
...
Akira Kitada.
2010-10-10 08:10:16 +00:00
Antoine Pitrou
ae136da881
Merged revisions 85342 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85342 | antoine.pitrou | 2010-10-09 17:24:28 +0200 (sam., 09 oct. 2010) | 4 lines
Issue #10055 : Make json C89-compliant in UCS4 mode.
........
2010-10-09 15:26:41 +00:00
Antoine Pitrou
5b0e9e84e9
Issue #10055 : Make json C89-compliant in UCS4 mode.
2010-10-09 15:24:28 +00:00
Antoine Pitrou
07f62a7702
Merged revisions 74473,79974 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r74473 | guilherme.polo | 2009-08-16 16:44:14 +0200 (dim., 16 août 2009) | 13 lines
Merged revisions 74471-74472 via svnmerge from
svn+ssh://pythondev/python/trunk
........
r74471 | guilherme.polo | 2009-08-16 11:34:26 -0300 (Sun, 16 Aug 2009) | 1 line
Issue #6244 : Allow detect_tkinter to look for Tcl/Tk 8.6.
........
r74472 | guilherme.polo | 2009-08-16 11:38:57 -0300 (Sun, 16 Aug 2009) | 1 line
Wrong place for issue #6244 .
........
................
r79974 | benjamin.peterson | 2010-04-12 00:04:51 +0200 (lun., 12 avril 2010) | 13 lines
Merged revisions 79903,79907 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79903 | martin.v.loewis | 2010-04-08 04:47:40 -0500 (Thu, 08 Apr 2010) | 2 lines
Issue #8344 : Fix test_ttk bug on FreeBSD.
........
r79907 | martin.v.loewis | 2010-04-08 12:38:32 -0500 (Thu, 08 Apr 2010) | 2 lines
Issue #8204 : Fix test_ttk notebook test by forcing focus.
........
................
2010-10-09 10:25:55 +00:00
Victor Stinner
257d38ffdd
Issue #9738 : Document PyErr_SetString() and PyErr_SetFromErrnoWithFilename()
...
encodings
2010-10-09 10:12:11 +00:00
Antoine Pitrou
81564093a1
Issue #1051 : Add a script (Lib/test/make_ssl_certs.py) to generate the
...
custom certificate and private key files used by SSL-related certs.
2010-10-08 23:06:24 +00:00
R. David Murray
96fd54eaec
#4661 : add bytes parsing and generation to email (email version bump to 5.1.0)
...
The work on this is not 100% complete, but everything is present to
allow real-world testing of the code. The only remaining major todo
item is to (hopefully!) enhance the handling of non-ASCII bytes in headers
converted to unicode by RFC2047 encoding them rather than replacing them with
'?'s.
2010-10-08 15:55:28 +00:00
Antoine Pitrou
59fdd6736b
Issue #1589 : Add ssl.match_hostname(), to help implement server identity
...
verification for higher-level protocols.
2010-10-08 10:37:08 +00:00
Hirokazu Yamamoto
54c950f6b4
Issue #9978 : Wait until subprocess completes initialization. (Win32KillTests in test_os)
2010-10-08 08:38:15 +00:00
Raymond Hettinger
bc95973b51
Fix handling on negative numbers in ast.literal_eval().
2010-10-08 00:47:45 +00:00
Antoine Pitrou
e3900542e4
Merged revisions 85291 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85291 | antoine.pitrou | 2010-10-06 23:21:18 +0200 (mer., 06 oct. 2010) | 4 lines
Issue #9759 : GzipFile now raises ValueError when an operation is attempted
after the file is closed. Patch by Jeffrey Finkelstein.
........
2010-10-06 21:29:56 +00:00
Antoine Pitrou
7980eaa98d
Issue #9759 : GzipFile now raises ValueError when an operation is attempted
...
after the file is closed. Patch by Jeffrey Finkelstein.
2010-10-06 21:21:18 +00:00
Georg Brandl
b79b152396
Remove NEWS.help (manual backport of r84533).
2010-10-06 09:29:36 +00:00
Éric Araujo
ef777bd3d3
Fix news entry formatting nits
2010-10-05 00:04:20 +00:00
Éric Araujo
298be5161f
Merged revisions 85223 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85223 | eric.araujo | 2010-10-05 01:52:37 +0200 (mar., 05 oct. 2010) | 3 lines
Fix interaction of custom translation classes and caching (#9042 )
........
2010-10-04 23:57:46 +00:00
Éric Araujo
6108bf5ed0
Fix interaction of custom translation classes and caching ( #9042 )
2010-10-04 23:52:37 +00:00
Giampaolo Rodolà
977c707b42
Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcher
2010-10-04 21:08:36 +00:00
Lars Gustäbel
2fdbfc507e
Merged revisions 85211 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85211 | lars.gustaebel | 2010-10-04 17:18:47 +0200 (Mon, 04 Oct 2010) | 14 lines
Issue #9065 : no longer use "root" as the default for the
uname and gname field.
If tarfile creates a new archive and adds a file with a
uid/gid that doesn't have a corresponding name on the
system (e.g. because the user/group account was deleted) it
uses the empty string in the uname/gname field now instead
of "root". Using "root" as the default was a bad idea
because on extraction the uname/gname fields are supposed
to override the uid/gid fields. So, all archive members
with nameless uids/gids belonged to the root user after
extraction.
........
2010-10-04 15:31:05 +00:00
Lars Gustäbel
331b8002f0
Issue #9065 : no longer use "root" as the default for the
...
uname and gname field.
If tarfile creates a new archive and adds a file with a
uid/gid that doesn't have a corresponding name on the
system (e.g. because the user/group account was deleted) it
uses the empty string in the uname/gname field now instead
of "root". Using "root" as the default was a bad idea
because on extraction the uname/gname fields are supposed
to override the uid/gid fields. So, all archive members
with nameless uids/gids belonged to the root user after
extraction.
2010-10-04 15:18:47 +00:00
Tarek Ziadé
4b34131bd5
Merged revisions 85199 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85199 | tarek.ziade | 2010-10-03 16:45:06 +0200 (Sun, 03 Oct 2010) | 1 line
typo in Arfrever name
........
2010-10-03 14:46:36 +00:00
Tarek Ziadé
388f956c35
typo in Arfrever name
2010-10-03 14:45:06 +00:00
Tarek Ziadé
c9afba853c
Merged revisions 85197 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85197 | tarek.ziade | 2010-10-03 16:18:09 +0200 (Sun, 03 Oct 2010) | 1 line
Fixed #8980 : distutils.command.check was failing w/ docutils installed
........
2010-10-03 14:30:11 +00:00
Tarek Ziadé
4bcceef5a1
Fixed #8980 : distutils.command.check was failing w/ docutils installed
2010-10-03 14:18:09 +00:00
Benjamin Peterson
0ad44fa3f7
Merged revisions 85154,85182 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85154 | benjamin.peterson | 2010-10-01 19:03:31 -0500 (Fri, 01 Oct 2010) | 1 line
type.__abstractmethods__ should raise an AttributeError #10006
........
r85182 | benjamin.peterson | 2010-10-02 12:55:47 -0500 (Sat, 02 Oct 2010) | 1 line
add a test and a note about metaclasses now being abcs
........
2010-10-02 18:04:55 +00:00
Benjamin Peterson
970d1887c5
add a test and a note about metaclasses now being abcs
2010-10-02 17:55:47 +00:00
R. David Murray
7f8199a997
Merged revisions 85179 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85179 | r.david.murray | 2010-10-02 11:58:26 -0400 (Sat, 02 Oct 2010) | 6 lines
#1050268 : make parseaddr 'quote' the contents of quoted strings in addresses.
Also made the doc string for email._parseaddr's 'quote' function more
accurate; I'd love to make the function match the old docstring instead,
but other code uses it according the existing semantics.
........
2010-10-02 16:04:44 +00:00
R. David Murray
5397e862e2
#1050268 : make parseaddr 'quote' the contents of quoted strings in addresses.
...
Also made the doc string for email._parseaddr's 'quote' function more
accurate; I'd love to make the function match the old docstring instead,
but other code uses it according the existing semantics.
2010-10-02 15:58:26 +00:00
Victor Stinner
aef57e3969
Update changelog for r85174
2010-10-02 11:50:49 +00:00
Victor Stinner
5593d8aeb4
Issue #8670 : PyUnicode_AsWideChar() and PyUnicode_AsWideCharString() replace
...
UTF-16 surrogate pairs by single non-BMP characters for 16 bits Py_UNICODE
and 32 bits wchar_t (eg. Linux in narrow build).
2010-10-02 11:11:27 +00:00
Benjamin Peterson
aec5fd1397
type.__abstractmethods__ should raise an AttributeError #10006
2010-10-02 00:03:31 +00:00
R. David Murray
f9c957f2c6
Merged revisions 85142 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85142 | r.david.murray | 2010-10-01 11:40:20 -0400 (Fri, 01 Oct 2010) | 5 lines
#10004 : in Q encoded word ignore '=xx' when xx is not valid hex.
Bug report and fix by Thomas Guettler.
........
2010-10-01 15:45:48 +00:00
R. David Murray
31e984c39c
#10004 : in Q encoded word ignore '=xx' when xx is not valid hex.
...
Bug report and fix by Thomas Guettler.
2010-10-01 15:40:20 +00:00
Brian Curtin
eccd4d910d
Merged revisions 85140 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85140 | brian.curtin | 2010-10-01 09:49:24 -0500 (Fri, 01 Oct 2010) | 4 lines
Fix #10003 . Add SIGBREAK to the set of valid signals on Windows.
This fixes a regression noticed by bzr, introduced by issue #9324 .
........
2010-10-01 15:09:53 +00:00
Brian Curtin
9e88b5aeee
Fix #10003 . Add SIGBREAK to the set of valid signals on Windows.
...
This fixes a regression noticed by bzr, introduced by issue #9324 .
2010-10-01 14:49:24 +00:00
Alexander Belopolsky
38e2996152
Issue #6608 : time.asctime is now checking struct tm fields its input
...
before passing it to the system asctime. Patch by MunSic Jeong.
2010-10-01 14:18:49 +00:00
Senthil Kumaran
0f476d49f8
Issue1491 - BaseHTTPServer incorrectly implements response code 100
2010-09-30 06:09:18 +00:00
Antoine Pitrou
69ab95105f
Issue #9360 : Cleanup and improvements to the nntplib module. The API
...
now conforms to the philosophy of bytes and unicode separation in Python 3.
A test suite has also been added.
2010-09-29 15:03:40 +00:00
Antoine Pitrou
c3ed2e7f83
Issue #9962 : GzipFile now has the peek() method.
2010-09-29 10:49:46 +00:00
Victor Stinner
137c34c027
Issue #9979 : Create function PyUnicode_AsWideCharString().
2010-09-29 10:25:54 +00:00
R. David Murray
11cabcf73d
#7110 : have regrtest print test failures and tracebacks to stderr not stdout.
...
Patch by Sandro Tosi.
2010-09-29 01:08:05 +00:00
R. David Murray
a0a89b9006
Merged revisions 85078 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85078 | r.david.murray | 2010-09-28 18:25:18 -0400 (Tue, 28 Sep 2010) | 2 lines
#9628 : fix runtests.sh -x option so more than one test can be excluded.
........
2010-09-28 22:34:03 +00:00
R. David Murray
b78b4893a9
#9628 : fix runtests.sh -x option so more than one test can be excluded.
2010-09-28 22:25:18 +00:00
Antoine Pitrou
3e1fd27b74
Issue #9090 : When a socket with a timeout fails with EWOULDBLOCK or EAGAIN,
...
retry the select() loop instead of bailing out. This is because select()
can incorrectly report a socket as ready for reading (for example, if it
received some data with an invalid checksum).
2010-09-28 21:23:11 +00:00
Hirokazu Yamamoto
cc868d430b
Issue #3612 : Added new types to ctypes.wintypes. (CHAR and pointers)
2010-09-28 21:08:38 +00:00
Ronald Oussoren
e9355de31b
Merged revisions 85062 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85062 | ronald.oussoren | 2010-09-28 16:38:31 +0200 (Tue, 28 Sep 2010) | 3 lines
Fix for issue #9568 .
........
2010-09-28 14:40:22 +00:00
Ronald Oussoren
01c428999a
Fix for issue #9568 .
2010-09-28 14:38:31 +00:00
Ronald Oussoren
478b2a8167
Merged revisions 85059 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85059 | ronald.oussoren | 2010-09-28 15:57:58 +0200 (Tue, 28 Sep 2010) | 5 lines
Add support for the ZSH shell to the "Update Shell Profile" script
on MacOSX.
Patch by Sylvain Mora, issue #9701 .
........
2010-09-28 14:04:41 +00:00
Ronald Oussoren
9af738022e
Add support for the ZSH shell to the "Update Shell Profile" script
...
on MacOSX.
Patch by Sylvain Mora, issue #9701 .
2010-09-28 13:57:58 +00:00
Mark Dickinson
fa41e60c9d
Issue #9599 : Tweak loghelper algorithm to return slightly improved results for powers of 2.
2010-09-28 07:22:27 +00:00
Brett Cannon
5305a998d5
Since __import__ is not designed for general use, have its docstring point
...
people towards importlib.import_module().
Closes issue #7397 .
2010-09-27 21:08:38 +00:00
Antoine Pitrou
08ae02f11e
Merged revisions 85032 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85032 | antoine.pitrou | 2010-09-27 19:52:25 +0200 (lun., 27 sept. 2010) | 6 lines
Issue #9950 : Fix socket.sendall() crash or misbehaviour when a signal is
received. Now sendall() properly calls signal handlers if necessary,
and retries sending if these returned successfully, including on sockets
with a timeout.
........
2010-09-27 18:14:43 +00:00
Brian Curtin
1771b54bed
Implement #8521 . Added named argument handling to winreg's CreateKeyEx,
...
DeleteKeyEx, and OpenKeyEx.
Note that CKE and DKE are new functions for 3.2 so I didn't give them a
versionchanged because of the existing versionadded. OpenKeyEx already
existed so it gets a versionchanged tag.
2010-09-27 17:56:36 +00:00
Antoine Pitrou
6d7df63837
Issue #9950 : Fix socket.sendall() crash or misbehaviour when a signal is
...
received. Now sendall() properly calls signal handlers if necessary,
and retries sending if these returned successfully, including on sockets
with a timeout.
2010-09-27 17:52:25 +00:00
Vinay Sajip
9fdd11b3b6
Issue #9947 : logging: Fixed locking bug in stopListening.
2010-09-25 17:48:25 +00:00
Vinay Sajip
32fb6a81f9
Issue #9945 : logging: Fixed locking bugs in addHandler/removeHandler.
2010-09-25 17:42:36 +00:00
Benjamin Peterson
aa7fbd9564
revert r85003, poorly considered; breaks tests
2010-09-25 03:25:42 +00:00
Benjamin Peterson
81437c9025
don't count keyword arguments as positional #9943
2010-09-25 03:14:33 +00:00
Alexander Belopolsky
402392bd5a
Merged revisions 84994 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84994 | alexander.belopolsky | 2010-09-24 14:03:12 -0400 (Fri, 24 Sep 2010) | 1 line
Issue #9936 : Fixed executable lines' search in the trace module.
........
2010-09-24 18:08:24 +00:00
Alexander Belopolsky
ff09ce211f
Issue #9936 : Fixed executable lines' search in the trace module.
2010-09-24 18:03:12 +00:00
Brian Curtin
0dac808b3e
Fix #9790 : Rework the imports necessary for ntpath.samefile and
...
ntpath.sameopenfile.
2010-09-23 20:38:14 +00:00
Mark Dickinson
a67c70d4a9
Merged revisions 84984 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84984 | mark.dickinson | 2010-09-23 21:11:19 +0100 (Thu, 23 Sep 2010) | 5 lines
Issue #9930 : Remove an unnecessary type check in wrap_binaryfunc_r;
this was causing reversed method calls like float.__radd__(3.0, 1) to
return NotImplemented instead of the expected numeric value.
........
2010-09-23 20:16:03 +00:00
Mark Dickinson
b09a3d69a6
Issue #9930 : Remove an unnecessary type check in wrap_binaryfunc_r;
...
this was causing reversed method calls like float.__radd__(3.0, 1) to
return NotImplemented instead of the expected numeric value.
2010-09-23 20:11:19 +00:00
Brian Curtin
e8e4b3bfd6
#9808 . Implement os.getlogin for Windows, completed by Jon Anglin.
...
The test is semi-dumb, it just makes sure something comes back since we
don't have a solid source to validate the returned login. We can't be 100%
sure that the USERNAME env var will always match what os.getlogin() returns,
so we don't make any specific assertion there.
2010-09-23 20:04:14 +00:00
Antoine Pitrou
9227508dec
Merged revisions 84980 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84980 | antoine.pitrou | 2010-09-23 21:51:39 +0200 (jeu., 23 sept. 2010) | 3 lines
Issue #9928 : Properly initialize the types exported by the bz2 module.
........
2010-09-23 19:54:28 +00:00
Antoine Pitrou
70c6044913
Issue #9928 : Properly initialize the types exported by the bz2 module.
2010-09-23 19:51:39 +00:00
Antoine Pitrou
7b9698435d
Issue #1675951 : Allow GzipFile to work with unseekable file objects.
...
Patch by Florian Festi.
2010-09-23 16:22:51 +00:00
Vinay Sajip
0637d493e9
logging: added QueueListener and documentation.
2010-09-23 08:15:54 +00:00
Barry Warsaw
31c604d3a7
Issue 9916: Add some missing errno symbols.
2010-09-22 20:58:04 +00:00
Benjamin Peterson
0dc97ed18d
fix news
2010-09-21 21:28:47 +00:00
Hirokazu Yamamoto
2f816e6a10
Issue #9552 : Avoid unnecessary rebuild of OpenSSL. (Windows)
2010-09-21 18:23:05 +00:00
Antoine Pitrou
38425292fb
Issue #9908 : Fix os.stat() on bytes paths under Windows 7.
2010-09-21 18:19:07 +00:00
Antoine Pitrou
b3bfc3d88b
Issue #9899 : Fix test_tkinter.test_font on various platforms. Patch by
...
Ned Deily.
2010-09-21 16:26:09 +00:00
Antoine Pitrou
52d42503d5
Issue #2643 : msync() is not called anymore when deallocating an open mmap
...
object, only munmap().
2010-09-21 16:08:27 +00:00
Hirokazu Yamamoto
e31f7d9e2e
Revert r84902 before committing better solution.
2010-09-21 16:05:47 +00:00
Antoine Pitrou
6e41347df7
Merged revisions 84946 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84946 | antoine.pitrou | 2010-09-21 17:19:14 +0200 (mar., 21 sept. 2010) | 4 lines
Issue #1633863 : Don't ignore $CC under AIX.
........
2010-09-21 15:23:10 +00:00
Antoine Pitrou
f6350d2654
Issue #1633863 : Don't ignore $CC under AIX.
2010-09-21 15:19:14 +00:00
Brian Quinlan
af38dc5b0c
Add an entry for the concurrent.futures package
2010-09-21 12:28:43 +00:00
Vinay Sajip
212b590e11
logging: Updated LoggerAdapter implementation.
2010-09-21 11:31:32 +00:00
Vinay Sajip
c84f016988
Added some methods to LoggerAdapter, and updated documentation.
2010-09-21 11:25:39 +00:00
Benjamin Peterson
d4efd9eb15
add column offset to all syntax errors
2010-09-20 23:02:10 +00:00
Benjamin Peterson
2bc5c0be01
add news note
2010-09-20 23:01:33 +00:00
Antoine Pitrou
b0b384b7c0
Issue #9901 : Destroying the GIL in Py_Finalize() can fail if some other
...
threads are still running. Instead, reinitialize the GIL on a second
call to Py_Initialize().
2010-09-20 20:13:48 +00:00
Barry Warsaw
ebbef6fef2
Issue 9877: expose sysconfig.get_makefile_filename() in the public API.
2010-09-20 15:29:53 +00:00
Vinay Sajip
83eadd1488
logging: hasHandlers additions documented.
2010-09-20 10:31:18 +00:00
Brett Cannon
bc2eff3112
PyImport_Import was using the old import hack of sticking a dummy value into
...
fromlist to get __import__ to return the module desired. Now it uses the proper
approach of fetching the module from sys.modules.
Closes issue #9252 . Thanks to Alexander Belopolsky for the bug report.
2010-09-19 21:39:02 +00:00
Hirokazu Yamamoto
ba45c2b6a7
Issue #9552 : Avoid unnecessary rebuild of OpenSSL. (Windows)
2010-09-19 09:24:20 +00:00
Florent Xicluna
eb19dce085
Issue #1686 : Fix string.Template when overriding the pattern attribute.
2010-09-18 23:34:07 +00:00
Antoine Pitrou
98b46702d2
Issue #9854 : SocketIO objects now observe the RawIOBase interface in
...
non-blocking mode: they return None when an operation would block (instead
of raising an exception).
2010-09-18 22:59:00 +00:00
Hirokazu Yamamoto
dc92bd8890
Merged revisions 84851 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84851 | hirokazu.yamamoto | 2010-09-17 02:50:57 +0900 | 3 lines
Issue #9810 : Compile bzip2 source files in python's project file
directly. It used to be built with bzip2's makefile.
........
2010-09-18 22:53:25 +00:00
Antoine Pitrou
f61045fd15
Merged revisions 84878 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84878 | antoine.pitrou | 2010-09-18 19:56:02 +0200 (sam., 18 sept. 2010) | 5 lines
Issue #9894 : Do not hardcode ENOENT in test_subprocess.
(GNU/Hurd is not dead)
........
2010-09-18 18:16:39 +00:00
Antoine Pitrou
679e0f2328
Issue #9894 : Do not hardcode ENOENT in test_subprocess.
...
(GNU/Hurd is not dead)
2010-09-18 17:56:02 +00:00
Victor Stinner
e797c16f84
Issue #767645 : Set os.path.supports_unicode_filenames to True in posixpath
...
Previous commit changed macpath but macpath is not used anymore as os.path
2010-09-17 23:34:26 +00:00
Amaury Forgeot d'Arc
d61d077bf5
#1730136 : Fix comparison between a tk Font object and an object of a different type.
2010-09-17 23:27:09 +00:00
Vinay Sajip
19ec67acf6
Issue #9441 : logging: Improved test coverage for rotating file handlers.
2010-09-17 18:57:36 +00:00
Raymond Hettinger
35c87f2b8e
Issue 9865: add __sizeof__ to OrderedDict.
2010-09-16 19:10:17 +00:00
Hirokazu Yamamoto
234f88dc73
Issue #9810 : Compile bzip2 source files in python's project file
...
directly. It used to be built with bzip2's makefile.
2010-09-16 17:50:57 +00:00
Brett Cannon
b82489dd7f
setup.py was trying to build _weakref which is redundant as it's a built-in
...
module.
Closes issue #9848 . Thanks to Arfrever Frehtes Taifersar Arahesis for the bug
report.
2010-09-14 19:41:23 +00:00
Antoine Pitrou
e5e75c64f2
Merged revisions 84814 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84814 | antoine.pitrou | 2010-09-14 20:37:24 +0200 (mar., 14 sept. 2010) | 4 lines
Issue #9854 : The default read() implementation in io.RawIOBase now
handles non-blocking readinto() returning None correctly.
........
2010-09-14 18:53:07 +00:00
Antoine Pitrou
328ec7455f
Issue #9854 : The default read() implementation in io.RawIOBase now
...
handles non-blocking readinto() returning None correctly.
2010-09-14 18:37:24 +00:00
Antoine Pitrou
9e0b864ac0
Issue #1552 : socket.socketpair() now returns regular socket.socket
...
objects supporting the whole socket API (rather than the "raw"
_socket.socket objects).
2010-09-14 18:00:02 +00:00
Antoine Pitrou
5974cdd5f5
Merged revisions 84807 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84807 | antoine.pitrou | 2010-09-14 16:43:44 +0200 (mar., 14 sept. 2010) | 4 lines
Issue #9853 : Fix the signature of SSLSocket.recvfrom() and
SSLSocket.sendto() to match the corresponding socket methods.
........
2010-09-14 14:47:08 +00:00
Antoine Pitrou
a468adc76d
Issue #9853 : Fix the signature of SSLSocket.recvfrom() and
...
SSLSocket.sendto() to match the corresponding socket methods.
2010-09-14 14:43:44 +00:00
Raymond Hettinger
98a5f3f838
Issue 9840: Add reprlib.recursive_repr(), a decorator for handling recursive calls to __repr__ methods.
2010-09-13 21:36:00 +00:00
Daniel Stutzbach
9f0cbf1c72
Issue #9213 : Add index and count methods to range objects, needed to
...
meet the API of the collections.Sequence ABC.
2010-09-13 21:16:29 +00:00
Eric Smith
e4d6317c87
Issue 7994: Make object.__format__() raise a PendingDeprecationWarning
...
if the format string is not empty. Manually merge r79596 and r84772
from 2.x.
Also, apparently test_format() from test_builtin never made it into
3.x. I've added it as well. It tests the basic format()
infrastructure.
2010-09-13 20:48:43 +00:00
Vinay Sajip
af9d10aa30
logging: enhanced HTTPHandler
2010-09-13 20:40:30 +00:00
Victor Stinner
ccb706cf0a
Issue #767645 : Set os.path.supports_unicode_filenames to True on Mac OS X
...
(macpath module).
2010-09-13 19:41:36 +00:00
Alexander Belopolsky
9665637d44
Merged revisions 84780-84781 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
with some manual fixes
........
r84780 | alexander.belopolsky | 2010-09-13 14:14:34 -0400 (Mon, 13 Sep 2010) | 3 lines
Issue #9315 : Fix for the trace module to record correct class name
when tracing methods. Unit tests. Patch by Eli Bendersky.
........
r84781 | alexander.belopolsky | 2010-09-13 14:15:33 -0400 (Mon, 13 Sep 2010) | 1 line
Removed debugging setting
........
2010-09-13 18:38:54 +00:00
Alexander Belopolsky
4d7701729c
Issue #9315 : Fix for the trace module to record correct class name
...
when tracing methods. Unit tests. Patch by Eli Bendersky.
2010-09-13 18:14:34 +00:00
Florent Xicluna
dc69e7217a
Make test.regrtest.__file__ absolute, this was not always the case when running profile or trace, for example. (issue #9323 )
2010-09-13 16:35:02 +00:00
Antoine Pitrou
1df1536fb9
Issue #9828 : Destroy the GIL in Py_Finalize(), so that it gets properly
...
re-created on a subsequent call to Py_Initialize(). The problem (a crash)
wouldn't appear in 3.1 or 2.7 where the GIL's structure is more trivial.
2010-09-13 14:16:46 +00:00
Amaury Forgeot d'Arc
feb7307db4
#9210 : remove --with-wctype-functions configure option.
...
The internal unicode database is now always used.
(after 5 years: see
http://mail.python.org/pipermail/python-dev/2004-December/050193.html
)
2010-09-12 22:42:57 +00:00
Georg Brandl
b084b48cec
9806: add --extension-suffix option to python-config.
2010-09-12 17:14:26 +00:00
Matthias Klose
167c3bc3c1
Merged revisions 84743 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84743 | matthias.klose | 2010-09-12 18:31:58 +0200 (So, 12 Sep 2010) | 3 lines
- Issue #9817 : Add expat COPYING file; add expat, libffi and expat licenses
to Doc/license.rst.
........
2010-09-12 16:50:20 +00:00
Matthias Klose
62d52fd966
- Issue #9817 : Add expat COPYING file; add expat, libffi and expat licenses
...
to Doc/license.rst.
2010-09-12 16:31:58 +00:00
Antoine Pitrou
6464d5ffdc
Issue #9837 : The read() method of ZipExtFile objects (as returned by
...
ZipFile.open()) could return more bytes than requested.
2010-09-12 14:51:20 +00:00
Raymond Hettinger
69976a7fbe
Issue #9826 : Handle recursive repr in collections.OrderedDict.
2010-09-12 05:28:42 +00:00
Raymond Hettinger
dc08a143e0
Issue #9826 : Handle recursive repr in collections.OrderedDict.
2010-09-12 05:15:22 +00:00
Raymond Hettinger
fa11db0a02
Issue #9825 : Replace OrderedDict.__del__() with weakrefs.
2010-09-12 04:12:42 +00:00
Benjamin Peterson
8042f4af29
Merged revisions 84714 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84714 | benjamin.peterson | 2010-09-11 11:02:03 -0500 (Sat, 11 Sep 2010) | 1 line
check for NULL tp_as_mapping in PySequence_(Get/Set/Del)Slice #9834
........
2010-09-11 16:03:33 +00:00
Benjamin Peterson
568867a6f2
check for NULL tp_as_mapping in PySequence_(Get/Set/Del)Slice #9834
2010-09-11 16:02:03 +00:00
Victor Stinner
1205f2774e
Issue #9738 : PyUnicode_FromFormat() and PyErr_Format() raise an error on
...
a non-ASCII byte in the format string.
Document also the encoding.
2010-09-11 00:54:47 +00:00
Victor Stinner
6f7b783cde
Issue #9579 , #9580 : Oops, add the author of the patch
2010-09-10 23:50:31 +00:00
Victor Stinner
cb04352e8c
Issue #9579 , #9580 : Fix os.confstr() for value longer than 255 bytes and encode
...
the value with filesystem encoding and surrogateescape (instead of utf-8 in
strict mode).
2010-09-10 23:49:04 +00:00
Victor Stinner
5b519e0201
Issue #9632 : Remove sys.setfilesystemencoding() function: use PYTHONFSENCODING
...
environment variable to set the filesystem encoding at Python startup.
sys.setfilesystemencoding() creates inconsistencies because it is unable to
reencode all filenames in all objects.
2010-09-10 21:57:59 +00:00
Amaury Forgeot d'Arc
ba117ef7e9
#4617 : Previously it was illegal to delete a name from the local
...
namespace if it occurs as a free variable in a nested block. This limitation
of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF).
This sample was valid in 2.6, but fails to compile in 3.x without this change::
>>> def f():
... def print_error():
... print(e)
... try:
... something
... except Exception as e:
... print_error()
... # implicit "del e" here
This sample has always been invalid in Python, and now works::
>>> def outer(x):
... def inner():
... return x
... inner()
... del x
There is no need to bump the PYC magic number: the new opcode is used
for code that did not compile before.
2010-09-10 21:39:53 +00:00
Antoine Pitrou
80f45a0998
Merged revisions 84680 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84680 | antoine.pitrou | 2010-09-10 21:44:44 +0200 (ven., 10 sept. 2010) | 4 lines
Issue #941346 : Improve the build process under AIX and allow Python to
be built as a shared library. Patch by Sébastien Sablé.
........
2010-09-10 19:55:19 +00:00
Antoine Pitrou
8e6b407d6f
Issue #941346 : Improve the build process under AIX and allow Python to
...
be built as a shared library. Patch by Sébastien Sablé.
2010-09-10 19:44:44 +00:00
Antoine Pitrou
c9a8df24cc
Merged revisions 84655 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84655 | antoine.pitrou | 2010-09-09 22:30:23 +0200 (jeu., 09 sept. 2010) | 6 lines
Issue #9804 : ascii() now always represents unicode surrogate pairs as
a single `\UXXXXXXXX`, regardless of whether the character is printable
or not. Also, the "backslashreplace" error handler now joins surrogate
pairs into a single character on UCS-2 builds.
........
2010-09-09 20:33:43 +00:00
Antoine Pitrou
e4a189274f
Issue #9804 : ascii() now always represents unicode surrogate pairs as
...
a single `\UXXXXXXXX`, regardless of whether the character is printable
or not. Also, the "backslashreplace" error handler now joins surrogate
pairs into a single character on UCS-2 builds.
2010-09-09 20:30:23 +00:00
Antoine Pitrou
ea99c5c949
Issue #9410 : Various optimizations to the pickle module, leading to
...
speedups up to 4x (depending on the benchmark). Mostly ported from
Unladen Swallow; initial patch by Alexandre Vassalotti.
2010-09-09 18:33:21 +00:00
Antoine Pitrou
6e6cc830c4
Issue #9757 : memoryview objects get a release() method to release the
...
underlying buffer (previously this was only done when deallocating the
memoryview), and gain support for the context management protocol.
2010-09-09 12:59:39 +00:00
Raymond Hettinger
bad3c88094
Have pprint() respect the order in an OrderedDict.
2010-09-09 12:31:00 +00:00
Antoine Pitrou
b41e128fe1
Issue #9188 : The gdb extension now handles correctly narrow (UCS2) as well
...
as wide (UCS4) unicode builds for both the host interpreter (embedded
inside gdb) and the interpreter under test.
2010-09-08 20:57:48 +00:00
Antoine Pitrou
3c6261a90b
Merged revisions 84623 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84623 | antoine.pitrou | 2010-09-08 14:37:10 +0200 (mer., 08 sept. 2010) | 4 lines
Issue #9797 : pystate.c wrongly assumed that zero couldn't be a valid
thread-local storage key.
........
2010-09-08 12:48:12 +00:00
Antoine Pitrou
079ce54efe
Issue #9797 : pystate.c wrongly assumed that zero couldn't be a valid
...
thread-local storage key.
2010-09-08 12:37:10 +00:00
Vinay Sajip
121a1c4e11
logging: Added QueueHandler.
2010-09-08 10:46:15 +00:00
Antoine Pitrou
783eea722b
Issue #9707 : Rewritten reference implementation of threading.local which
...
is friendlier towards reference cycles. This change is not normally
visible since an optimized C implementation (_thread._local) is used
instead.
2010-09-07 22:06:17 +00:00
Amaury Forgeot d'Arc
4b6fdf3852
#6394 : Add os.getppid() support for Windows.
2010-09-07 21:31:17 +00:00
Antoine Pitrou
4d7979be72
Merged revisions 84597-84599 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84597 | antoine.pitrou | 2010-09-07 22:42:19 +0200 (mar., 07 sept. 2010) | 5 lines
Issue #8574 : better implementation of test.support.transient_internet().
Original patch by Victor.
........
r84598 | antoine.pitrou | 2010-09-07 23:05:49 +0200 (mar., 07 sept. 2010) | 6 lines
Issue #9792 : In case of connection failure, socket.create_connection()
would swallow the exception and raise a new one, making it impossible
to fetch the original errno, or to filter timeout errors. Now the
original error is re-raised.
........
r84599 | antoine.pitrou | 2010-09-07 23:09:09 +0200 (mar., 07 sept. 2010) | 4 lines
Improve transient_internet() again to detect more network errors,
and use it in test_robotparser. Fixes #8574 .
........
2010-09-07 21:22:56 +00:00
Antoine Pitrou
4b92b5fad3
Issue #9792 : In case of connection failure, socket.create_connection()
...
would swallow the exception and raise a new one, making it impossible
to fetch the original errno, or to filter timeout errors. Now the
original error is re-raised.
2010-09-07 21:05:49 +00:00
Antoine Pitrou
334e0dde1d
Merged revisions 84589 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84589 | antoine.pitrou | 2010-09-07 18:30:09 +0200 (mar., 07 sept. 2010) | 5 lines
Issue #9758 : When fcntl.ioctl() was called with mutable_flag set to True,
and the passed buffer was exactly 1024 bytes long, the buffer wouldn't
be updated back after the system call. Original patch by Brian Brazil.
........
2010-09-07 16:32:28 +00:00
Antoine Pitrou
5e38aae91b
Issue #9758 : When fcntl.ioctl() was called with mutable_flag set to True,
...
and the passed buffer was exactly 1024 bytes long, the buffer wouldn't
be updated back after the system call. Original patch by Brian Brazil.
2010-09-07 16:30:09 +00:00
Antoine Pitrou
15db1443ae
Merged revisions 84584 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84584 | antoine.pitrou | 2010-09-07 16:52:42 +0200 (mar., 07 sept. 2010) | 4 lines
Issue #4026 : Make the fcntl extension build under AIX.
Patch by Sébastien Sablé.
........
2010-09-07 14:58:50 +00:00
Antoine Pitrou
a300007c6e
Issue #4026 : Make the fcntl extension build under AIX.
...
Patch by Sébastien Sablé.
2010-09-07 14:52:42 +00:00
Raymond Hettinger
0515661314
Issues #7889 , #9025 and #9379 : Improvements to the random module.
2010-09-07 04:44:52 +00:00
Raymond Hettinger
f763a728ad
Document which part of the random module module are guaranteed.
2010-09-07 00:38:15 +00:00
Raymond Hettinger
435cb0f233
Document which part of the random module module are guaranteed.
2010-09-06 23:36:31 +00:00
Raymond Hettinger
f45abc97bf
Add method to OrderedDict for repositioning keys to the ends.
2010-09-06 21:26:09 +00:00
Antoine Pitrou
4bc12ef47d
Issue #9754 : Similarly to assertRaises and assertRaisesRegexp, unittest
...
test cases now also have assertWarns and assertWarnsRegexp methods to
check that a given warning type was triggered by the code under test.
2010-09-06 19:25:46 +00:00
Antoine Pitrou
972ee13e03
Issue #5506 : BytesIO objects now have a getbuffer() method exporting a
...
view of their contents without duplicating them. The view is both readable
and writable.
2010-09-06 18:48:21 +00:00
Brian Curtin
6285774f06
Implement #7566 - os.path.sameopenfile for Windows.
...
This uses the GetFileInformationByHandle function to return a tuple of values
to identify a file, then ntpath.sameopenfile compares file tuples, which
is exposed as os.path.sameopenfile.
2010-09-06 17:07:27 +00:00
Gregory P. Smith
13b55291ac
hashlib has two new constant attributes: algorithms_guaranteed and
...
algorithms_avaiable that respectively list the names of hash algorithms
guaranteed to exist in all Python implementations and the names of hash
algorithms available in the current process.
Renames the attribute new in 3.2a0 'algorithms' to 'algorithms_guaranteed'.
2010-09-06 08:30:23 +00:00
Antoine Pitrou
0d739d7047
Issue #9293 : I/O streams now raise `io.UnsupportedOperation` when an
...
unsupported operation is attempted (for example, writing to a file open
only for reading).
2010-09-05 23:01:12 +00:00
R. David Murray
7e00ef0974
Merged revisions 80521 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r80521 | r.david.murray | 2010-04-26 22:45:53 -0400 (Mon, 26 Apr 2010) | 13 lines
Merged revisions 80512 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80512 | r.david.murray | 2010-04-26 17:17:14 -0400 (Mon, 26 Apr 2010) | 7 lines
Issue #6656 : fix locale.format_string to handle escaped percents and mappings.
Refactors format_string. Includes tests for the two problems noted in
the issue, but as far as I can see there are no other tests that confirm
that format_string conforms to normal % formatting rules.
........
................
2010-09-05 22:40:41 +00:00
Georg Brandl
bad092556e
Post-release update.
2010-09-05 21:29:17 +00:00
Georg Brandl
65ce6ada7f
Fix reST in NEWS, and remove NEWS.help (all committers should now know reST anyway, and for those who do not, there is Documenting Python.)
2010-09-05 17:32:31 +00:00
Georg Brandl
649971e63b
Rewrap.
2010-09-05 17:06:50 +00:00
Georg Brandl
58a7b46075
Bump to 3.2a2.
2010-09-05 08:30:40 +00:00
Raymond Hettinger
4c7c9af542
Clean-up functools.total_ordering().
2010-09-05 05:57:35 +00:00
Raymond Hettinger
46462f3fb3
Typo
2010-09-05 00:36:26 +00:00
Antoine Pitrou
0bb502dcac
Merged revisions 84506 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84506 | antoine.pitrou | 2010-09-04 22:53:29 +0200 (sam., 04 sept. 2010) | 5 lines
Issue #8734 : Avoid crash in msvcrt.get_osfhandle() when an invalid file
descriptor is provided. Patch by Pascal Chambon.
........
2010-09-04 21:02:41 +00:00
Antoine Pitrou
0049249d63
Issue #8734 : Avoid crash in msvcrt.get_osfhandle() when an invalid file
...
descriptor is provided. Patch by Pascal Chambon.
2010-09-04 20:53:29 +00:00
Antoine Pitrou
7d6e076f6d
Issue #7451 : Improve decoding performance of JSON objects, and reduce
...
the memory consumption of said decoded objects when they use the same
strings as keys.
2010-09-04 20:16:53 +00:00
Antoine Pitrou
74a69fa662
Issue #9225 : Remove the ROT_FOUR and DUP_TOPX opcode, the latter replaced
...
by the new (and simpler) DUP_TOP_TWO. Performance isn't changed, but
our bytecode is a bit simplified. Patch by Demur Rumed.
2010-09-04 18:43:52 +00:00
Brett Cannon
ef0e6c3b04
_warnings exposed two variables with the name 'default_action' and
...
'once_registry'. This is bad as the warnings module had variables named
'defaultaction' and 'onceregistry' which are what people should be looking at
(technically those variables shouldn't be mucked with as they are undocumented,
but we all know better than to believe that isn't happening). So the variables
from _warnings have been renamed to come off as private and to avoid confusion
over what variable should be used.
Closes issue #9766 . Thanks to Antoine Pitrou for the discovery.
2010-09-04 18:24:04 +00:00
Antoine Pitrou
ce111caaeb
Merged revisions 84495-84497 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84495 | antoine.pitrou | 2010-09-04 19:40:21 +0200 (sam., 04 sept. 2010) | 4 lines
Issue #1100562 : Fix deep-copying of objects derived from the list and dict types.
Patch by Michele Orrù and Björn Lindqvist.
........
r84496 | antoine.pitrou | 2010-09-04 19:40:51 +0200 (sam., 04 sept. 2010) | 3 lines
Fix Björn's name in ACKS.
........
r84497 | antoine.pitrou | 2010-09-04 19:46:44 +0200 (sam., 04 sept. 2010) | 3 lines
Fix running the copy module from the command-line (however use{ful,less} it may be).
........
2010-09-04 17:49:13 +00:00
Antoine Pitrou
3941a8fece
Issue #1100562 : Fix deep-copying of objects derived from the list and dict types.
...
Patch by Michele Orrù and Björn Lindqvist.
2010-09-04 17:40:21 +00:00
Antoine Pitrou
037077fe03
Merged revisions 84489 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84489 | antoine.pitrou | 2010-09-04 19:21:57 +0200 (sam., 04 sept. 2010) | 4 lines
Issue #7736 : Release the GIL around calls to opendir() and closedir()
in the posix module. Patch by Marcin Bachry.
........
2010-09-04 17:26:01 +00:00
Antoine Pitrou
d3ccde8a21
Issue #7736 : Release the GIL around calls to opendir() and closedir()
...
in the posix module. Patch by Marcin Bachry.
2010-09-04 17:21:57 +00:00
Martin v. Löwis
a5e3109154
Issue #1303434 : Include PDBs in release.
...
Patch by James Lee and Daniel Stutzbach.
2010-09-04 14:38:09 +00:00
Fred Drake
cc645b9a59
add consistent support for the vars and default arguments on all
...
configuration parser classes
(http://bugs.python.org/issue9421 )
2010-09-04 04:35:34 +00:00
Barry Warsaw
aa44b2b5ca
NEWS for PEP 3149, and clean up a few other entries.
2010-09-03 18:36:11 +00:00
Antoine Pitrou
f6efac6df2
Merged revisions 84452 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84452 | antoine.pitrou | 2010-09-03 18:12:14 +0200 (ven., 03 sept. 2010) | 3 lines
Fix NEWS entry.
........
2010-09-03 16:14:14 +00:00