Commit graph

57272 commits

Author SHA1 Message Date
Eli Bendersky
948af23a77 Issue #15888: fixing problems in ipaddress doctests. Patch by Chris Jerdonek 2012-10-07 07:23:50 -07:00
Hynek Schlawack
4865376c44 Closes #1492704: Make shutil.copyfile() raise a distinct SameFileError
Patch by Atsuo Ishimoto.
2012-10-07 12:49:58 +02:00
Andrew Svetlov
09c61bef2d Remove unused functions from _tkinter. 2012-10-07 13:39:00 +03:00
Andrew Svetlov
885dc287d3 Utilize PyModule_Add{IntConstant,StringConstant,Object} in _tkinter. 2012-10-07 12:30:51 +03:00
Ezio Melotti
e12dc28c38 Fix markup. 2012-10-07 12:09:36 +03:00
Andrew Svetlov
9dc5bdddc0 Utilize Py_RETURN_NONE in _tkinter module. 2012-10-07 12:08:38 +03:00
Armin Ronacher
74b38b190f Issue #16148: Small improvements and cleanup. Added version information
to docs.
2012-10-07 10:29:32 +02:00
R David Murray
96e936712f Merge: More whatsnew updates, move some doc NEWS items into the doc section. 2012-10-06 23:21:01 -04:00
R David Murray
f4c2757d78 More whatsnew updates, move some doc NEWS items into the doc section. 2012-10-06 23:19:17 -04:00
R David Murray
fb4dc080eb Merge: starmap/starmap_async for whatsnew, and fix multiprocessing Pool markup. 2012-10-06 22:27:31 -04:00
R David Murray
ace5162294 starmap/starmap_async for whatsnew, and fix multiprocessing Pool markup. 2012-10-06 22:26:52 -04:00
R David Murray
7ecc5ba7be Merge: More whatsnew updates. Also move a C-API NEWS item out of library section. 2012-10-06 22:10:42 -04:00
R David Murray
fd740967ba More whatsnew updates. Also move a C-API NEWS item out of library section. 2012-10-06 22:08:08 -04:00
R David Murray
e24728bb9e merge #9957: document that SpooledTemporaryFile.truncate now accepts a size arg 2012-10-06 18:33:08 -04:00
R David Murray
ca76ea16ad #9957: document that SpooledTemporaryFile.truncate now accepts a size arg 2012-10-06 18:32:39 -04:00
R David Murray
138a314d1a #9957: document that SpooledTemporaryFile.truncate does not take size arg 2012-10-06 18:26:56 -04:00
R David Murray
5825097ee2 Null merge 2012-10-06 18:22:31 -04:00
R David Murray
92a29b5d35 Null merge. 2012-10-06 18:22:09 -04:00
R David Murray
435ee1fcd2 More whatsnew updates. 2012-10-06 18:20:08 -04:00
R David Murray
1e218c98df More whatsnew updates. 2012-10-06 18:18:55 -04:00
Victor Stinner
4c63a972d1 Cleanup PyUnicode_FromFormatV() for zero padding
Skip the "0" instead of parsing it twice: detect zero padding and then parsed
as a digit of the width.
2012-10-06 23:55:33 +02:00
Victor Stinner
15a1136547 Issue #16147: PyUnicode_FromFormatV() doesn't need anymore to allocate a buffer
on the heap to format numbers.
2012-10-06 23:48:20 +02:00
Victor Stinner
ff5a848db5 Issue #16147: PyUnicode_FromFormatV() now raises an error if the argument of
'%c' is not in the range(0x110000).
2012-10-06 23:05:45 +02:00
Victor Stinner
3921e90c5a Issue #16147: PyUnicode_FromFormatV() now detects integer overflow when parsing
width and precision
2012-10-06 23:05:00 +02:00
Victor Stinner
e215d960be Issue #16147: Rewrite PyUnicode_FromFormatV() to use _PyUnicodeWriter API
* Simplify the code: replace 4 steps with one unique step using the
   _PyUnicodeWriter API. PyUnicode_Format() has the same design. It avoids to
   store intermediate results which require to allocate an array of pointers on
   the heap.
 * Use the _PyUnicodeWriter API for speed (and its convinient API):
   overallocate the buffer to reduce the number of "realloc()"
 * Implement "width" and "precision" in Python, don't rely on sprintf(). It
   avoids to need of a temporary buffer allocated on the heap: only use a small
   buffer allocated in the stack.
 * Add _PyUnicodeWriter_WriteCstr() function
 * Split PyUnicode_FromFormatV() into two functions: add
   unicode_fromformat_arg().
 * Inline parse_format_flags(): the format of an argument is now only parsed
   once, it's no more needed to have a subfunction.
 * Optimize PyUnicode_FromFormatV() for characters between two "%" arguments:
   search the next "%" and copy the substring in one chunk, instead of copying
   character per character.
