Serhiy Storchaka
7aa690860e
Issue #25709 : Fixed problem with in-place string concatenation and utf-8 cache.
10 years ago
Serhiy Storchaka
d65c9496da
Issue #25523 : Further a-to-an corrections.
10 years ago
Serhiy Storchaka
28b21e50c8
Issue #24848 : Fixed bugs in UTF-7 decoding of misformed data:
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
11 years ago
Zachary Ware
79b98df023
Issue #21279 : Flesh out str.translate docs
Initial patch by Kinga Farkas, Martin Panter, and John Posner.
11 years ago
Antoine Pitrou
f6d1f1fa8a
Fix some compilation warnings when using gcc (-Wmaybe-uninitialized).
11 years ago
Serhiy Storchaka
48070c1248
Issue #23803 : Fixed str.partition() and str.rpartition() when a separator
is wider then partitioned string.
11 years ago
Benjamin Peterson
e5a853c390
use PyMem_NEW to detect overflow ( closes #23362 )
11 years ago
Serhiy Storchaka
e55181f517
Issue #23490 : Fixed possible crashes related to interoperability between
old-style and new API for string with 2**30-1 characters.
11 years ago
Serhiy Storchaka
1a1ff29659
Issue #23446 : Use PyMem_New instead of PyMem_Malloc to avoid possible integer
overflows. Added few missed PyErr_NoMemory().
11 years ago
Serhiy Storchaka
aed198426a
Issue #23055 : Fixed read-past-the-end error in PyUnicode_FromFormatV.
11 years ago
Serhiy Storchaka
4dbc305002
Issue #23055 : Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
and fix by Guido Vranken.
11 years ago
Serhiy Storchaka
3f95292be6
Issue #23055 : Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
and fix by Guido Vranken.
11 years ago
Serhiy Storchaka
7e4b9057b3
Issue #23321 : Fixed a crash in str.decode() when error handler returned
replacment string longer than mailformed input data.
11 years ago
Serhiy Storchaka
d3faf43f9b
Issue #23181 : More "codepoint" -> "code point".
11 years ago
Serhiy Storchaka
b757c83ec6
Issue #22581 : Use more "bytes-like object" throughout the docs and comments.
11 years ago
Serhiy Storchaka
133b11b566
Issue #22975 : Close block at right place.
11 years ago
Antoine Pitrou
b6dc9b7554
Fixed signed/unsigned comparison warning
12 years ago
Benjamin Peterson
1e211ff10d
it suffices to check for PY_SSIZE_T_MAX overflow ( #22643 )
12 years ago
Benjamin Peterson
c0e64f5027
make sure length is unsigned
12 years ago
Benjamin Peterson
e1bd38c03c
fix integer overflow in unicode case operations ( closes #22643 )
12 years ago
Georg Brandl
ff3e5e3779
Fix unicode_aswidechar() for 4b unicode and 2b wchar_t (AIX).
12 years ago
Benjamin Peterson
736b8012b4
prevent overflow in unicode_repr ( closes #22520 )
12 years ago
Benjamin Peterson
a1c1be4e03
cleanup overflowing handling in unicode_decode_call_errorhandler and unicode_encode_ucs1 ( closes #22518 )
12 years ago
Victor Stinner
a33bce0945
Issue #21892 , #21893 : Partial revert of changeset 4f55e802baf0, PyErr_Format()
uses "%zd" for Py_ssize_t, not PY_FORMAT_SIZE_T
12 years ago
Victor Stinner
293f3f526d
Closes #21892 , #21893 : Use PY_FORMAT_SIZE_T instead of %zi or %zu to format C
size_t, because %zi/%u is not supported on all platforms.
12 years ago
Kristján Valur Jónsson
25dded041f
Make the various iterators' "setstate" sliently and consistently clip the
index. This avoids the possibility of setting an iterator to an invalid
state.
12 years ago
Serhiy Storchaka
94ee389308
Issue #19619 : Blacklist non-text codecs in method API
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.
The latter mechanism remains in place for third party non-text
encodings.
Backported changeset d68df99d7a57.
12 years ago
Benjamin Peterson
9743b2c2b5
give non-iterable TypeError a message ( closes #20507 )
12 years ago
Serhiy Storchaka
505ff755d7
Issue #20437 : Fixed 21 potential bugs when deleting objects references.
12 years ago
Larry Hastings
2623c8c23c
Issue #20530 : Argument Clinic's signature format has been revised again.
The new syntax is highly human readable while still preventing false
positives. The syntax also extends Python syntax to denote "self" and
positional-only parameters, allowing inspect.Signature objects to be
totally accurate for all supported builtins in Python 3.4.
12 years ago
Serhiy Storchaka
016a3f33a5
Issue #20538 : UTF-7 incremental decoder produced inconsistant string when
input was truncated in BASE64 section.
12 years ago
Larry Hastings
581ee3618c
Issue #20326 : Argument Clinic now uses a simple, unique signature to
annotate text signatures in docstrings, resulting in fewer false
positives. "self" parameters are also explicitly marked, allowing
inspect.Signature() to authoritatively detect (and skip) said parameters.
Issue #20326 : Argument Clinic now generates separate checksums for the
input and output sections of the block, allowing external tools to verify
that the input has not changed (and thus the output is not out-of-date).
12 years ago
Larry Hastings
c20472640c
Issue #20390 : Small fixes and improvements for Argument Clinic.
12 years ago
Larry Hastings
5c66189e88
Issue #20189 : Four additional builtin types (PyTypeObject,
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
12 years ago
Ethan Furman
a70805e1fa
Issue19995: fixed typo; switched from test.support.check_warnings to assertWarns
12 years ago
Ethan Furman
f9bba9c67f
Issue19995: issue deprecation warning for non-integer values to %c, %o, %x, %X
12 years ago
Larry Hastings
61272b77b0
Issue #19273 : The marker comments Argument Clinic uses have been changed
to improve readability.
12 years ago
Ethan Furman
df3ed242c0
Issue19995: %o, %x, %X now only accept ints
12 years ago
Serhiy Storchaka
3079328d29
Reverted changeset b72c5573c5e7 (issue #15027 ).
12 years ago
Serhiy Storchaka
583a93943c
Issue #15027 : Rewrite the UTF-32 encoder. It is now 1.6x to 3.5x faster.
12 years ago
Victor Stinner
fa4e68d425
Remove deadcode (HASH macro is no more defined)
12 years ago
Victor Stinner
92a419eea4
Remove now unused variables
12 years ago
Victor Stinner
f3b46b4a66
unicode_char() uses get_latin1_char() to get latin1 singleton characters
12 years ago
Victor Stinner
985a82a6d2
add unicode_char() in unicodeobject.c to factorize code
12 years ago
Larry Hastings
44e2eaab54
Issue #19674 : inspect.signature() now produces a correct signature
for some builtins.
12 years ago
Larry Hastings
ebdcb50b8a
Issue #19730 : Argument Clinic now supports all the existing PyArg
"format units" as legacy converters, as well as two new features:
"self converters" and the "version" directive.
12 years ago
Nick Coghlan
c72e4e6dcc
Issue #19619 : Blacklist non-text codecs in method API
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.
The latter mechanism remains in place for third party non-text
encodings.
12 years ago
Christian Heimes
985ecdcfc2
ssue #19183 : Implement PEP 456 'secure and interchangeable hash algorithm'.
Python now uses SipHash24 on all major platforms.
12 years ago
Victor Stinner
4a58707a34
Add _PyUnicodeWriter_WriteASCIIString() function
12 years ago
Serhiy Storchaka
58cf607d13
Issue #12892 : The utf-16* and utf-32* codecs now reject (lone) surrogates.
The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.
Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
12 years ago