]> granicus.if.org Git - python/log
python
11 years agoFix broken docstring continuation line for detach().
Guido van Rossum [Wed, 4 Dec 2013 19:50:09 +0000 (11:50 -0800)]
Fix broken docstring continuation line for detach().

11 years agoIssue #19509: Don't close the socket in do_handshake() when hostname verification...
Christian Heimes [Wed, 4 Dec 2013 19:46:20 +0000 (20:46 +0100)]
Issue #19509: Don't close the socket in do_handshake() when hostname verification fails.

11 years agoasyncio doc: add some notes on the ping example
Victor Stinner [Wed, 4 Dec 2013 10:16:17 +0000 (11:16 +0100)]
asyncio doc: add some notes on the ping example

11 years agosilence unused-value warnings in libffi's dlmalloc.c
Christian Heimes [Wed, 4 Dec 2013 08:43:21 +0000 (09:43 +0100)]
silence unused-value warnings in libffi's dlmalloc.c

11 years agoSilence more PyObject_INIT() unused value warnings.
Christian Heimes [Wed, 4 Dec 2013 08:34:29 +0000 (09:34 +0100)]
Silence more PyObject_INIT() unused value warnings.

11 years agomake char* const
Christian Heimes [Wed, 4 Dec 2013 08:31:47 +0000 (09:31 +0100)]
make char* const
readline() takes a const char* and the other readline_until_enter_or_signal() implementation
already has const char*.

11 years agoSilence expression result unused warnings with clang.
Christian Heimes [Wed, 4 Dec 2013 08:27:47 +0000 (09:27 +0100)]
Silence expression result unused warnings with clang.
The PyObject_INIT() macros returns obj:

../cpython/Objects/methodobject.c:32:23: warning: expression result unused [-Wunused-value]
        PyObject_INIT(op, &PyCFunction_Type);
                      ^~
../cpython/Include/objimpl.h:139:69: note: expanded from macro 'PyObject_INIT'
    ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
                                                                    ^
1 warning generated.

11 years agoncurses' winch and mvwinch return an unsigned long
Christian Heimes [Wed, 4 Dec 2013 07:50:32 +0000 (08:50 +0100)]
ncurses' winch and mvwinch return an unsigned long

11 years agoncurses' winch and mvwinch return an unsigned long
Christian Heimes [Wed, 4 Dec 2013 07:50:22 +0000 (08:50 +0100)]
ncurses' winch and mvwinch return an unsigned long

11 years agoupcast int to size_t to silence two autological-constant-out-of-range-compare warning...
Christian Heimes [Wed, 4 Dec 2013 07:42:46 +0000 (08:42 +0100)]
upcast int to size_t to silence two autological-constant-out-of-range-compare warnings with clang.

11 years agoNull merge from 3.3 branch.
Tim Peters [Wed, 4 Dec 2013 03:33:31 +0000 (21:33 -0600)]
Null merge from 3.3 branch.

11 years agoIssue #19138: doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.
Tim Peters [Wed, 4 Dec 2013 03:02:05 +0000 (21:02 -0600)]
Issue #19138: doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.
(grafted from c80083ad142db2939507800c755082293a87f2de)

11 years agoIssue #19138: doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.
Tim Peters [Wed, 4 Dec 2013 03:02:05 +0000 (21:02 -0600)]
Issue #19138: doctest's IGNORE_EXCEPTION_DETAIL now allows no detail at all.

11 years agoClose #19741: tracemalloc_realloc() does not release the table lock anymore
Victor Stinner [Wed, 4 Dec 2013 00:47:46 +0000 (01:47 +0100)]
Close #19741: tracemalloc_realloc() does not release the table lock anymore
between tracemalloc_remove_trace() and tracemalloc_add_trace() to reduce the
risk of race condition.

tracemalloc_add_trace() cannot fail anymore in tracemalloc_realloc() when
tracemalloc_realloc() resizes a memory block.

11 years agoClose #19757: Cleanup tracemalloc, move
Victor Stinner [Wed, 4 Dec 2013 00:29:35 +0000 (01:29 +0100)]
Close #19757: Cleanup tracemalloc, move
PyGILState_Ensure()/PyGILState_Release() calls to the raw wrappers to simplify
the code.

