Victor Stinner
785938eebd
Move the slowest UTF-8 decoder to its own subfunction
* Create decode_utf8_errors()
* Reuse unicode_fromascii()
* decode_utf8_errors() doesn't refit at the beginning
* Remove refit_partial_string(), use unicode_adjust_maxchar() instead
15 years ago
Victor Stinner
84def3774d
Fix error handling in resize_compact()
15 years ago
Benjamin Peterson
8bbe788deb
merge heads
15 years ago
Benjamin Peterson
2122cf717f
alias resource.error to OSError
15 years ago
Giampaolo Rodola'
836e9aab2f
fix #13563 : make use of with statement in ftplib.py where needed
15 years ago
Florent Xicluna
313b2ad1a8
Fix imports in xml.dom.
15 years ago
Lars Gustäbel
0a9dd2f11d
Issue #5689 : Add support for lzma compression to the tarfile module.
15 years ago
Benjamin Peterson
ce2af33562
merge 3.2
15 years ago
Benjamin Peterson
b870aa1255
we're always going to have gc
15 years ago
Benjamin Peterson
d3a345a21f
merge 3.2
15 years ago
Benjamin Peterson
964561bb7c
you can't get resource.error if you can't import resource
15 years ago
Victor Stinner
10a6ddb062
Issue #11886 : Fix also test_time for the non-DST timezone name (EST/AEST)
15 years ago
Charles-François Natali
1635e9cc59
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
15 years ago
Charles-François Natali
13859bfedc
Issue #13453 : Catch EAI_FAIL in support.transient_internet.
15 years ago
Florent Xicluna
7f1c15b854
Fix comment in difflib.
15 years ago
Lars Gustäbel
c67c0b0db1
Merge with 3.2: Fix doc typo.
15 years ago
Lars Gustäbel
0c6cbbd632
Fix doc typo.
15 years ago
Florent Xicluna
67317750af
Issue #13248 : turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd).
15 years ago
Florent Xicluna
720682efd1
Merge 3.2
15 years ago
Florent Xicluna
5126df602c
Remove obsolete py3k comment.
15 years ago
Florent Xicluna
0e686cbb7d
Fix docstring typo.
15 years ago
Antoine Pitrou
a9e9abb8ef
Issue #13528 : rework the performance question in the programming FAQ
15 years ago
Antoine Pitrou
432259feea
Issue #13528 : rework the performance question in the programming FAQ
15 years ago
Florent Xicluna
1b7458b2a1
Closes #2979 : add parameter 'use_builtin_types' to the SimpleXMLRPCServer.
15 years ago
Victor Stinner
e3b47152a4
Write tests for invalid characters (U+00110000)
Test the following functions:
* codecs.raw_unicode_escape_decode()
* PyUnicode_FromWideChar()
* PyUnicode_FromUnicode()
* "unicode_internal" and "unicode_escape" decoders
15 years ago
Victor Stinner
db6238964d
(Merge 3.2) Issue #5905 : time.strftime() is now using the locale encoding,
instead of UTF-8, if the wcsftime() function is not available.
15 years ago
Victor Stinner
720f34a3e8
Issue #5905 : time.strftime() is now using the locale encoding, instead of
UTF-8, if the wcsftime() function is not available.
15 years ago
Victor Stinner
7f54f75900
Issue #13441 : Enable the workaround for Solaris locale bug
Skip locales triggering the mbstowcs() bug. I collected the locale list thanks
my previous commit:
* hu_HU (ISO8859-2): character U+30000020
* de_AT (ISO8859-1): character U+30000076
* cs_CZ (ISO8859-2): character U+30000020
* sk_SK (ISO8859-2): character U+30000020
* pl_PL (ISO8859-2): character U+30000020
* fr_CA (ISO8859-1): character U+30000020
15 years ago
Victor Stinner
69291c4af0
Issue #13441 : Skip some locales (e.g. cs_CZ and hu_HU) on Solaris to workaround
a mbstowcs() bug. For example, on Solaris, the hu_HU locale uses the locale
encoding ISO-8859-2, the thousauds separator is b'\xA0' and it is decoded as
U+30000020 (an invalid character) by mbstowcs().
The workaround is not enabled yet (commented): I would like first to get
more information about the failing locales.
15 years ago
Victor Stinner
5446bba269
Issue #13441 : Don't test the hu_HU locale on Solaris to workaround a mbstowcs()
bug. On Solaris, if the locale is hu_HU (and if the locale encoding is not
UTF-8), the thousauds separator is b'\xA0' which is decoded as U+30000020
instead of U+0020 by mbstowcs().
15 years ago
Nadeem Vawda
3459922c1b
What's New in Python 3.3: Add entry for lzma module (issue #6715 ).
15 years ago
Victor Stinner
b6821013df
Document PyUnicode_Copy() and PyUnicode_EncodeCodePage()
15 years ago
Victor Stinner
d1be878d7b
What's New in Python 3.3: Add a Deprecated section
15 years ago
Victor Stinner
706141316a
Issue #13441 : Log the locale when localeconv() fails
15 years ago
Stefan Krah
221ea5d931
Merge fix for issue #13547 .
15 years ago
Stefan Krah
383dd58533
Issue #13547 : clean Lib/_sysconfigdata.py and Modules/_testembed
15 years ago
Stefan Krah
2ac5fac268
Merge.
15 years ago
Stefan Krah
9a17cc3c53
Merge second fix for issue #11149 .
15 years ago
Stefan Krah
af04ff2b97
Issue #11149 : Also enable -fwrapv if $CC is a full path
or has a trailing version number.
15 years ago
Victor Stinner
8faf8216e4
PyUnicode_FromWideChar() and PyUnicode_FromUnicode() raise a ValueError if a
character in not in range [U+0000; U+10ffff].
15 years ago
Victor Stinner
bc9f0c68f5
(Merge 3.2) Issue #11886 : workaround an OS bug (time zone data) in test_time
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
15 years ago
Victor Stinner
0cd479074d
Issue #11886 : workaround an OS bug (time zone data) in test_time
Australian Eastern Standard Time (UTC+10) is called "EST" (as Eastern Standard
Time, UTC-5) instead of "AEST" on some operating systems (e.g. FreeBSD), which
is wrong. See for example this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810
15 years ago
Victor Stinner
0c4fbff6a7
libpython.py: defer call to gdb.lookup_type('PyUnicodeObject')
The lookup fails at startup if Python is linked to a shared library.
15 years ago
Charles-François Natali
1659b83b1d
Followup to a541bda2f5e2: Add a short comment.
15 years ago
Ezio Melotti
96e76775bc
#13531 : merge with 3.2.
15 years ago
Ezio Melotti
eb5879414d
#13531 : add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
15 years ago
Charles-François Natali
7c0b0cc9f9
Issue #11051 : Reduce the number of syscalls per import.
15 years ago
Ned Deily
3be637e67f
Issue #8641 : Update IDLE 3 syntax coloring to recognize b".." and not u"..".
(Patch by Tal Einat)
15 years ago
Ned Deily
2f0ad742b5
Issue #8641 : Update IDLE 3 syntax coloring to recognize b".." and not u"..".
(Patch by Tal Einat)
15 years ago
Antoine Pitrou
4ce6aa4ba7
Fix dangling whitespace
15 years ago