]> granicus.if.org Git - python/log
python
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.

11 years agoClose #19199: Remove ``PyThreadState.tick_counter`` field
Victor Stinner [Wed, 9 Oct 2013 12:53:01 +0000 (14:53 +0200)]
Close #19199: Remove ``PyThreadState.tick_counter`` field

11 years ago#19194: Improved cross-references in the fcntl module documentation.
Serhiy Storchaka [Wed, 9 Oct 2013 11:20:37 +0000 (14:20 +0300)]
#19194: Improved cross-references in the fcntl module documentation.

11 years ago#19194: Improved cross-references in the fcntl module documentation.
Serhiy Storchaka [Wed, 9 Oct 2013 11:20:22 +0000 (14:20 +0300)]
#19194: Improved cross-references in the fcntl module documentation.

11 years ago#19196: Improved cross-references in distutils documentation.
Serhiy Storchaka [Wed, 9 Oct 2013 11:09:35 +0000 (14:09 +0300)]
#19196: Improved cross-references in distutils documentation.

11 years ago#19196: Improved cross-references in distutils documentation.
Serhiy Storchaka [Wed, 9 Oct 2013 11:09:16 +0000 (14:09 +0300)]
#19196: Improved cross-references in distutils documentation.

11 years agoIssue #19190: Improve cross-references in builtin types and functions documentation.
Serhiy Storchaka [Wed, 9 Oct 2013 11:03:24 +0000 (14:03 +0300)]
Issue #19190: Improve cross-references in builtin types and functions documentation.

11 years agoIssue #19190: Improve cross-references in builtin types and functions documentation.
Serhiy Storchaka [Wed, 9 Oct 2013 11:02:31 +0000 (14:02 +0300)]
Issue #19190: Improve cross-references in builtin types and functions documentation.

11 years agoIssue 19195: Improved cross-references in C API documentation.
Serhiy Storchaka [Wed, 9 Oct 2013 10:26:57 +0000 (13:26 +0300)]
Issue 19195: Improved cross-references in C API documentation.

11 years agoIssue 19195: Improved cross-references in C API documentation.
Serhiy Storchaka [Wed, 9 Oct 2013 10:26:17 +0000 (13:26 +0300)]
Issue 19195: Improved cross-references in C API documentation.

11 years agoIssue #19193: Improved cross-references in the tutorial.
Serhiy Storchaka [Wed, 9 Oct 2013 06:55:21 +0000 (09:55 +0300)]
Issue #19193: Improved cross-references in the tutorial.

11 years agoIssue #19193: Improved cross-references in the tutorial.
Serhiy Storchaka [Wed, 9 Oct 2013 06:54:46 +0000 (09:54 +0300)]
Issue #19193: Improved cross-references in the tutorial.

11 years agoWhitespace normalization.
Tim Peters [Wed, 9 Oct 2013 02:29:27 +0000 (21:29 -0500)]
Whitespace normalization.