Rename also tracemalloc_log_alloc/log_free() to
tracemalloc_add_trace/remove_trace().

11 years agoClose #19827: On UNIX, setblocking() and settimeout() methods of socket.socket
Victor Stinner [Tue, 3 Dec 2013 23:41:24 +0000 (00:41 +0100)]
Close #19827: On UNIX, setblocking() and settimeout() methods of socket.socket
can now avoid a second syscall if the ioctl() function can be used, or if the
non-blocking flag of the socket is unchanged.

11 years agoasyncio doc: oh, asyncio module has its own Future class
Victor Stinner [Tue, 3 Dec 2013 18:17:25 +0000 (19:17 +0100)]
asyncio doc: oh, asyncio module has its own Future class

Improve also wait() documentation: mention that the first parameter is a
sequence

11 years agoFix typo in asyncio.AbstractServer documentation
Victor Stinner [Tue, 3 Dec 2013 17:23:52 +0000 (18:23 +0100)]
Fix typo in asyncio.AbstractServer documentation

11 years agoasyncio doc: add one more example of coroutines
Victor Stinner [Tue, 3 Dec 2013 16:37:31 +0000 (17:37 +0100)]
asyncio doc: add one more example of coroutines

11 years agoIssue #19877: fix regression in test_pathlib when Windows has symlink support availab...
Antoine Pitrou [Tue, 3 Dec 2013 16:13:13 +0000 (17:13 +0100)]
Issue #19877: fix regression in test_pathlib when Windows has symlink support available (i.e. in administrator mode).
Patch by Vajrasky Kok.

11 years agoayncio: replace the disclamer with a seealso section
Victor Stinner [Tue, 3 Dec 2013 14:04:36 +0000 (15:04 +0100)]
ayncio: replace the disclamer with a seealso section

11 years agoasyncio doc: simplify ping example, remove the useless timeout
Victor Stinner [Tue, 3 Dec 2013 14:04:18 +0000 (15:04 +0100)]
asyncio doc: simplify ping example, remove the useless timeout

11 years agoNull merge.
Stefan Krah [Tue, 3 Dec 2013 13:38:56 +0000 (14:38 +0100)]
Null merge.

11 years agoMake a couple of parameters constant.
Stefan Krah [Tue, 3 Dec 2013 13:33:46 +0000 (14:33 +0100)]
Make a couple of parameters constant.

11 years agoMake a couple of parameters constant.
Stefan Krah [Tue, 3 Dec 2013 13:33:46 +0000 (14:33 +0100)]
Make a couple of parameters constant.

11 years agoIssue #9709: Stop adding PyInit_" + module_name' to export_symbols. This is
Stefan Krah [Tue, 3 Dec 2013 12:55:20 +0000 (13:55 +0100)]
Issue #9709: Stop adding PyInit_" + module_name' to export_symbols.  This is
already done by PyMODINIT_FUNC.

11 years agoAdded some diagnostics to help with #19690.
Vinay Sajip [Tue, 3 Dec 2013 12:31:23 +0000 (12:31 +0000)]
Added some diagnostics to help with #19690.

11 years agoCloses #19665: Merged fi from 3.3.
Vinay Sajip [Tue, 3 Dec 2013 11:29:45 +0000 (11:29 +0000)]
Closes #19665: Merged fi from 3.3.

11 years agoIssue #19665: Increased timeout for SMTPHandler test.
Vinay Sajip [Tue, 3 Dec 2013 11:28:55 +0000 (11:28 +0000)]
Issue #19665: Increased timeout for SMTPHandler test.

11 years agoAdd a test for complex symlinks.
Antoine Pitrou [Tue, 3 Dec 2013 10:01:08 +0000 (11:01 +0100)]
Add a test for complex symlinks.

11 years agoIssue #19800: make the pickle framing tests more precise.
Antoine Pitrou [Tue, 3 Dec 2013 08:51:40 +0000 (09:51 +0100)]
Issue #19800: make the pickle framing tests more precise.

