Victor Stinner
cfc4c13b04
Add _PyUnicodeWriter_WriteSubstring() function
...
Write a function to enable more optimizations:
* If the substring is the whole string and overallocation is disabled, just
keep a reference to the string, don't copy characters
* Avoid a call to the expensive _PyUnicode_FindMaxChar() function when
possible
2013-04-03 01:48:39 +02:00
Victor Stinner
4489e927a6
(Merge 3.3) Close #6822 : ftplib.FTP.storlines() expects a binary file, not a text file
...
Add an unit test to ensure that text files are rejectect (with TypeError)
2013-04-02 22:13:49 +02:00
Victor Stinner
ed3a303548
Close #6822 : ftplib.FTP.storlines() expects a binary file, not a text file
...
Add an unit test to ensure that text files are rejectect (with TypeError)
2013-04-02 22:13:27 +02:00
R David Murray
d9ebf4dc1f
#17489 : Add explanatory comment that __getstate__ is not called.
...
We don't put coverage directives in the stdlib, but anyone looking at a
coverage report for Random should see the comment and understand why the lines
aren't covered.
2013-04-02 13:10:52 -04:00
R David Murray
e3e1c17e08
#17492 : Additional tests for random module.
...
Patch by Victor Terrón.
2013-04-02 12:47:23 -04:00
Benjamin Peterson
d3f41fe121
merge 3.3 ( #17610 )
2013-04-01 17:43:30 -04:00
Benjamin Peterson
6395241471
list slotdefs in offset order rather than sorting them ( closes #17610 )
...
This means we can remove our usage of qsort() than relied on undefined behavior.
2013-04-01 17:41:41 -04:00
Brett Cannon
49e835bec6
Issue #14135 : Let's try this again.
2013-04-01 14:11:37 -04:00
Brett Cannon
a495b498af
merge
2013-04-01 13:26:21 -04:00
Brett Cannon
daf4daa295
merge
2013-04-01 13:25:40 -04:00
Brett Cannon
f8ffec0617
Issue #17357 : Add missing verbosity messages when running under
...
-v/-vv that were lost in the transition to importlib.
2013-04-01 13:10:51 -04:00
Antoine Pitrou
9a8d6934df
Issue #17483 : remove unreachable code in urlopen().
2013-04-01 18:55:35 +02:00
Antoine Pitrou
7d197de987
Backed out changeset 4fcd50a6dca7 as it totally breaks the test suite here.
2013-04-01 18:54:45 +02:00
Brett Cannon
2d556f56db
Issue #14135 : Make sure tests don't leave the locale changed for any
...
category.
Thanks to Westley Martinez for trying to fix the issue and Atsuo
Ishimoto for an initial patch.
2013-04-01 12:53:13 -04:00
Roger Serwy
af504ca017
#6698 : merge with 3.3.
2013-03-31 23:31:32 -05:00
Roger Serwy
c35151cf41
#6698 : IDLE now opens just an editor window when configured to do so.
2013-03-31 23:28:55 -05:00
Ned Deily
05bdd853ec
Issue #17586 : fix typo in contextlib.rst
2013-03-31 17:06:15 -07:00
Roger Serwy
e268196fb0
Merge heads.
2013-03-31 16:11:51 -05:00
Roger Serwy
6d5bfad545
#8900 : merge with 3.3.
2013-03-31 15:56:02 -05:00
Roger Serwy
420e2d8e39
#8900 : Using keyboard shortcuts in IDLE to open a file no longer raises an exception.
2013-03-31 15:53:08 -05:00
Antoine Pitrou
7faf70512a
Issue #17591 : Use lowercase filenames when including Windows header files.
...
Patch by Roumen Petrov.
2013-03-31 22:48:04 +02:00
Charles-Francois Natali
f61d07903e
Issue #6419 : Fix a test_kqueue failure on some BSD flavors.
2013-03-31 20:37:34 +02:00
Charles-Francois Natali
7a03e2d377
Issue #6419 : Fix a test_kqueue failure on some BSD flavors.
2013-03-31 20:36:57 +02:00
Gregory P. Smith
2b3a35b5dd
skip a fcntl test on ARM Linux that isn't supported there.
2013-03-31 10:25:42 -07:00
Gregory P. Smith
e5aefa452b
Skip a test of an old API on ARM Linux that isn't supported by the OS.
2013-03-31 10:10:50 -07:00
Roger Serwy
3aaf5dab8a
#6649 : merge with 3.3.
2013-03-31 01:11:26 -05:00
Roger Serwy
71c9e1a5c3
#6649 : Fixed missing exit status in IDLE. Patch by Guilherme Polo.
2013-03-31 01:00:15 -05:00
Terry Jan Reedy
42a83201a0
Merge from 3.3: Issue #17390
2013-03-30 18:39:14 -04:00
Terry Jan Reedy
32622236d5
Issue #17390 : Display Python version on Idle title bar. Patch by Edmond Burnett.
2013-03-30 18:32:19 -04:00
R David Murray
5cbf3a0d6e
Merge #17435 : Don't use mutable default values in Timer.
...
Patch by Denver Coneybeare with some test modifications by me.
2013-03-30 17:22:30 -04:00
R David Murray
19aeb439c6
Issue #17435 : Don't use mutable default values in Timer.
...
Patch by Denver Coneybeare with some test modifications by me.
2013-03-30 17:19:38 -04:00
Antoine Pitrou
ce852cb8b9
Fix comment about the OpenSSL version in which SNI version was introduced.
2013-03-30 16:45:04 +01:00
Antoine Pitrou
edbc18e9d0
Improve set_servername_callback docstring.
2013-03-30 16:40:27 +01:00
Antoine Pitrou
a596338bb8
Fix previous fix (the cause was actually a misplaced #endif, or so it seems)
2013-03-30 16:39:00 +01:00
Antoine Pitrou
41f8c4f5e4
Further compiling fixes (issue #17581 )
2013-03-30 16:36:54 +01:00
Antoine Pitrou
9498839a1a
Merge
2013-03-30 16:29:54 +01:00
Antoine Pitrou
912fbff105
Issue #17581 : try to fix building on old OpenSSL versions
2013-03-30 16:29:32 +01:00
Vinay Sajip
3fdd4f1935
Merged documentation update from 3.3.
2013-03-30 11:57:09 +00:00
Vinay Sajip
8028a5cf15
Updated logging cookbook with additional example for output using str.format().
2013-03-30 11:56:18 +00:00
Ezio Melotti
9d67238439
#17539 : merge with 3.3.
2013-03-30 05:56:21 +02:00
Ezio Melotti
b40a2203ad
#17539 : fix MagicMock example. Patch by Berker Peksag.
2013-03-30 05:55:52 +02:00
Ezio Melotti
0503de9c83
#17526 : merge with 3.3.
2013-03-30 05:19:06 +02:00
Ezio Melotti
1b145927d7
#17526 : fix an IndexError raised while passing code without filename to inspect.findsource(). Initial patch by Tyler Doyle.
2013-03-30 05:17:24 +02:00
Ezio Melotti
8c0fc15c41
#17564 : merge with 3.3.
2013-03-30 01:33:46 +02:00
Ezio Melotti
9098472299
#17564 : skip test_bad_address unless the tests are run with -unetwork/-uall.
2013-03-30 01:28:40 +02:00
Vinay Sajip
04cc55a14c
Closes #17540 : Merged fix from 3.3.
2013-03-29 17:59:15 +00:00
Vinay Sajip
28421c6f62
Issue #17540 : Added style to Formatter configuration by dict.
2013-03-29 17:56:54 +00:00
Antoine Pitrou
609ef01b02
In search of TLS 1.1 bug: add debugging output in verbose mode
2013-03-29 18:09:06 +01:00
Antoine Pitrou
972d5bb763
Use a subtest in test_ssl.test_echo
2013-03-29 17:56:03 +01:00
Antoine Pitrou
22e162f462
Fix bug in TestResult.addSubTest()
2013-03-29 17:55:24 +01:00