]> granicus.if.org Git - python/log
python
11 years agoIssue #19219 Remove a lot of "retval = NULL" statements, now that retval
Kristján Valur Jónsson [Sun, 13 Oct 2013 13:41:59 +0000 (13:41 +0000)]
Issue #19219 Remove a lot of "retval = NULL" statements, now that retval
is pre-initialized to that value.  Test show a 5% speedup as a bonus.

11 years agoDocs tweaks for contextlib additions
Nick Coghlan [Sun, 13 Oct 2013 13:23:08 +0000 (23:23 +1000)]
Docs tweaks for contextlib additions

11 years agoRemove failing checks for explicit error messages.
Mark Dickinson [Sun, 13 Oct 2013 10:34:01 +0000 (11:34 +0100)]
Remove failing checks for explicit error messages.

11 years agoIssue #18659: fix test_format test that wasn't being executed. Thanks Vajrasky Kok...
Mark Dickinson [Sun, 13 Oct 2013 10:04:36 +0000 (11:04 +0100)]
Issue #18659: fix test_format test that wasn't being executed.  Thanks Vajrasky Kok for the patch.

11 years agomerge with 3.3
Georg Brandl [Sun, 13 Oct 2013 08:49:47 +0000 (10:49 +0200)]
merge with 3.3

11 years agoCloses #13740: SND_NOWAIT seems to be ignored on modern Windows.
Georg Brandl [Sun, 13 Oct 2013 08:49:41 +0000 (10:49 +0200)]
Closes #13740: SND_NOWAIT seems to be ignored on modern Windows.

11 years agomerge with 3.3
Georg Brandl [Sun, 13 Oct 2013 08:44:04 +0000 (10:44 +0200)]
merge with 3.3

11 years agoCloses #17375: port new threading docstrings from 2.7.
Georg Brandl [Sun, 13 Oct 2013 08:43:59 +0000 (10:43 +0200)]
Closes #17375: port new threading docstrings from 2.7.

11 years agomerge with 3.3
Georg Brandl [Sun, 13 Oct 2013 07:56:24 +0000 (09:56 +0200)]
merge with 3.3

11 years agoFix a small CSS glitch with deprecated blocks and Sphinx 1.2.
Georg Brandl [Sun, 13 Oct 2013 07:56:20 +0000 (09:56 +0200)]
Fix a small CSS glitch with deprecated blocks and Sphinx 1.2.

11 years agoBack out accidentally pushed changeset b51218966201.
Georg Brandl [Sun, 13 Oct 2013 07:32:59 +0000 (09:32 +0200)]
Back out accidentally pushed changeset b51218966201.

11 years agomerge with 3.3
Georg Brandl [Sun, 13 Oct 2013 07:32:00 +0000 (09:32 +0200)]
merge with 3.3

11 years agoFix display of deprecated blocks with Sphinx 1.2.
Georg Brandl [Sun, 13 Oct 2013 07:31:42 +0000 (09:31 +0200)]
Fix display of deprecated blocks with Sphinx 1.2.

11 years agoAdd re.fullmatch() function and regex.fullmatch() method, which anchor the
Georg Brandl [Sun, 13 Oct 2013 07:18:45 +0000 (09:18 +0200)]
Add re.fullmatch() function and regex.fullmatch() method, which anchor the
pattern at both ends of the string to match.

Patch by Matthew Barnett.
Closes #16203.

11 years agoGrammar fix.
Eric V. Smith [Sun, 13 Oct 2013 04:36:08 +0000 (00:36 -0400)]
Grammar fix.

11 years agoClose #18281: superfluous stat constants removed from tarfile
Ethan Furman [Sun, 13 Oct 2013 01:13:02 +0000 (18:13 -0700)]
Close #18281: superfluous stat constants removed from tarfile

11 years agoDocument speedup in whatsnew
Christian Heimes [Sun, 13 Oct 2013 01:10:06 +0000 (03:10 +0200)]
Document speedup in whatsnew

