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
Stefan Krah
cd81709b9e
Merge.
2012-11-06 23:51:42 +01:00
Victor Stinner
ab8b6bd7fb
Issue #16414 : Test more characters for support.FS_NONASCII
...
It should increase the probability of finding a non-ASCII character on any
locale encoding.
2012-11-06 23:43:21 +01:00
Victor Stinner
90a9d51137
Issue #16414 : Fix typo in support.TESTFN_NONASCII (useless space)
2012-11-06 23:40:22 +01:00
Stefan Krah
e84226ac23
Null merge.
2012-11-06 23:36:08 +01:00
Victor Stinner
8f049e5b5b
Issue #16414 : Fix support.TESTFN_UNDECODABLE and test_genericpath.test_nonascii_abspath()
...
* support.TESTFN_UNDECODABLE was decodable if the filesystem encoding was
cp932
* test_genericpath.test_nonascii_abspath() didn't work on Windows if the
path was not decodable (ex: with cp932)
2012-11-06 23:33:46 +01:00
Stefan Krah
c3fb3c3fa0
Backport fc8f1b1c76bf.
2012-11-06 23:27:24 +01:00
Victor Stinner
8b219b2936
Issue #16414 : Add support.FS_NONASCII and support.TESTFN_NONASCII
...
These constants are used to test functions with non-ASCII data, especially
filenames.
2012-11-06 23:23:43 +01:00
Tim Golden
df1d940c7c
Reversed changes from issue9584
2012-11-06 15:34:23 +00:00