11 years agoIssue #19872: remove unused imports in pathlib. Patch by Vajrasky Kok.
Antoine Pitrou [Tue, 3 Dec 2013 08:41:35 +0000 (09:41 +0100)]
Issue #19872: remove unused imports in pathlib.  Patch by Vajrasky Kok.

11 years agoasyncio: Improve default writelines().
Guido van Rossum [Tue, 3 Dec 2013 02:36:30 +0000 (18:36 -0800)]
asyncio: Improve default writelines().

11 years agoasyncio doc: fix definition of stop() method
Victor Stinner [Tue, 3 Dec 2013 01:05:42 +0000 (02:05 +0100)]
asyncio doc: fix definition of stop() method

11 years agoasyncio doc: reorder methods; typo
Victor Stinner [Tue, 3 Dec 2013 00:59:38 +0000 (01:59 +0100)]
asyncio doc: reorder methods; typo

11 years agoasyncio io: group transports and protocols in a new title
Victor Stinner [Tue, 3 Dec 2013 00:49:43 +0000 (01:49 +0100)]
asyncio io: group transports and protocols in a new title

11 years agoasyncio doc: write a complete TCP echo example, client and server
Victor Stinner [Tue, 3 Dec 2013 00:46:39 +0000 (01:46 +0100)]
asyncio doc: write a complete TCP echo example, client and server

Example based on tcp_echo.py example from Tulip source code.

11 years agoasyncio doc: move coroutine example to the Task page
Victor Stinner [Tue, 3 Dec 2013 00:22:06 +0000 (01:22 +0100)]
asyncio doc: move coroutine example to the Task page

11 years agoSplit asyncio documentation into subfiles
Victor Stinner [Tue, 3 Dec 2013 00:08:00 +0000 (01:08 +0100)]
Split asyncio documentation into subfiles

11 years agoasyncio doc: change level of titles
Victor Stinner [Mon, 2 Dec 2013 23:56:27 +0000 (00:56 +0100)]
asyncio doc: change level of titles

Remove also a duplicated Protocols section!

11 years agoasyncio doc: reorder sections
Victor Stinner [Mon, 2 Dec 2013 23:49:26 +0000 (00:49 +0100)]
asyncio doc: reorder sections

11 years agoasyncio: document wait() function
Victor Stinner [Mon, 2 Dec 2013 23:42:59 +0000 (00:42 +0100)]
asyncio: document wait() function

11 years agoasyncio doc
Victor Stinner [Mon, 2 Dec 2013 23:32:48 +0000 (00:32 +0100)]
asyncio doc

* complete create_connection() prototype
* link to Server
* document get_extra_info() keys

11 years agoIssue #19852: move Path._raw_open() around, as it is now a private method.
Antoine Pitrou [Mon, 2 Dec 2013 20:25:18 +0000 (21:25 +0100)]
Issue #19852: move Path._raw_open() around, as it is now a private method.
Patch by Vajrasky Kok.

11 years agoadd check_hostname arg to ssl._create_stdlib_context()
Christian Heimes [Mon, 2 Dec 2013 19:59:28 +0000 (20:59 +0100)]
add check_hostname arg to ssl._create_stdlib_context()

11 years agoIssue #19785: smtplib now supports SSLContext.check_hostname and server name
Christian Heimes [Mon, 2 Dec 2013 19:44:17 +0000 (20:44 +0100)]
Issue #19785: smtplib now supports SSLContext.check_hostname and server name
indication for TLS/SSL connections.

11 years agoIssue #19783: nntplib now supports SSLContext.check_hostname and server name
Christian Heimes [Mon, 2 Dec 2013 19:20:11 +0000 (20:20 +0100)]
Issue #19783: nntplib now supports SSLContext.check_hostname and server name
indication for TLS/SSL connections.

11 years agoIssue #19784: poplib now supports SSLContext.check_hostname and server name
Christian Heimes [Mon, 2 Dec 2013 19:10:50 +0000 (20:10 +0100)]
Issue #19784: poplib now supports SSLContext.check_hostname and server name
indication for TLS/SSL connections.

11 years agomerge
Christian Heimes [Mon, 2 Dec 2013 19:02:04 +0000 (20:02 +0100)]
merge