11 years agoIssue #19219: retval may be used uninitialized value
Christian Heimes [Sun, 13 Oct 2013 00:29:06 +0000 (02:29 +0200)]
Issue #19219: retval may be used uninitialized value
CID 486239: Uninitialized pointer read (UNINIT)

11 years agowhitespace cleanup
Christian Heimes [Sun, 13 Oct 2013 00:27:22 +0000 (02:27 +0200)]
whitespace cleanup

11 years agomerge
Christian Heimes [Sun, 13 Oct 2013 00:22:10 +0000 (02:22 +0200)]
merge

11 years agoIssue #19218: set __name__ of _collections_abc to collections.abc in order to fix...
Christian Heimes [Sun, 13 Oct 2013 00:21:33 +0000 (02:21 +0200)]
Issue #19218: set __name__ of _collections_abc to collections.abc in order to fix tests and keep beautiful qualified names.

11 years agoIssue #19218: Add facade collections.abc
Christian Heimes [Sun, 13 Oct 2013 00:04:50 +0000 (02:04 +0200)]
Issue #19218: Add facade collections.abc

11 years agoIssue #19218: Rename collections.abc to _collections_abc in order to speed up interpr...
Christian Heimes [Sun, 13 Oct 2013 00:04:20 +0000 (02:04 +0200)]
Issue #19218: Rename collections.abc to _collections_abc in order to speed up interpreter start

11 years agoRemove import functools from re module. The re module imports functools but never...
Christian Heimes [Sun, 13 Oct 2013 00:00:09 +0000 (02:00 +0200)]
Remove import functools from re module. The re module imports functools but never uses it.

11 years agoMerge.
Richard Oudkerk [Sat, 12 Oct 2013 23:52:21 +0000 (00:52 +0100)]
Merge.

11 years agoMake test_terminate() succeed or fail quickly.
Richard Oudkerk [Sat, 12 Oct 2013 23:49:27 +0000 (00:49 +0100)]
Make test_terminate() succeed or fail quickly.

This does not fix #19227, but should stop the Gentoo buildbot from hanging.

11 years agomerge
Raymond Hettinger [Sat, 12 Oct 2013 23:04:39 +0000 (16:04 -0700)]
merge

11 years agoIssue #19202: Add cross-reference and a rough code equivalent
Raymond Hettinger [Sat, 12 Oct 2013 23:04:17 +0000 (16:04 -0700)]
Issue #19202:  Add cross-reference and a rough code equivalent

11 years agoIssue #18458: merge comments from 3.3
Ned Deily [Sat, 12 Oct 2013 22:57:04 +0000 (15:57 -0700)]
Issue #18458: merge comments from 3.3

11 years agoIssue #18582: Add 'pbkdf2_hmac' to the hashlib module.
Christian Heimes [Sat, 12 Oct 2013 22:52:43 +0000 (00:52 +0200)]
Issue #18582: Add 'pbkdf2_hmac' to the hashlib module.

11 years agoIssue #18458: Prevent crashes with newer versions of libedit. Its readline
Ned Deily [Sat, 12 Oct 2013 22:47:58 +0000 (15:47 -0700)]
Issue #18458: Prevent crashes with newer versions of libedit.  Its readline
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.

11 years agoMerge
Antoine Pitrou [Sat, 12 Oct 2013 21:16:32 +0000 (23:16 +0200)]
Merge

11 years agoTry to fix weird assertion error on the Fedora buildbot.
Antoine Pitrou [Sat, 12 Oct 2013 21:14:47 +0000 (23:14 +0200)]
Try to fix weird assertion error on the Fedora buildbot.

11 years agomerge
Georg Brandl [Sat, 12 Oct 2013 20:57:30 +0000 (22:57 +0200)]
merge

11 years agomerge with 3.3
Georg Brandl [Sat, 12 Oct 2013 20:56:37 +0000 (22:56 +0200)]
merge with 3.3

11 years agoInvert logic of new limited-API annotation and call it "stable ABI".
Georg Brandl [Sat, 12 Oct 2013 20:55:34 +0000 (22:55 +0200)]
Invert logic of new limited-API annotation and call it "stable ABI".