2012-10-06 23:03:36 +02:00
Georg Brandl
2a09b6e849 merge with 3.3. 2012-10-06 22:39:16 +02:00
Georg Brandl
2fdc0f8a86 Fix markup in Counter note. 2012-10-06 22:38:20 +02:00
R David Murray
3dc23d4bf2 Merge: whatsnew updates for smtplib and collections.Counter. 2012-10-06 16:30:46 -04:00
R David Murray
a21e51570d whatsnew updates for smtplib and collections.Counter. 2012-10-06 16:29:14 -04:00
R David Murray
5bab0789f8 Merge: Fix typos. 2012-10-06 16:06:41 -04:00
R David Murray
344174dc77 Fix typos. 2012-10-06 16:06:16 -04:00
R David Murray
d9c6ab48a0 merge #10968: commit threading doc changes and corresponding whatsnew entry.
It is unfortunate that the '_' names were not kept as aliases, and that RLock
was not also converted to a class, but it is now too late to change either of
those things for 3.3.
2012-10-06 14:38:17 -04:00
R David Murray
ef4d286770 #10968: commit threading doc changes and corresponding whatsnew entry.
It is unfortunate that the '_' names were not kept as aliases, and that RLock
was not also converted to a class, but it is now too late to change either of
those things for 3.3.
2012-10-06 14:35:35 -04:00
Mark Dickinson
cf46d62fcb Issue #16096: port fix from 3.3 2012-10-06 18:50:19 +01:00
Mark Dickinson
fc9adb62fb Issue #16096: Fix signed overflow in Objects/longobject.c. Thanks Serhiy Storchaka. 2012-10-06 18:50:02 +01:00
Mark Dickinson
ff9c54aca2 Issue #16096: Merge fixes from 3.3. 2012-10-06 18:05:14 +01:00
Mark Dickinson
c04ddff290 Issue #16096: Fix several occurrences of potential signed integer overflow. Thanks Serhiy Storchaka. 2012-10-06 18:04:49 +01:00
Andrew Svetlov
7e3cde5901 revert accidental inclusion of subprocess tests 2012-10-06 18:46:09 +03:00
Andrew Svetlov
a2028733ef revert accidental inclusion of subprocess tests 2012-10-06 18:45:47 +03:00
Andrew Svetlov
b2209ccfa0 revert accidental inclusion of subprocess tests 2012-10-06 18:45:24 +03:00
Andrew Svetlov
ac0f965fd0 Add spaces to follow PEP8. 2012-10-06 18:38:30 +03:00
Christian Heimes
b70e8a1958 and another one 2012-10-06 17:16:39 +02:00
Christian Heimes
d3df2060a6 merge 2012-10-06 17:14:02 +02:00
Christian Heimes
6314d164c9 move var declaration to top of block to fix compilation on Windows, fixes a7ec0a1b0f7c 2012-10-06 17:13:29 +02:00
Andrew Svetlov
1d0d541259 Issue #16025: Minor corrections to the zipfile documentation.
Patch by Serhiy Storchaka.
2012-10-06 18:10:52 +03:00
Andrew Svetlov
5061a34283 Issue #16025: Minor corrections to the zipfile documentation.
Patch by Serhiy Storchaka.
2012-10-06 18:10:01 +03:00
Andrew Svetlov
afbf90c993 Issue #16025: Minor corrections to the zipfile documentation.
Patch by Serhiy Storchaka.
2012-10-06 18:02:05 +03:00
Andrew Svetlov
7d14015e62 Issue #16120: Use |yield from| in stdlib.
Patch by Berker Peksag.
2012-10-06 17:11:45 +03:00
Christian Heimes
2649105cdd remove #warning from sha3module.c 2012-10-06 15:44:29 +02:00
Christian Heimes
c018f57186 fix possible memory leak, dealloc newobj 2012-10-06 15:09:06 +02:00