Benjamin Peterson
00e9886bd9
Add PyDict_SetDefault. ( closes #17327 )
Patch by Stefan Behnel and I.
13 years ago
Victor Stinner
2cb16aa3cb
_PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
13 years ago
Victor Stinner
cf77da9fb5
Backed out changeset b9f7b1bf36aa
13 years ago
Victor Stinner
313cac88c5
Issue #17223 : Fix PyUnicode_FromUnicode() on Windows (16-bit wchar_t type)
to reject invalid UTF-16 surrogate.
13 years ago
Benjamin Peterson
b1efa53662
fix possible setdefault refleak ( closes #17328 )
13 years ago
Mark Dickinson
7cac1c25a1
Issue #16445 : Fix potential segmentation fault when deleting an exception message.
13 years ago
R David Murray
1cb0cb2fcd
#17296 : backport fix for issue 1692335, naive exception pickling.
13 years ago
Victor Stinner
d21b58c05d
Issue #17223 : Fix PyUnicode_FromUnicode() for string of 1 character outside
the range U+0000-U+10ffff.
13 years ago
Serhiy Storchaka
18809fa94e
Remove unused defines.
13 years ago
Benjamin Peterson
8e830a0664
fix building without pymalloc ( closes #17228 )
13 years ago
Benjamin Peterson
2dba1ee3e6
fix building without pymalloc ( closes #17228 )
13 years ago
Stefan Krah
674a42b114
Fix error messages.
13 years ago
R David Murray
5aff27aec1
#7963 : fix error message when 'object' called with arguments.
Patch by Alexander Belopolsky.
13 years ago
R David Murray
6b30759022
#7963 : fix error message when 'object' called with arguments.
Patch by Alexander Belopolsky.
13 years ago
Eric Snow
9d05c8c0e0
Issue #15022 : Ensure all pickle protocols are supported.
13 years ago
Eric Snow
b5c8f92782
Issue #15022 : Add pickle and comparison support to types.SimpleNamespace.
13 years ago
Serhiy Storchaka
5e61f14c6d
Issue #12983 : Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
13 years ago
Antoine Pitrou
4de7457009
Issue #17173 : Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag).
13 years ago
Victor Stinner
bbbac2ec34
Issue #17137 : When an Unicode string is resized, the internal wide character
string (wstr) format is now cleared.
13 years ago
Serhiy Storchaka
3fd4ab356d
Issue #17043 : The unicode-internal decoder no longer read past the end of
input buffer.
13 years ago
Serhiy Storchaka
d5327d95d2
Issue #17043 : The unicode-internal decoder no longer read past the end of
input buffer.
13 years ago
Serhiy Storchaka
f458a03617
Issue #17034 : Use Py_CLEAR() in bytesobject.c.
13 years ago
Serhiy Storchaka
a8d64ae304
Issue #17034 : Use Py_CLEAR() in stringobject.c.
13 years ago
Gregory P. Smith
ce9e3c3af9
Silence a -Wformat-extra-argument warning when compiling.
13 years ago
Gregory P. Smith
c0022b2d8c
Silence a -Wformat-extra-argument warning when compiling.
13 years ago
Serhiy Storchaka
afb1cb5579
Issue #16971 : Fix a refleak in the charmap decoder.
13 years ago
Serhiy Storchaka
d679377be7
Issue #16979 : Fix error handling bugs in the unicode-escape-decode decoder.
13 years ago
Serhiy Storchaka
c8e58126a2
Issue #16979 : Fix error handling bugs in the unicode-escape-decode decoder.
13 years ago
Mark Dickinson
07c7136524
Issue #16772 : in int(x, base), non-integer bases must have an __index__ method.
13 years ago
Ezio Melotti
3f5db3940f
Fix a few typos and a double semicolon. Patch by Eitan Adler.
13 years ago
Serhiy Storchaka
059972535f
Issue #10156 : In the interpreter's initialization phase, unicode globals
are now initialized dynamically as needed.
13 years ago
Serhiy Storchaka
c59c85c1ac
Issue #10156 : In the interpreter's initialization phase, unicode globals
are now initialized dynamically as needed.
13 years ago
Serhiy Storchaka
73e38809e0
Issue #16980 : Fix processing of escaped non-ascii bytes in the
unicode-escape-decode decoder.
13 years ago
Serhiy Storchaka
ace3ad3bf7
Issue #16975 : Fix error handling bug in the escape-decode bytes decoder.
13 years ago
Serhiy Storchaka
01b3a08f5e
Issue #16975 : Fix error handling bug in the escape-decode decoder.
13 years ago
Serhiy Storchaka
1d3acd4b59
Issue #16335 : Fix integer overflow in unicode-escape decoder.
13 years ago
Serhiy Storchaka
4f5f0e54e0
Issue #16335 : Fix integer overflow in unicode-escape decoder.
13 years ago
Serhiy Storchaka
926f3a37de
Issue #15989 : Fix possible integer overflow in str formatting as in unicode formatting.
13 years ago
Serhiy Storchaka
74f49ab28b
Issue #15989 : Fix several occurrences of integer overflow
when result of PyInt_AsLong() or PyLong_AsLong() narrowed
to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
13 years ago
Serhiy Storchaka
441d30fac7
Issue #15989 : Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
13 years ago
Raymond Hettinger
ac7b49f407
Improve tooltips by listing the most common argument pattern first.
13 years ago
Serhiy Storchaka
4fb8caee87
Issue #14850 : Now a chamap decoder treates U+FFFE as "undefined mapping"
in any mapping, not only in an unicode string.
13 years ago
Serhiy Storchaka
9599745e2c
Issue #14850 : Now a chamap decoder treates U+FFFE as "undefined mapping"
in any mapping, not only in an unicode string.
13 years ago
Serhiy Storchaka
18ba40b945
Check for NULL before the pointer aligning in fastsearch_memchr_1char.
There is no guarantee that NULL is aligned.
13 years ago
Serhiy Storchaka
7898043868
Issue #15989 : Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.
13 years ago
Benjamin Peterson
0c270a8bb7
correct static string clearing loop ( closes #16906 )
13 years ago
Serhiy Storchaka
48e188e573
Issue #11461 : Fix the incremental UTF-16 decoder. Original patch by
Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP
characters.
13 years ago
Serhiy Storchaka
c4b82c037e
Issue #11461 : Fix the incremental UTF-16 decoder. Original patch by
Amaury Forgeot d'Arc. Added tests for partial decoding of non-BMP
characters.
13 years ago
Serhiy Storchaka
dec798eb46
Fix out of bound read in UTF-32 decoder on "narrow Unicode" builds.
13 years ago
Serhiy Storchaka
c9631a14d7
Fix out of bound read in UTF-32 decoder on "narrow Unicode" builds.
13 years ago