11 years agoIssue #4555: All exported C symbols are now prefixed with either "Py" or "_Py".
Antoine Pitrou [Sat, 12 Oct 2013 20:52:43 +0000 (22:52 +0200)]
Issue #4555: All exported C symbols are now prefixed with either "Py" or "_Py".
("make smelly" now clean)

11 years agoDon't export internal symbols ("make smelly")
Antoine Pitrou [Sat, 12 Oct 2013 20:41:17 +0000 (22:41 +0200)]
Don't export internal symbols ("make smelly")

11 years agoForgot NEWS entry for previous commit.
Antoine Pitrou [Sat, 12 Oct 2013 20:26:28 +0000 (22:26 +0200)]
Forgot NEWS entry for previous commit.

11 years agoIssue #19219: Speed up marshal.loads(), and make pyc files slightly (5% to 10%) smaller.
Antoine Pitrou [Sat, 12 Oct 2013 20:25:39 +0000 (22:25 +0200)]
Issue #19219: Speed up marshal.loads(), and make pyc files slightly (5% to 10%) smaller.

11 years agomerge 3.3
Benjamin Peterson [Sat, 12 Oct 2013 19:55:33 +0000 (15:55 -0400)]
merge 3.3

11 years agobackport media types from default
Benjamin Peterson [Sat, 12 Oct 2013 19:54:05 +0000 (15:54 -0400)]
backport media types from default

11 years agoadd aifc
Benjamin Peterson [Sat, 12 Oct 2013 19:28:10 +0000 (15:28 -0400)]
add aifc

11 years agoadd some audio formats
Benjamin Peterson [Sat, 12 Oct 2013 19:24:15 +0000 (15:24 -0400)]
add some audio formats

11 years agomerge with 3.3
Georg Brandl [Sat, 12 Oct 2013 18:53:53 +0000 (20:53 +0200)]
merge with 3.3

11 years agoFix compatibility with upcoming Sphinx 1.2.
Georg Brandl [Sat, 12 Oct 2013 18:50:21 +0000 (20:50 +0200)]
Fix compatibility with upcoming Sphinx 1.2.

11 years agoNull merge
Serhiy Storchaka [Sat, 12 Oct 2013 18:38:14 +0000 (21:38 +0300)]
Null merge

11 years agoIssue #18919: If the close() method of a writer in the sunau or wave module
Serhiy Storchaka [Sat, 12 Oct 2013 18:36:10 +0000 (21:36 +0300)]
Issue #18919: If the close() method of a writer in the sunau or wave module
failed, second invocation of close() and destructor no more raise an
exception.

11 years agomerge with 3.3
Georg Brandl [Sat, 12 Oct 2013 18:01:14 +0000 (20:01 +0200)]
merge with 3.3

11 years agoIntroduce support for documenting which C API elements are not part of the stable...
Georg Brandl [Sat, 12 Oct 2013 17:54:30 +0000 (19:54 +0200)]
Introduce support for documenting which C API elements are not part of the stable/limited API.

11 years agomerge with 3.3
Georg Brandl [Sat, 12 Oct 2013 17:13:38 +0000 (19:13 +0200)]
merge with 3.3

11 years agoCloses #13915: update tutorial with respect to .pyc files (__pycache__ / PEP 3147).
Georg Brandl [Sat, 12 Oct 2013 17:13:23 +0000 (19:13 +0200)]
Closes #13915: update tutorial with respect to .pyc files (__pycache__ / PEP 3147).

Initial wording proposed by John Roth.

11 years agomerge with 3.3
Georg Brandl [Sat, 12 Oct 2013 17:03:47 +0000 (19:03 +0200)]
merge with 3.3

11 years agoCloses #13833: document PyStructSequence C-API functions.
Georg Brandl [Sat, 12 Oct 2013 17:03:43 +0000 (19:03 +0200)]
Closes #13833: document PyStructSequence C-API functions.

11 years agomerge with 3.3
Georg Brandl [Sat, 12 Oct 2013 16:41:23 +0000 (18:41 +0200)]
merge with 3.3