11 years agoIssue #19782: imaplib now supports SSLContext.check_hostname and server name
Christian Heimes [Mon, 2 Dec 2013 19:01:29 +0000 (20:01 +0100)]
Issue #19782: imaplib now supports SSLContext.check_hostname and server name
indication for TLS/SSL connections.

11 years agoFixed formatting (was parsed as description list).
Serhiy Storchaka [Mon, 2 Dec 2013 18:31:00 +0000 (20:31 +0200)]
Fixed formatting (was parsed as description list).

11 years agoFixed regex match representation in an example.
Serhiy Storchaka [Mon, 2 Dec 2013 18:23:19 +0000 (20:23 +0200)]
Fixed regex match representation in an example.

11 years agoasyncio: sort some methods
Victor Stinner [Mon, 2 Dec 2013 16:52:31 +0000 (17:52 +0100)]
asyncio: sort some methods

11 years agoasyncio doc: group transport method by classes
Victor Stinner [Mon, 2 Dec 2013 16:46:04 +0000 (17:46 +0100)]
asyncio doc: group transport method by classes

Declare classes because they are mentionned in documentation of other functions

11 years agoasyncio: more documentation
Victor Stinner [Mon, 2 Dec 2013 16:40:48 +0000 (17:40 +0100)]
asyncio: more documentation

11 years agoasyncio: document network functions, and stream reader/writer
Victor Stinner [Mon, 2 Dec 2013 16:28:32 +0000 (17:28 +0100)]
asyncio: document network functions, and stream reader/writer

11 years agoAdd NEWS entry for issue #19834: merge with 3.3.
Walter Doerwald [Mon, 2 Dec 2013 16:20:50 +0000 (17:20 +0100)]
Add NEWS entry for issue #19834: merge with 3.3.

11 years agoAdd NEWS entry for issue #19834.
Walter Doerwald [Mon, 2 Dec 2013 16:19:00 +0000 (17:19 +0100)]
Add NEWS entry for issue #19834.

11 years agoIssue #19814: Clarify argparse's docs w.r.t prefix matching
Eli Bendersky [Mon, 2 Dec 2013 13:50:48 +0000 (05:50 -0800)]
Issue #19814: Clarify argparse's docs w.r.t prefix matching

11 years agoIssue #19814: Clarify argparse's docs w.r.t prefix matching
Eli Bendersky [Mon, 2 Dec 2013 13:49:54 +0000 (05:49 -0800)]
Issue #19814: Clarify argparse's docs w.r.t prefix matching

11 years agoasyncio: replace our with asynchronous in docstring
Victor Stinner [Mon, 2 Dec 2013 13:31:43 +0000 (14:31 +0100)]
asyncio: replace our with asynchronous in docstring

11 years agoasyncio: document locks
Victor Stinner [Mon, 2 Dec 2013 13:31:16 +0000 (14:31 +0100)]
asyncio: document locks

11 years agoasyncio: document Queue classes
Victor Stinner [Mon, 2 Dec 2013 13:06:03 +0000 (14:06 +0100)]
asyncio: document Queue classes

11 years agoDocument Task class and task functions
Victor Stinner [Mon, 2 Dec 2013 12:47:23 +0000 (13:47 +0100)]
Document Task class and task functions

11 years agoasyncio: cleanup doc
Victor Stinner [Mon, 2 Dec 2013 12:04:25 +0000 (13:04 +0100)]
asyncio: cleanup doc

11 years agoIssue #19833: Document more asyncio.BaseEventLoop methods
Victor Stinner [Mon, 2 Dec 2013 11:41:54 +0000 (12:41 +0100)]
Issue #19833: Document more asyncio.BaseEventLoop methods

11 years agoIssue #19833: add 2 examples to asyncio doc (hello world)
Victor Stinner [Mon, 2 Dec 2013 11:21:30 +0000 (12:21 +0100)]
Issue #19833: add 2 examples to asyncio doc (hello world)

11 years agoIssue #19833: asyncio doc: add class name to methods
Victor Stinner [Mon, 2 Dec 2013 11:20:57 +0000 (12:20 +0100)]
Issue #19833: asyncio doc: add class name to methods

