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
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
Victor Stinner
8c6db45d3e
In debug mode, unicode_write_cstr() now checks that non-ASCII characters are
...
not written into an ASCII string
2012-10-06 00:40:45 +02:00
Andrew Svetlov
220e869a51
Merge issue #16115 : Add test for check that executable arg to Popen() takes precedence over args[0] arg\n \n Patch by Kushal Das
2012-10-05 22:53:12 +03:00
Andrew Svetlov
1a53c0cbf5
Issue #16115 : Add test for check that executable arg to Popen() takes precedence over args[0] arg\n \n Patch by Kushal Das
2012-10-05 22:52:15 +03:00
Andrew Svetlov
64478ac219
normalize whitespaces
2012-10-05 22:16:55 +03:00
Andrew Svetlov
9b1e59a2b3
Issue #16123 : IDLE - deprecate running without a subprocess.
...
Patch by Roger Serwy
2012-10-05 22:12:44 +03:00
Ezio Melotti
81e5e0a725
Merge ftplib doc fix with 3.3.
2012-10-05 14:10:57 +03:00
Ezio Melotti
b28e75d9d6
Merge ftplib doc fix with 3.2.
2012-10-05 14:10:39 +03:00
Ezio Melotti
cbd449b416
The file obj passed to ftp.storbinary/storlines must be opened in binary mode.
2012-10-05 14:09:59 +03:00
Andrew Svetlov
d6d5644453
Merge issue #16138 : fix typo.
2012-10-05 13:27:02 +03:00