11 years agoCloses #13026: fix documentation of MAKE_FUNCTION for 3.x.
Georg Brandl [Sat, 12 Oct 2013 16:41:18 +0000 (18:41 +0200)]
Closes #13026: fix documentation of MAKE_FUNCTION for 3.x.

11 years agomerge with 3.3
Georg Brandl [Sat, 12 Oct 2013 16:19:48 +0000 (18:19 +0200)]
merge with 3.3

11 years agoCloses #19179: make table of XML vulnerabilities clearer by using "everyday" booleans...
Georg Brandl [Sat, 12 Oct 2013 16:19:33 +0000 (18:19 +0200)]
Closes #19179: make table of XML vulnerabilities clearer by using "everyday" booleans and explaining the table beforehand.

11 years agomerge with 3.3
Georg Brandl [Sat, 12 Oct 2013 16:15:21 +0000 (18:15 +0200)]
merge with 3.3

11 years agoCloses #13203: add a FAQ section about seemingly duplicate id()s.
Georg Brandl [Sat, 12 Oct 2013 16:14:25 +0000 (18:14 +0200)]
Closes #13203: add a FAQ section about seemingly duplicate id()s.

11 years agoIssue #19131: The aifc module now correctly reads and writes sampwidth of
Serhiy Storchaka [Sat, 12 Oct 2013 15:23:21 +0000 (18:23 +0300)]
Issue #19131: The aifc module now correctly reads and writes sampwidth of
compressed streams.

11 years agoIssue #19131: The aifc module now correctly reads and writes sampwidth of
Serhiy Storchaka [Sat, 12 Oct 2013 15:21:33 +0000 (18:21 +0300)]
Issue #19131: The aifc module now correctly reads and writes sampwidth of
compressed streams.

11 years ago#19221: update whatsnew entry about UCD version.
Ezio Melotti [Sat, 12 Oct 2013 13:36:13 +0000 (16:36 +0300)]
#19221: update whatsnew entry about UCD version.

11 years agoIssue #19205: _osx_support uses the re module all over the place. Omit the test for nw.
Christian Heimes [Sat, 12 Oct 2013 13:08:42 +0000 (15:08 +0200)]
Issue #19205: _osx_support uses the re module all over the place. Omit the test for nw.

11 years agoFix wrong exception in _bootlocale (apparently this error condition is never triggered)
Antoine Pitrou [Sat, 12 Oct 2013 13:00:44 +0000 (15:00 +0200)]
Fix wrong exception in _bootlocale (apparently this error condition is never triggered)

11 years agoClose #18754: Run Python child processes in isolated more in the test suite.
Victor Stinner [Sat, 12 Oct 2013 12:44:01 +0000 (14:44 +0200)]
Close #18754: Run Python child processes in isolated more in the test suite.

11 years agoMarkup fix.
Georg Brandl [Sat, 12 Oct 2013 11:24:55 +0000 (13:24 +0200)]
Markup fix.

11 years agoIssue #19205: add debugging output for failing test on Snow Leopard
Christian Heimes [Sat, 12 Oct 2013 10:32:21 +0000 (12:32 +0200)]
Issue #19205: add debugging output for failing test on Snow Leopard

11 years agomerge
Christian Heimes [Fri, 11 Oct 2013 23:41:49 +0000 (01:41 +0200)]
merge

11 years agoIssue #19209: fix structseq test
Christian Heimes [Fri, 11 Oct 2013 23:38:52 +0000 (01:38 +0200)]
Issue #19209: fix structseq test

11 years agotest_os: report tests as skipped when os.statvfs() fails with ENOSYS
Victor Stinner [Fri, 11 Oct 2013 23:33:54 +0000 (01:33 +0200)]
test_os: report tests as skipped when os.statvfs() fails with ENOSYS

11 years agoIssue #19209: Remove import of copyreg from the os module to speed up
Christian Heimes [Fri, 11 Oct 2013 23:27:08 +0000 (01:27 +0200)]
Issue #19209: Remove import of copyreg from the os module to speed up
interpreter startup. stat_result and statvfs_result are now hard-coded to
reside in the os module.
The patch is based on Victor Stinner's patch.

