]>
granicus.if.org Git - python/log
Richard Oudkerk [Mon, 24 Jun 2013 14:43:35 +0000 (15:43 +0100)]
Issue #15818: Merge.
Richard Oudkerk [Mon, 24 Jun 2013 14:42:00 +0000 (15:42 +0100)]
Issue #15818: Typo in docs.
Richard Oudkerk [Mon, 24 Jun 2013 13:52:14 +0000 (14:52 +0100)]
Issue #18277: Merge.
Richard Oudkerk [Mon, 24 Jun 2013 13:48:07 +0000 (14:48 +0100)]
Issue #18277: Document quirks of multiprocessing queue.
Christian Heimes [Mon, 24 Jun 2013 13:39:58 +0000 (15:39 +0200)]
Fix test for GCC 3.1+ but not strict ANSI C
Christian Heimes [Mon, 24 Jun 2013 13:39:41 +0000 (15:39 +0200)]
Fix test for GCC 3.1+ but not strict ANSI C
Raymond Hettinger [Sun, 23 Jun 2013 22:47:03 +0000 (15:47 -0700)]
merge
Raymond Hettinger [Sun, 23 Jun 2013 22:44:33 +0000 (15:44 -0700)]
Misc improvements to collections.deque()
* Clarified comment on the impact of BLOCKLEN on deque_index
(with a power-of-two, the division and modulo
computations are done with a right-shift and bitwise-and).
* Clarified comment on the overflow check to note that
it is general and not just applicable the 64-bit builds.
* In deque._rotate(), the "deque->" indirections are
factored-out of the loop (loop invariant code motion),
leaving the code cleaner looking and slightly faster.
* In deque._rotate(), replaced the memcpy() with an
equivalent loop. That saved the memcpy setup time
and allowed the pointers to move in their natural
leftward and rightward directions.
See comparative timings at: http://pastebin.com/p0RJnT5N
Christian Heimes [Sun, 23 Jun 2013 22:13:14 +0000 (00:13 +0200)]
Issue #11016: Don't define macros and constants that are already set by pyport.h
Christian Heimes [Sun, 23 Jun 2013 21:56:05 +0000 (23:56 +0200)]
Define S_IFMT and S_IFLNK in pyport.h so posixmodule.c can use named constants instead
of arbitrary looking numbers.
Christian Heimes [Sun, 23 Jun 2013 21:52:40 +0000 (23:52 +0200)]
Check for correct macro, code uses S_ISDIR().
Christian Heimes [Sun, 23 Jun 2013 21:51:44 +0000 (23:51 +0200)]
Check for correct macro, code uses S_ISDIR().
Victor Stinner [Sun, 23 Jun 2013 20:57:43 +0000 (22:57 +0200)]
Issue #11016: Detect integer conversion on conversion from Python int to C mode_t
Christian Heimes [Sun, 23 Jun 2013 20:57:22 +0000 (22:57 +0200)]
merge
Christian Heimes [Sun, 23 Jun 2013 20:57:02 +0000 (22:57 +0200)]
Fix a typo in S_ISDIR, S_ISCHR, S_ISBLK and S_ISREG.
Add extra braces to S_IS*() macros
R David Murray [Sun, 23 Jun 2013 20:06:13 +0000 (16:06 -0400)]
Merge #18179: reflow paragraphs.
R David Murray [Sun, 23 Jun 2013 20:05:44 +0000 (16:05 -0400)]
#18179: reflow paragraphs.
R David Murray [Sun, 23 Jun 2013 19:52:08 +0000 (15:52 -0400)]
Merge #18179: document the local_hostname parameter.
Original patch by Berker Peksag.
R David Murray [Sun, 23 Jun 2013 19:47:50 +0000 (15:47 -0400)]
#18179: document the local_hostname parameter.
Original patch by Berker Peksag.
R David Murray [Sun, 23 Jun 2013 18:24:13 +0000 (14:24 -0400)]
#11390: convert doctest CLI to argparse and add -o and -f options.
This provides a way to specify arbitrary doctest options when using
the CLI interface to process test files, just as one can when calling
testmod or testfile programmatically.
Serhiy Storchaka [Sun, 23 Jun 2013 17:27:40 +0000 (20:27 +0300)]
Merge heads
Serhiy Storchaka [Sun, 23 Jun 2013 17:25:57 +0000 (20:25 +0300)]
Merge heads
Serhiy Storchaka [Sun, 23 Jun 2013 17:25:40 +0000 (20:25 +0300)]
Merge heads
Serhiy Storchaka [Sun, 23 Jun 2013 17:21:16 +0000 (20:21 +0300)]
Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
OverflowError when an argument of %c format is out of range.
Serhiy Storchaka [Sun, 23 Jun 2013 17:12:14 +0000 (20:12 +0300)]
Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
OverflowError when an argument of %c format is out of range.
Łukasz Langa [Sun, 23 Jun 2013 17:12:12 +0000 (19:12 +0200)]
Merged fix for issue #18260 from 3.3
Łukasz Langa [Sun, 23 Jun 2013 17:10:25 +0000 (19:10 +0200)]
Fixed issue #18260: configparser TypeError on source name specified as bytes
Christian Heimes [Sun, 23 Jun 2013 14:11:37 +0000 (16:11 +0200)]
Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate
for symlinks.
Christian Heimes [Sun, 23 Jun 2013 14:10:29 +0000 (16:10 +0200)]
Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate
for symlinks.
Christian Heimes [Sun, 23 Jun 2013 13:53:09 +0000 (15:53 +0200)]
import.c does neither need mode_t nor _mkdir() anymore
Christian Heimes [Sun, 23 Jun 2013 13:50:45 +0000 (15:50 +0200)]
Add _stat module to VS project file -- this time with the GUI instead of manually.
Christian Heimes [Sun, 23 Jun 2013 13:46:56 +0000 (15:46 +0200)]
add _stat to list of builtin Windows modules
Victor Stinner [Sun, 23 Jun 2013 13:09:26 +0000 (15:09 +0200)]
(Merge 3.3) Issue #18135: Fix a possible integer overflow in
ssl.SSLSocket.write() and in ssl.SSLContext.load_cert_chain() for strings and
passwords longer than 2 gigabytes.
Victor Stinner [Sun, 23 Jun 2013 13:08:23 +0000 (15:08 +0200)]
Issue #18135: Fix a possible integer overflow in ssl.SSLSocket.write()
and in ssl.SSLContext.load_cert_chain() for strings and passwords longer
than 2 gigabytes.
Victor Stinner [Sun, 23 Jun 2013 12:58:43 +0000 (14:58 +0200)]
_ssl.c: strip trailing spaces
Victor Stinner [Sun, 23 Jun 2013 12:55:43 +0000 (14:55 +0200)]
(Merge 3.3) Issue #18137: Detect integer overflow on precision in
float.__format__() and complex.__format__().
Victor Stinner [Sun, 23 Jun 2013 12:54:30 +0000 (14:54 +0200)]
Issue #18137: Detect integer overflow on precision in float.__format__() and
complex.__format__().
Victor Stinner [Sat, 22 Jun 2013 23:49:42 +0000 (01:49 +0200)]
Issue #11016: Try to fix compilaton of the new _stat.c module on Windows
Andrew Kuchling [Sat, 22 Jun 2013 23:27:59 +0000 (19:27 -0400)]
Merge from 3.3
Andrew Kuchling [Sat, 22 Jun 2013 23:20:54 +0000 (19:20 -0400)]
Closes #18220: expand itertools.islice docstring to 2 lines
Andrew Kuchling [Sat, 22 Jun 2013 23:04:11 +0000 (19:04 -0400)]
Close #18285: add 'repeat' parameter to docstring for product
Terry Jan Reedy [Sat, 22 Jun 2013 22:37:34 +0000 (18:37 -0400)]
#18151 Merge from 3.3
Terry Jan Reedy [Sat, 22 Jun 2013 22:26:51 +0000 (18:26 -0400)]
#18151, part 2: Silence debug build resource warning for each file opened by
'Find in files' by replacing 'open with implicit close' by 'with open' in
GrepDialog method grep_it. Streamline code with enumerate(), direct file
iteration, and output tweak. Add test for this method, including output format.
Christian Heimes [Sat, 22 Jun 2013 19:05:02 +0000 (21:05 +0200)]
Issue #11016: Add C implementation of the stat module as _stat
Andrew Kuchling [Sat, 22 Jun 2013 18:57:45 +0000 (14:57 -0400)]
Merge from 3.3
Andrew Kuchling [Sat, 22 Jun 2013 18:50:56 +0000 (14:50 -0400)]
#18113: avoid segfault if Py_XDECREF triggers code that calls set_panel_userptr again
Problem noted & original patch by Serhiy Storchaka; I tweaked the patch a bit.
Christian Heimes [Sat, 22 Jun 2013 17:34:17 +0000 (19:34 +0200)]
... also TLSv1.1 and TLSv1.2
Christian Heimes [Sat, 22 Jun 2013 17:31:58 +0000 (19:31 +0200)]
Add my SSL module patches to whatsnew 3.4
Christian Heimes [Sat, 22 Jun 2013 12:48:42 +0000 (14:48 +0200)]
BSD: block devices are gone
http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html
Christian Heimes [Sat, 22 Jun 2013 12:48:32 +0000 (14:48 +0200)]
BSD: block devices are gone
http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html
Brett Cannon [Fri, 21 Jun 2013 22:37:02 +0000 (18:37 -0400)]
merge for issue #18278
Brett Cannon [Fri, 21 Jun 2013 22:31:55 +0000 (18:31 -0400)]
Issue #18278: properly document how the loaders are called for FileFinder
Victor Stinner [Fri, 21 Jun 2013 17:08:06 +0000 (19:08 +0200)]
marshal: optimize parsing of empty Unicode strings
Don't create a temporary buffer of zeroy byte nor call r_string() if the length
is zero, create directly the empty string.
Christian Heimes [Fri, 21 Jun 2013 16:53:27 +0000 (18:53 +0200)]
Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links
Christian Heimes [Fri, 21 Jun 2013 16:53:13 +0000 (18:53 +0200)]
Fix test_stat on BSD, /dev/da0 and /dev/ad0 are links
Christian Heimes [Fri, 21 Jun 2013 16:26:05 +0000 (18:26 +0200)]
Add tests for untested features of the 'stat' module (part of issue #11016)
Christian Heimes [Fri, 21 Jun 2013 16:25:56 +0000 (18:25 +0200)]
Add tests for untested features of the 'stat' module (part of issue #11016)
Andrew Kuchling [Fri, 21 Jun 2013 15:49:57 +0000 (11:49 -0400)]
#12716: reorganize docs for os module a bit
* Move the constants used by os.open() to after the description of os.open(),
instead of putting them in their own section.
* Move RTLD_* constants to "Miscellaneous System Information" section, and
mention the sys functions they're used with.
* Mention dir_fd parameter in os.open() text.
* Typo fix ("are a supported by").
Andrew Kuchling [Fri, 21 Jun 2013 14:58:41 +0000 (10:58 -0400)]
#13226: update references from ctypes/DLFCN modules to os module
Andrew Kuchling [Fri, 21 Jun 2013 12:07:35 +0000 (08:07 -0400)]
Merge from 3.3
Andrew Kuchling [Fri, 21 Jun 2013 12:00:58 +0000 (08:00 -0400)]
Closes #18218: use correct variable name for starting point
Andrew Kuchling [Fri, 21 Jun 2013 11:58:35 +0000 (07:58 -0400)]
Closes #18239: correct description of count() in module docstring
Andrew Kuchling [Fri, 21 Jun 2013 11:44:50 +0000 (07:44 -0400)]
Closes #18247: add Lib/test/data/* to .gitignore
Andrew Kuchling [Fri, 21 Jun 2013 01:40:14 +0000 (21:40 -0400)]
Merge from 3.3
Andrew Kuchling [Fri, 21 Jun 2013 01:33:05 +0000 (21:33 -0400)]
Closes #18267: use floor division in code example
Brett Cannon [Fri, 21 Jun 2013 01:30:32 +0000 (21:30 -0400)]
Grammatical mistake in a comment
Andrew Kuchling [Fri, 21 Jun 2013 01:20:20 +0000 (21:20 -0400)]
Merge from 3.3
Andrew Kuchling [Fri, 21 Jun 2013 01:17:41 +0000 (21:17 -0400)]
Closes #18272: use 'builtins' for 3.3 instead of __builtin__
Victor Stinner [Thu, 20 Jun 2013 22:36:30 +0000 (00:36 +0200)]
whatsnew/3.4: mention functools.singledispatch, PEP 443
Victor Stinner [Thu, 20 Jun 2013 22:31:55 +0000 (00:31 +0200)]
whatsnew/3.4: mention the new enum module, PEP 435
Andrew Kuchling [Thu, 20 Jun 2013 13:51:51 +0000 (09:51 -0400)]
Merge from 3.3
Andrew Kuchling [Thu, 20 Jun 2013 13:29:09 +0000 (09:29 -0400)]
#4153: update Unicode howto for Python 3.3
* state that python3 source encoding is UTF-8, and give examples
* mention surrogateescape in the 'tips and tricks' section, and
backslashreplace in the "Python's Unicode Support" section.
* Describe Unicode support provided by the re module.
* link to Nick Coghlan's and Ned Batchelder's notes/presentations.
* default filesystem encoding is now UTF-8, not ascii.
* Describe StreamRecoder class.
* update acks section
* remove usage of "I think", "I'm not going to", etc.
* various edits
* remove revision history and original outline
Senthil Kumaran [Thu, 20 Jun 2013 03:20:26 +0000 (22:20 -0500)]
merge from 3.3
Add -b and -X options to python man page.
Patch contributed by Corey Brune.
Senthil Kumaran [Thu, 20 Jun 2013 03:19:46 +0000 (22:19 -0500)]
Add -b and -X options to python man page.
Patch contributed by Corey Brune.
R David Murray [Wed, 19 Jun 2013 20:59:22 +0000 (16:59 -0400)]
Merge: Tweak programming faq examples so that it (mostly) passes doctest.
R David Murray [Wed, 19 Jun 2013 20:58:26 +0000 (16:58 -0400)]
Tweak programming faq examples so that it (mostly) passes doctest.
The exception is the import related questions at the end, which
need to be rewritten anyway.
Benjamin Peterson [Wed, 19 Jun 2013 16:01:58 +0000 (09:01 -0700)]
merge 3.3 (#18248)
Benjamin Peterson [Wed, 19 Jun 2013 16:01:42 +0000 (09:01 -0700)]
fix libffi build on AIX (closes #18248)
Serhiy Storchaka [Wed, 19 Jun 2013 07:29:58 +0000 (10:29 +0300)]
Issue #18202: Fix minor bugs and cleanup test_source_encoding.py.
Serhiy Storchaka [Wed, 19 Jun 2013 07:23:35 +0000 (10:23 +0300)]
Issue #18202: Fix minor bugs and cleanup test_coding.py.
Brett Cannon [Wed, 19 Jun 2013 00:51:42 +0000 (20:51 -0400)]
merge
Brett Cannon [Wed, 19 Jun 2013 00:49:55 +0000 (20:49 -0400)]
Issue #17177: Clarify some deprecations
Christian Heimes [Wed, 19 Jun 2013 00:43:19 +0000 (02:43 +0200)]
fixed libffi on PPC without __NO_FPRS__
ISO C90 forbids mixed declarations and code
Christian Heimes [Wed, 19 Jun 2013 00:40:38 +0000 (02:40 +0200)]
fixed libffi on PPC without __NO_FPRS__
ISO C90 forbids mixed declarations and code
Christian Heimes [Wed, 19 Jun 2013 00:09:00 +0000 (02:09 +0200)]
merge heads
Christian Heimes [Wed, 19 Jun 2013 00:08:41 +0000 (02:08 +0200)]
merge heads
Christian Heimes [Wed, 19 Jun 2013 00:07:20 +0000 (02:07 +0200)]
Issue #18259: Declare sethostname in socketmodule.c for AIX
Christian Heimes [Wed, 19 Jun 2013 00:06:29 +0000 (02:06 +0200)]
Issue #18259: Declare sethostname in socketmodule.c for AIX
Antoine Pitrou [Tue, 18 Jun 2013 21:28:18 +0000 (23:28 +0200)]
Fix compilation warning with gcc 4.8 (unused typedef)
Antoine Pitrou [Tue, 18 Jun 2013 20:19:11 +0000 (22:19 +0200)]
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Antoine Pitrou [Tue, 18 Jun 2013 20:17:48 +0000 (22:17 +0200)]
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Christian Heimes [Tue, 18 Jun 2013 11:22:37 +0000 (13:22 +0200)]
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
Christian Heimes [Tue, 18 Jun 2013 11:22:17 +0000 (13:22 +0200)]
Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available
Brett Cannon [Mon, 17 Jun 2013 23:58:57 +0000 (19:58 -0400)]
Grammar tweak
Brett Cannon [Mon, 17 Jun 2013 21:48:30 +0000 (17:48 -0400)]
Issue #17222: fix a mix-up in some exception messages.
Reported by Arfrever Frehtes Taifersar Arahesis.
Victor Stinner [Mon, 17 Jun 2013 21:39:06 +0000 (23:39 +0200)]
(Merge 3.3) test_faulthandler: use _sigsegv() instead of _read_null()
faulthandler._read_null() is not reliable: it does not crash on AIX.
Victor Stinner [Mon, 17 Jun 2013 21:37:59 +0000 (23:37 +0200)]
test_faulthandler: use _sigsegv() instead of _read_null()
faulthandler._read_null() is not reliable: it does not crash on AIX.
Victor Stinner [Mon, 17 Jun 2013 20:02:14 +0000 (22:02 +0200)]
(Merge 3.3) ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
Victor Stinner [Mon, 17 Jun 2013 20:01:53 +0000 (22:01 +0200)]
ctypes: AIX needs an explicit #include <alloca.h> to get alloca()
Victor Stinner [Mon, 17 Jun 2013 19:52:24 +0000 (21:52 +0200)]
(Merge 3.3) Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX
sigwaitinfo() can be interrupted on Linux (raises InterruptedError), but not on
AIX.