11 years agoIssue 19158: a rare race in BoundedSemaphore could allow .release() too often.
Tim Peters [Wed, 9 Oct 2013 02:12:58 +0000 (21:12 -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 01:55:51 +0000 (20:55 -0500)]
Issue 19158:  a rare race in BoundedSemaphore could allow .release() too often.

11 years agoIssue #18948: improve SuppressCoreFiles to include Windows crash popup suppression...
Antoine Pitrou [Tue, 8 Oct 2013 21:04:32 +0000 (23:04 +0200)]
Issue #18948: improve SuppressCoreFiles to include Windows crash popup suppression, and use it in more tests.
Patch by Valerie Lambert and Zachary Ware.

11 years agomerge with 3.3
Georg Brandl [Tue, 8 Oct 2013 19:54:47 +0000 (21:54 +0200)]
merge with 3.3

11 years agoMinor grammar fix.
Georg Brandl [Tue, 8 Oct 2013 19:54:37 +0000 (21:54 +0200)]
Minor grammar fix.

11 years agomerge with 3.3
Georg Brandl [Tue, 8 Oct 2013 19:47:35 +0000 (21:47 +0200)]
merge with 3.3

11 years agoClarify two points about division and shifting. Suggested by Albert Hofkamp on docs@.
Georg Brandl [Tue, 8 Oct 2013 19:47:18 +0000 (21:47 +0200)]
Clarify two points about division and shifting. Suggested by Albert Hofkamp on docs@.

11 years agomerge with 3.3
Georg Brandl [Tue, 8 Oct 2013 19:43:46 +0000 (21:43 +0200)]
merge with 3.3

11 years agoFix wrong link.
Georg Brandl [Tue, 8 Oct 2013 19:43:39 +0000 (21:43 +0200)]
Fix wrong link.

11 years agomerge with 3.3
Georg Brandl [Tue, 8 Oct 2013 19:28:42 +0000 (21:28 +0200)]
merge with 3.3

11 years agoAdd "->" as a delimiter token. Found by James Harding on docs@.
Georg Brandl [Tue, 8 Oct 2013 19:28:22 +0000 (21:28 +0200)]
Add "->" as a delimiter token.  Found by James Harding on docs@.

11 years agomerge with 3.3
Georg Brandl [Tue, 8 Oct 2013 18:32:52 +0000 (20:32 +0200)]
merge with 3.3

11 years agomerge heads
Georg Brandl [Tue, 8 Oct 2013 18:29:47 +0000 (20:29 +0200)]
merge heads

11 years agomerge heads
Georg Brandl [Tue, 8 Oct 2013 18:27:35 +0000 (20:27 +0200)]
merge heads

11 years agoIssue #18037: Do not escape '\u' and '\U' in raw strings.
Serhiy Storchaka [Tue, 8 Oct 2013 18:08:48 +0000 (21:08 +0300)]
Issue #18037: Do not escape '\u' and '\U' in raw strings.

11 years agoIssue #18037: Do not escape '\u' and '\U' in raw strings.
Serhiy Storchaka [Tue, 8 Oct 2013 18:07:46 +0000 (21:07 +0300)]
Issue #18037: Do not escape '\u' and '\U' in raw strings.

11 years agoCloses #13867: remove untrue comment about PyWeakref_Check().
Georg Brandl [Tue, 8 Oct 2013 17:50:26 +0000 (19:50 +0200)]
Closes #13867: remove untrue comment about PyWeakref_Check().

11 years agoCloses #13867: remove untrue comment about PyWeakref_Check().
Georg Brandl [Tue, 8 Oct 2013 17:50:26 +0000 (19:50 +0200)]
Closes #13867: remove untrue comment about PyWeakref_Check().

11 years agomerge with 3.3
Georg Brandl [Tue, 8 Oct 2013 06:06:27 +0000 (08:06 +0200)]
merge with 3.3

11 years agoCloses #19178: some more cross-references about packages in glossary. Patch by Berker...
Georg Brandl [Tue, 8 Oct 2013 06:06:18 +0000 (08:06 +0200)]
Closes #19178: some more cross-references about packages in glossary. Patch by Berker Peksag.

11 years agoFix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one...
Antoine Pitrou [Mon, 7 Oct 2013 18:40:59 +0000 (20:40 +0200)]
Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one place so as to avoid regressions.

11 years agoFix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one...
Antoine Pitrou [Mon, 7 Oct 2013 18:38:51 +0000 (20:38 +0200)]
Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at least one place so as to avoid regressions.

11 years agoClose #19156: add tests and fix for Enum helper edge cases. Patch from CliffM.
Ethan Furman [Mon, 7 Oct 2013 00:19:54 +0000 (17:19 -0700)]
Close #19156: add tests and fix for Enum helper edge cases.  Patch from CliffM.

11 years agotest_import.test_module_with_large_stack(): unload the test module
Victor Stinner [Sun, 6 Oct 2013 20:52:37 +0000 (22:52 +0200)]
test_import.test_module_with_large_stack(): unload the test module

Ensure that the module is unloaded to be able to run the test more than once,
and to not leak memory.

11 years agomerge with 3.3
Georg Brandl [Sun, 6 Oct 2013 19:23:26 +0000 (21:23 +0200)]
merge with 3.3

11 years agoCloses #1215: document better why it is not a good idea to catch e.g. SIGSEGV and...
Georg Brandl [Sun, 6 Oct 2013 19:22:42 +0000 (21:22 +0200)]
Closes #1215: document better why it is not a good idea to catch e.g. SIGSEGV and refer to faulthandler.

Patch by Martin Pool.

11 years agomerge with 3.3
Georg Brandl [Sun, 6 Oct 2013 18:46:15 +0000 (20:46 +0200)]
merge with 3.3

11 years agoExtending example: use Py_RETURN_NONE
Georg Brandl [Sun, 6 Oct 2013 18:46:08 +0000 (20:46 +0200)]
Extending example: use Py_RETURN_NONE

11 years agoIssue #19182: Fixed socket leak on exception when connecting.
Vinay Sajip [Sun, 6 Oct 2013 17:36:00 +0000 (18:36 +0100)]
Issue #19182: Fixed socket leak on exception when connecting.

11 years agomerge with 3.3
Georg Brandl [Sun, 6 Oct 2013 17:34:19 +0000 (19:34 +0200)]
merge with 3.3

11 years agoUse the platform-independent way of calling a script from the shell: "python prog...
Georg Brandl [Sun, 6 Oct 2013 17:33:56 +0000 (19:33 +0200)]
Use the platform-independent way of calling a script from the shell: "python prog.py", not "prog.py"

Found by Micheal Wells on docs@.