11 years agoAlso test that the locale module isn't loaded during normal startup
Christian Heimes [Fri, 11 Oct 2013 23:00:51 +0000 (01:00 +0200)]
Also test that the locale module isn't loaded during normal startup

11 years agoIssue #19205 fix 406529adf156
Christian Heimes [Fri, 11 Oct 2013 22:28:17 +0000 (00:28 +0200)]
Issue #19205 fix 406529adf156
I forgot to hit save.

11 years agoIssue #19205: Don't import the 're' module in site and sysconfig module to
Christian Heimes [Fri, 11 Oct 2013 22:24:55 +0000 (00:24 +0200)]
Issue #19205: Don't import the 're' module in site and sysconfig module to
to speed up interpreter start.

11 years agoIssue #9548: Add a minimal "_bootlocale" module that is imported by the _io module...
Antoine Pitrou [Fri, 11 Oct 2013 22:13:50 +0000 (00:13 +0200)]
Issue #9548: Add a minimal "_bootlocale" module that is imported by the _io module instead of the full locale module.

11 years agoFix expected checksum for new unicodedata (after full rebuild)
Antoine Pitrou [Fri, 11 Oct 2013 19:40:55 +0000 (21:40 +0200)]
Fix expected checksum for new unicodedata (after full rebuild)

11 years ago#19192: Give up on time.xmlrpc.com as an xmlrpc network test.
R David Murray [Fri, 11 Oct 2013 16:09:51 +0000 (12:09 -0400)]
#19192: Give up on time.xmlrpc.com as an xmlrpc network test.

time.xmlrpc.com has come and gone over the years, and has been gone again for
a while.  The test did test one thing that the current xmlrpc tests don't: the
use of multiple levels of attribute names in the call.  So in addition to
removing the network test, we add a test in xmlrpc of dotted name access.

There should also be a test for when dotted name access is disallowed, but
that requires more extensive test harness refactoring, and in any case was not
tested by the network test we are deleting, since it is a server-side setting.

This is a slightly simplified version of a patch by Vajrasky Kok.

11 years agoRename contextlib.ignored() to contextlib.ignore().
Raymond Hettinger [Fri, 11 Oct 2013 05:39:39 +0000 (22:39 -0700)]
Rename contextlib.ignored() to contextlib.ignore().

11 years agomerge 3.3
Benjamin Peterson [Fri, 11 Oct 2013 00:22:39 +0000 (20:22 -0400)]
merge 3.3

11 years agoreplace hardcoded version
Benjamin Peterson [Fri, 11 Oct 2013 00:22:10 +0000 (20:22 -0400)]
replace hardcoded version

11 years agomerge 3.3
Benjamin Peterson [Fri, 11 Oct 2013 00:17:29 +0000 (20:17 -0400)]
merge 3.3

11 years agomake sure the docstring is never out of date wrt unicode data version
Benjamin Peterson [Fri, 11 Oct 2013 00:16:25 +0000 (20:16 -0400)]
make sure the docstring is never out of date wrt unicode data version

11 years agomerge heads
Benjamin Peterson [Thu, 10 Oct 2013 21:40:48 +0000 (17:40 -0400)]
merge heads

