Gregory P. Smith
601c0591c2
Fix test_urllib broken by my previous commits. The assumptions it was
...
testing were added as part of the issue10050 change that caused the
wrong behavior in the first place. now all test cases agree on the
behavior.
2012-11-10 15:13:20 -08:00
Gregory P. Smith
6d9388faab
Fix test_urllib broken by my previous commits. The assumptions it was
...
testing were added as part of the issue10050 change that caused the
wrong behavior in the first place. now all test cases agree on the
behavior.
2012-11-10 15:12:55 -08:00
Stefan Krah
b8f09d3791
Merge 3.3.
2012-11-10 23:31:22 +01:00
Stefan Krah
6e467049c6
Accept Unicode legacy strings in the Decimal constructor.
2012-11-10 23:09:04 +01:00
Gregory P. Smith
b696610c2d
Fixes issue #16409 : The reporthook callback made by the legacy
...
urllib.request.urlretrieve API now properly supplies a constant
non-zero block_size as it did in Python 3.2 and 2.7. This matches the
behavior of urllib.request.URLopener.retrieve.
2012-11-10 13:44:50 -08:00
Gregory P. Smith
6b0bdab429
Fixes issue #16409 : The reporthook callback made by the legacy
...
urllib.request.urlretrieve API now properly supplies a constant
non-zero block_size as it did in Python 3.2 and 2.7. This matches the
behavior of urllib.request.URLopener.retrieve.
2012-11-10 13:43:44 -08:00
Victor Stinner
e2c574fbe5
Issue #16444 : disable undecodable characters in test_non_ascii() test until
...
the FreeBSD issue is fixed
2012-11-10 22:32:08 +01:00
Mark Dickinson
c8a6967ea8
Issue #14794 : slice.indices no longer returns OverflowError for out-of-range start, stop, step or length.
2012-11-10 14:52:10 +00:00
Victor Stinner
ff3d515952
Issue #16444 , #16218 : Use TESTFN_UNDECODABLE on UNIX
...
Check if data is decoded by os.fsdecode() (filesystem encoding with
surrogateescape error handler, PEP 383), not by UTF-8 or the filesystem
encoding in strict mode.
Use TESTFN_UNDECODABLE in test_cmd_line_script.test_non_ascii() on UNIX.
2012-11-10 12:07:39 +01:00
Chris Jerdonek
ef3971d3e5
Merge from 3.3: adjust set and frozenset function docs (issue #16436 ).
2012-11-09 18:58:47 -08:00
Chris Jerdonek
296c2fd065
Merge from 3.2: adjust set and frozenset function docs (issue #16436 ).
2012-11-09 18:58:06 -08:00
Chris Jerdonek
df3abec2c9
Link set and frozenset function docs to their class definitions (issue #16436 ).
2012-11-09 18:57:32 -08:00
Chris Jerdonek
86b3053411
Merge from 3.3: improve FAQ link in documentation (for issue #16435 ).
2012-11-09 17:54:21 -08:00
Chris Jerdonek
fe08756743
Merge from 3.2: improve FAQ link in documentation (for issue #16435 ).
2012-11-09 17:53:14 -08:00
Chris Jerdonek
4ed4b1c7fe
Improve FAQ link in documentation (for issue #16435 ).
2012-11-09 17:52:30 -08:00
Ezio Melotti
90378b4807
#13301 : merge with 3.3.
2012-11-09 11:51:30 +01:00
Ezio Melotti
956c6c2dab
#13301 : merge with 3.2.
2012-11-09 11:51:03 +01:00
Ezio Melotti
9bf379e9fb
#13301 : use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py. Patch by Serhiy Storchaka.
2012-11-09 11:46:19 +01:00
Ezio Melotti
dc945e4943
#16440 : merge with 3.3.
2012-11-09 01:09:27 +02:00
Ezio Melotti
a3ad8a0ce7
#16440 : merge with 3.2.
2012-11-09 01:09:10 +02:00
Ezio Melotti
8b6b176b33
#16440 : fix exception type and clarify example.
2012-11-09 01:08:25 +02:00
Andrew Svetlov
fba5dc1800
Merge issue #16439 : Fix markup in example for stdtypes.
...
Thanks to Yongzhi Pan.
2012-11-08 17:27:53 +02:00
Andrew Svetlov
7cac2d8368
Merge issue #16439 : Fix markup in example for stdtypes.
...
Thanks to Yongzhi Pan.
2012-11-08 17:27:39 +02:00
Andrew Svetlov
5c90436d64
Issue #16439 : Fix markup in example for stdtypes.
...
Thanks to Yongzhi Pan.
2012-11-08 17:26:53 +02:00
Andrew Svetlov
73b56c8d57
Merge issue #16435 : Link in tutorial now points to python3 FAQ.
...
Thanks to Yongzhi Pan from docs@
2012-11-08 16:11:44 +02:00
Andrew Svetlov
b5570e9909
Merge issue #16435 : Link in tutorial now points to python3 FAQ.
...
Thanks to Yongzhi Pan from docs@
2012-11-08 16:11:22 +02:00
Andrew Svetlov
0e9a065275
Issue #16435 : Link in tutorial now points to python3 FAQ.
...
Thanks to Yongzhi Pan from docs@
2012-11-08 16:10:49 +02:00
Stefan Krah
4cb103ee39
Merge 3.3.
2012-11-08 11:19:55 +01:00
Stefan Krah
0f82b76b57
Issue #16431 : Finally, consider all permutations.
2012-11-08 11:17:29 +01:00
Ezio Melotti
dee9043423
#16433 : merge with 3.3.
2012-11-08 11:09:28 +02:00
Ezio Melotti
9cfa1ff891
#16433 : merge with 3.2.
2012-11-08 11:09:13 +02:00
Ezio Melotti
90eea97a33
#16433 : fix docstring of assertNotEqual.
2012-11-08 11:08:39 +02:00
Ezio Melotti
770a5bc9cd
#11481 : merge with 3.3.
2012-11-08 11:06:19 +02:00
Ezio Melotti
b77dc4ec5f
#11481 : merge with 3.2.
2012-11-08 11:06:01 +02:00
Ezio Melotti
78b18d4b4c
#11481 : update copyreg docs and add example.
2012-11-08 11:04:57 +02:00
Ezio Melotti
44dbd07a51
Merge heads.
2012-11-08 10:11:22 +02:00
Ezio Melotti
f62f3a4135
#10385 : merge with 3.3.
2012-11-08 10:09:24 +02:00
Ezio Melotti
60e22b9c5d
#10385 : merge with 3.2.
2012-11-08 10:09:06 +02:00
Ezio Melotti
402f75d966
#10385 : use the mod role in subprocess docs.
2012-11-08 10:07:10 +02:00
Stefan Krah
d2d3aa2038
Merge 3.3.
2012-11-07 23:54:37 +01:00
Stefan Krah
ed16eff57e
Issue #16431 : Also fix the opposite direction.
2012-11-07 23:47:19 +01:00
Stefan Krah
fc55bb1cc5
Merge 3.3.
2012-11-07 23:20:10 +01:00
Stefan Krah
f4abc7b8a0
Issue #16431 : Use the type information when constructing a Decimal subtype
...
from a Decimal argument.
2012-11-07 23:12:25 +01:00
Hynek Schlawack
15c02e3048
Issue #15001 : fix segfault on "del sys.module['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:10:49 +01:00
Hynek Schlawack
33363f43e3
Issue #15001 : fix segfault on "del sys.module['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:07:22 +01:00
Hynek Schlawack
5c6b3e214c
Issue #15001 : fix segfault on "del sys.module['__main__']"
...
Patch by Victor Stinner.
2012-11-07 09:02:24 +01:00
Victor Stinner
99dd8b577b
Remove outdated comment
2012-11-07 00:57:26 +01:00
Victor Stinner
fc009eff9e
Close #16311 : Use the _PyUnicodeWriter API in text decoders
...
* Remove unicode_widen(): replaced with _PyUnicodeWriter_Prepare()
* Remove unicode_putchar(): replaced with
PyUnicodeWriter_Prepare() + PyUnicode_WRITER()
* When handling an decoding error, only overallocate the buffer by +25%
instead of +100%
2012-11-07 00:36:38 +01:00
Victor Stinner
64e039af02
Issue #16414 : Fix test_os on Windows, don't test os.listdir() with undecodable
...
With the ANSI code page 932, os.listdir(b'\xe7') return an empty list (instead
of failing), whereas os.listdir(b'\xff') raises a FileNotFoundError.
It looks like a Windows bug: b'\xe7' directory does not exist,
FindFirstFileA(b'\xe7') fails with ERROR_FILE_NOT_FOUND (2), instead of
ERROR_PATH_NOT_FOUND (3).
2012-11-07 00:10:14 +01:00
Stefan Krah
8198f5d58e
Merge.
2012-11-06 23:55:58 +01:00