52249 Commits

Author SHA1 Message Date
Victor Stinner
b960b34577 PyUnicode_AsUTF32String() calls directly _PyUnicode_EncodeUTF32(),
instead of calling the deprecated PyUnicode_EncodeUTF32() function
2011-11-20 19:12:52 +01:00
Victor Stinner
77faf69ca1 _PyUnicode_CheckConsistency() also checks maxchar maximum value,
not only its minimum value
2011-11-20 18:56:05 +01:00
Victor Stinner
d5c4022d2a Remove the two ugly and unused WRITE_ASCII_OR_WSTR and WRITE_WSTR macros 2011-11-20 18:41:31 +01:00
Victor Stinner
2e9cfadd7c Reuse surrogate macros in UTF-16 decoder 2011-11-20 18:40:27 +01:00
Victor Stinner
9343999597 Fix PyUnicode_CopyCharacters() doc 2011-11-20 18:29:14 +01:00
Victor Stinner
ae4f7c8e59 charmap_encoding_error() uses the new Unicode API 2011-11-20 18:28:55 +01:00
Victor Stinner
7c8bbbbb0c Ensure that Py_UCS4 is 32 bits and Py_UCS2 is 16 bits 2011-11-20 18:28:29 +01:00
Victor Stinner
46606ce870 Document new and deprecated Unicode functions 2011-11-20 18:27:55 +01:00
Victor Stinner
b4938aaf15 Document PyUnicode_WCHAR_KIND 2011-11-20 18:27:28 +01:00
Victor Stinner
ac931b1e5b Use PyUnicode_EncodeCodePage() instead of PyUnicode_EncodeMBCS() with
PyUnicode_AsUnicodeAndSize()
2011-11-20 18:27:03 +01:00
Victor Stinner
22168998f5 charmap encoders uses Py_UCS4, not Py_UNICODE 2011-11-20 17:09:18 +01:00
Éric Araujo
54e26c01b0 Update list of trove classifiers 2011-11-20 16:01:35 +01:00
Petri Lehtinen
aadc519ceb Merge branch 3.2 (closes #13338) 2011-11-19 22:04:33 +02:00
Petri Lehtinen
8d40f16a60 Issue #13338: Handle all enumerations in _Py_ANNOTATE_MEMORY_ORDER
This allows compiling extension modules with -Wswitch-enum on gcc.
Initial patch by Floris Bruynooghe.
2011-11-19 22:03:10 +02:00
Mark Dickinson
b96172e2cf Issue #9530: Fix undefined behaviour due to signed overflow in testcapi_long.h. 2011-11-19 17:58:15 +00:00
Mark Dickinson
895d181128 Issue #12245 merge. 2011-11-19 16:27:22 +00:00
Mark Dickinson
b1e58fe43f Issue #12245: Document sys.float_info.rounds better. 2011-11-19 16:26:45 +00:00
Charles-François Natali
e6eabd4345 Issue #13215: multiprocessing.Connection: don't hammer the remote end with
retries in case of ECONNREFUSED.
2011-11-19 09:59:43 +01:00
Antoine Pitrou
e532456965 Issue #13393: In TextIOWrapper.read(n), try to read n characters as
once rather than limit ourselves to the default chunk size.
2011-11-19 00:39:01 +01:00
Antoine Pitrou
f34a0cdc6c Issue #10227: Add an allocation cache for a single slice object.
Patch by Stefan Behnel.
2011-11-18 20:14:34 +01:00
Ezio Melotti
2251a3d233 #13387: merge with 3.2. 2011-11-18 19:01:01 +02:00
Ezio Melotti
fabf0275a9 #13387: add note about checking the exact type in assertIsInstance doc. 2011-11-18 18:59:36 +02:00
Ezio Melotti
4a7abe7ca6 #11112: merge with 3.2. 2011-11-18 18:35:53 +02:00
Ezio Melotti
7f78ddc3ad #11112: Fix typo in a base class in test_socket. 2011-11-18 18:33:14 +02:00
Ezio Melotti
304261e85d #13358: merge with 3.2. 2011-11-18 18:02:59 +02:00
Ezio Melotti
15cb489234 #13358: HTMLParser now calls handle_data only once for each CDATA. 2011-11-18 18:01:49 +02:00
Ezio Melotti
def4728fd6 #4147: merge with 3.2. 2011-11-18 17:36:07 +02:00
Ezio Melotti
8008f2aba0 #4147: minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg. 2011-11-18 17:34:26 +02:00
Ezio Melotti
4d5d4e2855 #13426: merge with 3.2. 2011-11-18 13:52:37 +02:00
Ezio Melotti
e62aad3073 #13426: fix typos in pickle doc. 2011-11-18 13:51:10 +02:00
Ezio Melotti
adc417ce36 #13406: fix more deprecation warnings and move the deprecation of unicode-internal earlier in the code. 2011-11-17 12:23:34 +02:00
Antoine Pitrou
5a8bc6f7f9 Add a couple other whatsnew items 2011-11-17 02:20:48 +01:00
Antoine Pitrou
2c0a967f8e Add various items in whatsnew 2011-11-17 02:09:13 +01:00
Antoine Pitrou
45b3ad420d Remove XXX, as the functions and macros are mentioned in the porting section 2011-11-17 02:00:19 +01:00
Antoine Pitrou
beb7836260 Explain concrete (resource consumption) effects of PEP 393 a bit. 2011-11-17 01:59:51 +01:00
Antoine Pitrou
d136aecd1f Be a bit less shy 2011-11-17 01:48:06 +01:00
Victor Stinner
74168975cc socket_gethostname() uses a wchar_t* with PyMem_Malloc() to avoid the
old Unicode API.
2011-11-17 01:11:36 +01:00
Victor Stinner
ee587eaa36 Catch PyUnicode_AS_UNICODE() errors in fileutils.c 2011-11-17 00:51:38 +01:00
Victor Stinner
1f7951711c Catch PyUnicode_AS_UNICODE() errors 2011-11-17 00:45:54 +01:00
Victor Stinner
6f9568bb1f Fix misused of "PyUnicodeObject" structure name in unicodeobject.h 2011-11-17 00:12:44 +01:00
Victor Stinner
f7c5ae2257 Issue #13374: Deprecate os.getcwdb() on Windows 2011-11-16 23:43:07 +01:00
Ezio Melotti
345379a7f8 #13406: correct the error message in check_warnings too. 2011-11-16 09:54:19 +02:00
Ezio Melotti
11060a4a48 #13406: silence deprecation warnings in test_codecs. 2011-11-16 09:39:10 +02:00
Eli Bendersky
27c2a861ee fixing typos in optparse doc 2011-11-16 06:03:09 +02:00
Eli Bendersky
eeae1498aa fixing typos in optparse doc 2011-11-16 06:02:21 +02:00
Antoine Pitrou
56a220ae4e Issue #13393: BufferedReader.read1() now asks the full requested size to
the raw stream instead of limiting itself to the buffer size.
2011-11-16 00:56:10 +01:00
Victor Stinner
2821644d8a Issue #13374: Skip deprecation tests for os.symlink() on Windows XP
To avoid a NotImplementedError('CreateSymbolicLinkW not found') error.
2011-11-16 00:34:44 +01:00
Victor Stinner
19bd0698e5 What's New in 3.3: Add a "Deprecated ..." section 2011-11-16 00:18:57 +01:00
Victor Stinner
040e16e3e8 "unicode_internal" codec has been deprecated: fix related tests 2011-11-15 22:44:05 +01:00
Antoine Pitrou
8ab440e477 Merge 2011-11-15 22:27:43 +01:00