]>
granicus.if.org Git - python/log
Guido van Rossum [Sat, 7 Dec 2013 23:57:01 +0000 (15:57 -0800)]
Silently ignore unregistering closed files. Fixes issue 19876. With docs and slight test refactor.
Christian Heimes [Sat, 7 Dec 2013 22:39:33 +0000 (23:39 +0100)]
Issue #19922: define _INCLUDE__STDC_A1_SOURCE in HP-UX to include mbstate_t
for mbrtowc().
Charles-François Natali [Sat, 7 Dec 2013 19:30:41 +0000 (20:30 +0100)]
Merge.
Charles-François Natali [Sat, 7 Dec 2013 19:30:17 +0000 (20:30 +0100)]
Issue #19857: Make sure that test_imaplib reaps server threads even in face of
error upon client disconnection.
Charles-François Natali [Sat, 7 Dec 2013 19:28:46 +0000 (20:28 +0100)]
Merge.
Charles-François Natali [Sat, 7 Dec 2013 19:27:41 +0000 (20:27 +0100)]
Issue #19857: Make sure that test_imaplib reaps server threads even in face of
error upon client disconnection.
Charles-François Natali [Sat, 7 Dec 2013 19:03:12 +0000 (20:03 +0100)]
Issue #19857: Make sure that test_imaplib reaps server threads even in face of
error upon client disconnection.
Christian Heimes [Sat, 7 Dec 2013 17:19:21 +0000 (18:19 +0100)]
Solaris needs a readable file for shared lock
Victor Stinner [Sat, 7 Dec 2013 14:02:09 +0000 (15:02 +0100)]
Remove a duplicated import
Alexandre Vassalotti [Sat, 7 Dec 2013 09:09:27 +0000 (01:09 -0800)]
Issue #6784: Strings from Python 2 can now be unpickled as bytes objects.
Initial patch by Merlijn van Deen.
I've added a few unrelated docstring fixes in the patch while I was at
it, which makes the documentation for pickle a bit more consistent.
Guido van Rossum [Sat, 7 Dec 2013 01:46:22 +0000 (17:46 -0800)]
Fix indentation of switch cases.
Benjamin Peterson [Sat, 7 Dec 2013 01:12:51 +0000 (20:12 -0500)]
merge 3.3 (#19910)
Benjamin Peterson [Sat, 7 Dec 2013 01:12:39 +0000 (20:12 -0500)]
document that compile() can take bytes (closes #19910)
Antoine Pitrou [Sat, 7 Dec 2013 00:05:57 +0000 (01:05 +0100)]
Mention pickle protocol 4, and some tweaks.
Antoine Pitrou [Fri, 6 Dec 2013 23:57:44 +0000 (00:57 +0100)]
Issue #19900: improve generalities at the start of the pickle module doc
Antoine Pitrou [Fri, 6 Dec 2013 23:56:59 +0000 (00:56 +0100)]
Issue #19900: improve generalities at the start of the pickle module doc
Christian Heimes [Fri, 6 Dec 2013 23:14:55 +0000 (00:14 +0100)]
copy 'n paste typo (thx Antoine)
Christian Heimes [Fri, 6 Dec 2013 23:09:45 +0000 (00:09 +0100)]
Skip new SSL tests with IocpEventLoop
Christian Heimes [Fri, 6 Dec 2013 22:43:50 +0000 (23:43 +0100)]
Load expat_config.h and therefore pyconfig.h before C stdlib headers are loaded.
This silences the pre-processor warning '_POSIX_C_SOURCE redefined'.
Guido van Rossum [Fri, 6 Dec 2013 20:57:40 +0000 (12:57 -0800)]
asyncio: Add Task.current_task() class method.
Brett Cannon [Fri, 6 Dec 2013 19:25:01 +0000 (14:25 -0500)]
Issue #19712: Update test.test_importlib.source for PEP 451
Brett Cannon [Fri, 6 Dec 2013 17:07:25 +0000 (12:07 -0500)]
Issue #19712: Update test.test_importlib.import_ to test/use PEP 451
where appropriate.
Serhiy Storchaka [Fri, 6 Dec 2013 15:25:51 +0000 (17:25 +0200)]
Test same drive in different cases (issue #19908).
Serhiy Storchaka [Fri, 6 Dec 2013 15:14:12 +0000 (17:14 +0200)]
Issue #19908: pathlib now joins relative Windows paths correctly when a drive
is present. Original patch by Antoine Pitrou.
Vinay Sajip [Fri, 6 Dec 2013 11:23:08 +0000 (11:23 +0000)]
Merged minor documentation update from 3.3.
Vinay Sajip [Fri, 6 Dec 2013 11:22:24 +0000 (11:22 +0000)]
Added minor clarification in logging HOWTO.
Alexandre Vassalotti [Fri, 6 Dec 2013 03:29:32 +0000 (19:29 -0800)]
Issue #19881: Fix bad pickling of large bytes in cpickle.
Christian Heimes [Fri, 6 Dec 2013 01:58:23 +0000 (02:58 +0100)]
fix cert names for asyncio test
Christian Heimes [Thu, 5 Dec 2013 23:23:13 +0000 (00:23 +0100)]
Issue #19509: Finish implementation of check_hostname
The new asyncio package now supports the new feature and comes with additional tests for SSL.
Christian Heimes [Thu, 5 Dec 2013 23:20:00 +0000 (00:20 +0100)]
Issue #19296: Silence compiler warning in dbm_open.
Some dbm header files declare the first argument as char * instead of a const char *.
Antoine Pitrou [Thu, 5 Dec 2013 22:48:10 +0000 (23:48 +0100)]
Issue #18840: Introduce the json module in the tutorial, and deemphasize the pickle module.
Antoine Pitrou [Thu, 5 Dec 2013 22:46:32 +0000 (23:46 +0100)]
Issue #18840: Introduce the json module in the tutorial, and deemphasize the pickle module.
Charles-François Natali [Thu, 5 Dec 2013 21:47:19 +0000 (22:47 +0100)]
Issue #19850: asyncio: Set SA_RESTART when registering a signal handler to
limit EINTR occurrences.
Christian Heimes [Thu, 5 Dec 2013 15:13:03 +0000 (16:13 +0100)]
Add simple test for fcntl.flock()
Christian Heimes [Thu, 5 Dec 2013 12:56:56 +0000 (13:56 +0100)]
Test syslog.openlog() without args to test syslog_get_argv()
Christian Heimes [Thu, 5 Dec 2013 06:53:38 +0000 (07:53 +0100)]
normalize white space
Christian Heimes [Thu, 5 Dec 2013 06:51:17 +0000 (07:51 +0100)]
Issue 19509: Don't call match_hostname() twice in http.client.
Christian Heimes [Thu, 5 Dec 2013 06:45:36 +0000 (07:45 +0100)]
Add a script similar to xmltests.py to run all SSL-related unit tests
Christian Heimes [Thu, 5 Dec 2013 06:41:08 +0000 (07:41 +0100)]
Test SSLSock's context getter and setter
Christian Heimes [Thu, 5 Dec 2013 06:40:29 +0000 (07:40 +0100)]
touch _lsprof's clear() method for C code coverage
Christian Heimes [Thu, 5 Dec 2013 06:38:13 +0000 (07:38 +0100)]
exclude _hashopenssl.c:_setException() from LCOV coverage
Nadeem Vawda [Wed, 4 Dec 2013 22:29:51 +0000 (23:29 +0100)]
Closes #19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF.
Also fix an analogous bug (not a regression) in the lzma module.
Nadeem Vawda [Wed, 4 Dec 2013 22:03:49 +0000 (23:03 +0100)]
#19839: Fix lzma module's handling of non-lzma data at EOF.
Nadeem Vawda [Wed, 4 Dec 2013 22:01:15 +0000 (23:01 +0100)]
#19839: Fix regression in bz2 module's handling of non-bzip2 data at EOF.
Antoine Pitrou [Wed, 4 Dec 2013 20:15:24 +0000 (21:15 +0100)]
Merge socket doc changes from 3.3
Guido van Rossum [Wed, 4 Dec 2013 20:12:07 +0000 (12:12 -0800)]
asyncio: Write flow control for proactor event loop.
Antoine Pitrou [Wed, 4 Dec 2013 20:11:03 +0000 (21:11 +0100)]
Tweak the socket module doc layout
Antoine Pitrou [Wed, 4 Dec 2013 20:02:42 +0000 (21:02 +0100)]
Issue #19882: tweak docs for socket.close()
Guido van Rossum [Wed, 4 Dec 2013 19:50:09 +0000 (11:50 -0800)]
Fix broken docstring continuation line for detach().
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.
Victor Stinner [Wed, 4 Dec 2013 10:16:17 +0000 (11:16 +0100)]
asyncio doc: add some notes on the ping example
Christian Heimes [Wed, 4 Dec 2013 08:43:21 +0000 (09:43 +0100)]
silence unused-value warnings in libffi's dlmalloc.c
Christian Heimes [Wed, 4 Dec 2013 08:34:29 +0000 (09:34 +0100)]
Silence more PyObject_INIT() unused value warnings.
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*.
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.
Christian Heimes [Wed, 4 Dec 2013 07:50:32 +0000 (08:50 +0100)]
ncurses' 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
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.
Tim Peters [Wed, 4 Dec 2013 03:33:31 +0000 (21:33 -0600)]
Null merge from 3.3 branch.
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 )
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.
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.
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().
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.
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
Victor Stinner [Tue, 3 Dec 2013 17:23:52 +0000 (18:23 +0100)]
Fix typo in asyncio.AbstractServer documentation
Victor Stinner [Tue, 3 Dec 2013 16:37:31 +0000 (17:37 +0100)]
asyncio doc: add one more example of coroutines
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.
Victor Stinner [Tue, 3 Dec 2013 14:04:36 +0000 (15:04 +0100)]
ayncio: replace the disclamer with a seealso section
Victor Stinner [Tue, 3 Dec 2013 14:04:18 +0000 (15:04 +0100)]
asyncio doc: simplify ping example, remove the useless timeout
Stefan Krah [Tue, 3 Dec 2013 13:38:56 +0000 (14:38 +0100)]
Null merge.
Stefan Krah [Tue, 3 Dec 2013 13:33:46 +0000 (14:33 +0100)]
Make a couple of parameters constant.
Stefan Krah [Tue, 3 Dec 2013 13:33:46 +0000 (14:33 +0100)]
Make a couple of parameters constant.
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.
Vinay Sajip [Tue, 3 Dec 2013 12:31:23 +0000 (12:31 +0000)]
Added some diagnostics to help with #19690.
Vinay Sajip [Tue, 3 Dec 2013 11:29:45 +0000 (11:29 +0000)]
Closes #19665: Merged fi from 3.3.
Vinay Sajip [Tue, 3 Dec 2013 11:28:55 +0000 (11:28 +0000)]
Issue #19665: Increased timeout for SMTPHandler test.
Antoine Pitrou [Tue, 3 Dec 2013 10:01:08 +0000 (11:01 +0100)]
Add a test for complex symlinks.
Antoine Pitrou [Tue, 3 Dec 2013 08:51:40 +0000 (09:51 +0100)]
Issue #19800: make the pickle framing tests more precise.
Antoine Pitrou [Tue, 3 Dec 2013 08:41:35 +0000 (09:41 +0100)]
Issue #19872: remove unused imports in pathlib. Patch by Vajrasky Kok.
Guido van Rossum [Tue, 3 Dec 2013 02:36:30 +0000 (18:36 -0800)]
asyncio: Improve default writelines().
Victor Stinner [Tue, 3 Dec 2013 01:05:42 +0000 (02:05 +0100)]
asyncio doc: fix definition of stop() method
Victor Stinner [Tue, 3 Dec 2013 00:59:38 +0000 (01:59 +0100)]
asyncio doc: reorder methods; typo
Victor Stinner [Tue, 3 Dec 2013 00:49:43 +0000 (01:49 +0100)]
asyncio io: group transports and protocols in a new title
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.
Victor Stinner [Tue, 3 Dec 2013 00:22:06 +0000 (01:22 +0100)]
asyncio doc: move coroutine example to the Task page
Victor Stinner [Tue, 3 Dec 2013 00:08:00 +0000 (01:08 +0100)]
Split asyncio documentation into subfiles
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!
Victor Stinner [Mon, 2 Dec 2013 23:49:26 +0000 (00:49 +0100)]
asyncio doc: reorder sections
Victor Stinner [Mon, 2 Dec 2013 23:42:59 +0000 (00:42 +0100)]
asyncio: document wait() function
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
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.
Christian Heimes [Mon, 2 Dec 2013 19:59:28 +0000 (20:59 +0100)]
add check_hostname arg to ssl._create_stdlib_context()
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.
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.
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.
Christian Heimes [Mon, 2 Dec 2013 19:02:04 +0000 (20:02 +0100)]
merge
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.
Serhiy Storchaka [Mon, 2 Dec 2013 18:31:00 +0000 (20:31 +0200)]
Fixed formatting (was parsed as description list).
Serhiy Storchaka [Mon, 2 Dec 2013 18:23:19 +0000 (20:23 +0200)]
Fixed regex match representation in an example.