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
Armin Ronacher
23c5bb4030
Fixed a missing incref introduced by a7ec0a1b0f7c
2012-10-06 14:30:32 +02:00
Armin Ronacher
226b1db0e2
Added notimplemented_dealloc for better error reporting
2012-10-06 14:28:58 +02:00
Armin Ronacher
dfc23974ed
merge default
2012-10-06 14:12:21 +02:00
Armin Ronacher
aa9a79d279
Issue #16148 : implemented PEP 424
2012-10-06 14:03:24 +02:00
Georg Brandl
4ad4fb9732
merge with 3.3
2012-10-06 13:50:27 +02:00
Georg Brandl
fe7b00fb0a
Closes #11710 : create "landing pages" (/library/package.html) for those packages that have no documented content themselves, e.g. "urllib" or "http".
2012-10-06 13:49:34 +02:00
Georg Brandl
4614cc4f7f
Closes #16149 : remove now-false statement about the inability to compare Decimal and float objects.
2012-10-06 13:48:39 +02:00
Georg Brandl
7ea9a423cb
Closes #16149 : remove now-false statement about the inability to compare Decimal and float objects.
2012-10-06 13:48:39 +02:00
Andrew Svetlov
ef08fb1f04
Issue #13896 : Make shelf instances work with 'with' as context managers.
...
Original patch by Filip Gruszczyński.
2012-10-06 13:52:19 +03:00
Andrew Svetlov
dc22587df2
Update NEWS for adding missed changes.
2012-10-06 13:44:12 +03:00
Christian Heimes
7f9dbaf1f8
fixed _sha3 VS project file
2012-10-06 03:40:10 +02:00
Christian Heimes
1b747d4f28
Issue #16133 : add Windows project file for _sha3 module. I choose to build _sha3 as a sparat module as it's rather large (190k for AMD64).
2012-10-06 03:16:12 +02:00
Christian Heimes
2519fd36c3
add note to Misc/NEWS
2012-10-06 02:27:57 +02:00
Christian Heimes
4a0270d82b
Issue #16113 : integrade SHA-3 (Keccak) patch from http://hg.python.org/sandbox/cheimes
2012-10-06 02:23:36 +02:00