11 years agomerge 3.3 (#19220)
Benjamin Peterson [Thu, 10 Oct 2013 21:40:30 +0000 (17:40 -0400)]
merge 3.3 (#19220)

11 years agoremove url from docstring (closes #19220)
Benjamin Peterson [Thu, 10 Oct 2013 21:39:56 +0000 (17:39 -0400)]
remove url from docstring (closes #19220)

11 years ago#18764: p(rint) -> p in pdb docs.
R David Murray [Thu, 10 Oct 2013 21:33:43 +0000 (17:33 -0400)]
#18764: p(rint) -> p in pdb docs.

Missed changing the doc for the command itself, patch for that also by Connor
Osborn.

11 years agoupgrade unicode db to 6.3.0 (closes #19221)
Benjamin Peterson [Thu, 10 Oct 2013 21:24:45 +0000 (17:24 -0400)]
upgrade unicode db to 6.3.0 (closes #19221)

11 years ago18764: remove the problematic 'print' alias for the PDB 'p' command.
R David Murray [Thu, 10 Oct 2013 21:23:26 +0000 (17:23 -0400)]
18764: remove the problematic 'print' alias for the PDB 'p' command.

So that it no longer shadows the print function.

Patch by Connor Osborn, doc and test changes by R. David Murray.

11 years agoClose #16742: Fix misuse of memory allocations in PyOS_Readline()
Victor Stinner [Thu, 10 Oct 2013 14:18:20 +0000 (16:18 +0200)]
Close #16742: Fix misuse of memory allocations in PyOS_Readline()

The GIL must be held to call PyMem_Malloc(), whereas PyOS_Readline() releases
the GIL to read input.

The result of the C callback PyOS_ReadlineFunctionPointer must now be a string
allocated by PyMem_RawMalloc() or PyMem_RawRealloc() (or NULL if an error
occurred), instead of a string allocated by PyMem_Malloc() or PyMem_Realloc().

Fixing this issue was required to setup a hook on PyMem_Malloc(), for example
using the tracemalloc module.

PyOS_Readline() copies the result of PyOS_ReadlineFunctionPointer() into a new
buffer allocated by PyMem_Malloc(). So the public API of PyOS_Readline() does
not change.

11 years agoIssue #18874: _PyObject_Malloc/Realloc/Free() now falls back on
Victor Stinner [Thu, 10 Oct 2013 13:58:42 +0000 (15:58 +0200)]
Issue #18874: _PyObject_Malloc/Realloc/Free() now falls back on
_PyMem_RawMalloc/Realloc/Free, instead of _PyMem_Malloc/Realloc/Free.  So it
becomes possible to use the fast pymalloc allocator for the PYMEM_DOMAIN_MEM
domain (PyMem_Malloc/Realloc/Free functions).

11 years agoIssue #18874: PyCode_New() now ensures that the filename is a ready Unicode
Victor Stinner [Thu, 10 Oct 2013 13:55:14 +0000 (15:55 +0200)]
Issue #18874: PyCode_New() now ensures that the filename is a ready Unicode
string. This change does nothing is most cases, but it is useful on Windows in
some cases.

11 years agoIssue #15805: Add contextlib.redirect_stdout()
Raymond Hettinger [Thu, 10 Oct 2013 07:46:57 +0000 (00:46 -0700)]
Issue #15805: Add contextlib.redirect_stdout()

11 years agomerge
Raymond Hettinger [Thu, 10 Oct 2013 05:43:30 +0000 (22:43 -0700)]
merge

11 years agoIssue #19005: Fix documentation for PyIter_Next().
Raymond Hettinger [Thu, 10 Oct 2013 05:42:46 +0000 (22:42 -0700)]
Issue #19005:  Fix documentation for PyIter_Next().

11 years agoRepair format of NEWS entry.
Tim Peters [Wed, 9 Oct 2013 18:29:42 +0000 (13:29 -0500)]
Repair format of NEWS entry.

11 years agoRepair format of NEWS entry.
Tim Peters [Wed, 9 Oct 2013 18:27:36 +0000 (13:27 -0500)]
Repair format of NEWS entry.

11 years agoIssue 19158: a rare race in BoundedSemaphore could allow .release() too often.
Tim Peters [Wed, 9 Oct 2013 18:21:46 +0000 (13:21 -0500)]
Issue 19158:  a rare race in BoundedSemaphore could allow .release() too often.

11 years agoIssue 19158: a rare race in BoundedSemaphore could allow .release() too often.
Tim Peters [Wed, 9 Oct 2013 18:19:21 +0000 (13:19 -0500)]
Issue 19158:  a rare race in BoundedSemaphore could allow .release() too often.

11 years agoCloses #19200: small grammar fix in multiprocessing docs. Thanks to Elazar Gershuni.
Georg Brandl [Wed, 9 Oct 2013 13:51:57 +0000 (15:51 +0200)]
Closes #19200: small grammar fix in multiprocessing docs. Thanks to Elazar Gershuni.