11 years ago(Merge 3.3) Issue #19728: Fix sys.getfilesystemencoding() documentation
Victor Stinner [Mon, 2 Dec 2013 11:17:29 +0000 (12:17 +0100)]
(Merge 3.3) Issue #19728: Fix sys.getfilesystemencoding() documentation

11 years agoIssue #19728: Fix sys.getfilesystemencoding() documentation
Victor Stinner [Mon, 2 Dec 2013 11:16:46 +0000 (12:16 +0100)]
Issue #19728: Fix sys.getfilesystemencoding() documentation

11 years agoFix #19834: merge with 3.3.
Walter Doerwald [Mon, 2 Dec 2013 10:43:20 +0000 (11:43 +0100)]
Fix #19834: merge with 3.3.

11 years agoFix issue #19834: Support unpickling of exceptions pickled by Python 2.
Walter Doerwald [Mon, 2 Dec 2013 10:41:01 +0000 (11:41 +0100)]
Fix issue #19834: Support unpickling of exceptions pickled by Python 2.

11 years agoIssue #19781: ftplib now supports SSLContext.check_hostname and server name
Christian Heimes [Mon, 2 Dec 2013 01:56:02 +0000 (02:56 +0100)]
Issue #19781: ftplib now supports SSLContext.check_hostname and server name
indication for TLS/SSL connections.

11 years agoIssue #19509: Add SSLContext.check_hostname to match the peer's certificate
Christian Heimes [Mon, 2 Dec 2013 01:41:19 +0000 (02:41 +0100)]
Issue #19509: Add SSLContext.check_hostname to match the peer's certificate
with server_hostname on handshake.

11 years agonull merge (3.4 already has its own fix for this).
Gregory P. Smith [Mon, 2 Dec 2013 01:28:24 +0000 (17:28 -0800)]
null merge (3.4 already has its own fix for this).

11 years agoFixes issue #15798: subprocess.Popen() no longer fails if file
Gregory P. Smith [Mon, 2 Dec 2013 01:27:40 +0000 (17:27 -0800)]
Fixes issue #15798: subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed.
The errpipe_write fd will always be >= 3.

11 years agoIssue #19754: Fix typo.
Alexandre Vassalotti [Mon, 2 Dec 2013 00:31:49 +0000 (16:31 -0800)]
Issue #19754: Fix typo.

11 years agoIssue #19754: Make pickletools.optimize respect the frame size target.
Alexandre Vassalotti [Mon, 2 Dec 2013 00:27:46 +0000 (16:27 -0800)]
Issue #19754: Make pickletools.optimize respect the frame size target.

11 years agoFixes issue #15798: subprocess.Popen() no longer fails if file
Gregory P. Smith [Mon, 2 Dec 2013 00:03:24 +0000 (16:03 -0800)]
Fixes issue #15798: subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed. (correct fix for 3.4 this time)

11 years agoIssue #11480: Merge with 3.3.
Alexandre Vassalotti [Sun, 1 Dec 2013 21:26:32 +0000 (13:26 -0800)]
Issue #11480: Merge with 3.3.

11 years agoIssue #11480: Fixed copy.copy to work with classes with custom metaclasses.
Alexandre Vassalotti [Sun, 1 Dec 2013 21:25:26 +0000 (13:25 -0800)]
Issue #11480: Fixed copy.copy to work with classes with custom metaclasses.

Patch by Daniel Urban.

11 years agoIssue #18994: Add a missing check for a return value in fcntmodule. Patch by
Charles-François Natali [Sun, 1 Dec 2013 13:30:47 +0000 (14:30 +0100)]
Issue #18994: Add a missing check for a return value in fcntmodule. Patch by
Vajrasky Kok.

11 years agoIssue #19849: selectors: Document the possibility of early select() wakeup upon
Charles-François Natali [Sun, 1 Dec 2013 12:23:48 +0000 (13:23 +0100)]
Issue #19849: selectors: Document the possibility of early select() wakeup upon
EINTR.

11 years agoIssue #19842: Refactor BaseSelector to make it an actual usable ABC.
Charles-François Natali [Sun, 1 Dec 2013 10:04:17 +0000 (11:04 +0100)]
Issue #19842: Refactor BaseSelector to make it an actual usable ABC.

11 years agoCloses #19831: Stop tracemalloc later at Python shutdown to be able to use
Victor Stinner [Sun, 1 Dec 2013 09:03:26 +0000 (10:03 +0100)]
Closes #19831: Stop tracemalloc later at Python shutdown to be able to use
tracemalloc in objects destructor

Replace atexit handler with an harcoded C function _PyTraceMalloc_Fini().

11 years agoUndo supposed fix for Issue #15798 until I understand why this is
Gregory P. Smith [Sun, 1 Dec 2013 08:13:35 +0000 (00:13 -0800)]
Undo supposed fix for Issue #15798 until I understand why this is
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).

11 years agoUndo supposed fix for Issue #15798 until I understand why this is
Gregory P. Smith [Sun, 1 Dec 2013 08:12:24 +0000 (00:12 -0800)]
Undo supposed fix for Issue #15798 until I understand why this is
causing test_multiprocessing_forkserver and test_multiprocessing_spawn
failures on head (3.4).

11 years agoFixes Issue #15798 - subprocess.Popen() no longer fails if file
Gregory P. Smith [Sun, 1 Dec 2013 03:04:00 +0000 (19:04 -0800)]
Fixes Issue #15798 - subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed.

11 years agoFixes Issue #15798 - subprocess.Popen() no longer fails if file
Gregory P. Smith [Sun, 1 Dec 2013 03:02:57 +0000 (19:02 -0800)]
Fixes Issue #15798 - subprocess.Popen() no longer fails if file
descriptor 0, 1 or 2 is closed.

11 years agoIssue #6477: Merge with 3.3.
Alexandre Vassalotti [Sun, 1 Dec 2013 01:58:53 +0000 (17:58 -0800)]
Issue #6477: Merge with 3.3.

11 years agoIssue #6477: Keep PyNotImplemented_Type and PyNone_Type private.
Alexandre Vassalotti [Sun, 1 Dec 2013 01:55:48 +0000 (17:55 -0800)]
Issue #6477: Keep PyNotImplemented_Type and PyNone_Type private.

11 years agoIssue #6477: Merge with 3.3.
Alexandre Vassalotti [Sun, 1 Dec 2013 00:21:20 +0000 (16:21 -0800)]
Issue #6477: Merge with 3.3.

11 years agoIssue #6477: Added support for pickling the types of built-in singletons.
Alexandre Vassalotti [Sun, 1 Dec 2013 00:06:39 +0000 (16:06 -0800)]
Issue #6477: Added support for pickling the types of built-in singletons.

11 years agoasyncio: Use Interface instead of ABC. Fixes issue 19726.
Guido van Rossum [Sat, 30 Nov 2013 23:35:42 +0000 (15:35 -0800)]
asyncio: Use Interface instead of ABC.  Fixes issue 19726.

11 years agoIssue #19845: Updated the Compiling Python on Windows docs.
Zachary Ware [Sat, 30 Nov 2013 23:03:03 +0000 (17:03 -0600)]
Issue #19845: Updated the Compiling Python on Windows docs.

11 years agoIssue #19845: Updated the Compiling Python on Windows docs.
Zachary Ware [Sat, 30 Nov 2013 22:59:33 +0000 (16:59 -0600)]
Issue #19845: Updated the Compiling Python on Windows docs.

11 years agoCloses #19789: Merged update from 3.3.
Vinay Sajip [Sat, 30 Nov 2013 22:46:29 +0000 (22:46 +0000)]
Closes #19789: Merged update from 3.3.

11 years agoIssue #19789: Clarified documentation for logging.disable.
Vinay Sajip [Sat, 30 Nov 2013 22:45:29 +0000 (22:45 +0000)]
Issue #19789: Clarified documentation for logging.disable.

11 years agoMerge with 3.3.
Alexandre Vassalotti [Sat, 30 Nov 2013 21:55:39 +0000 (13:55 -0800)]
Merge with 3.3.

11 years agoFixed _pickle.Unpickler to handle empty persistent IDs correctly.
Alexandre Vassalotti [Sat, 30 Nov 2013 21:52:35 +0000 (13:52 -0800)]
Fixed _pickle.Unpickler to handle empty persistent IDs correctly.