Eric V. Smith
5646648678
Issue 28128: Print out better error/warning messages for invalid string escapes. Backport to 3.6.
10 years ago
Serhiy Storchaka
7f0514ad54
Backed out changeset 6b88dfc7b25d
10 years ago
Eric V. Smith
42454af094
Issue 28128: Print out better error/warning messages for invalid string escapes.
10 years ago
Serhiy Storchaka
d1af5effc2
Issue #28385 : An error message when non-empty format spec is passed to
object.__format__ now contains the name of actual type.
10 years ago
Serhiy Storchaka
998c9cdd42
Issue #28561 : Clean up UTF-8 encoder: remove dead code, update comments, etc.
Patch by Xiang Zhang.
10 years ago
Serhiy Storchaka
0438683939
Backed out changeset 9f7505019767 (issue #27275 ).
10 years ago
Serhiy Storchaka
d76d8bfee1
Issue #28199 : Microoptimized dict resizing. Based on patch by Naoki Inada.
10 years ago
Yury Selivanov
684ef2c888
Issue #28544 : Pass `PyObject*` to _PyDict_Pop, not `PyDictObject*`
10 years ago
Serhiy Storchaka
0093907f0e
Issue #28426 : Deprecated undocumented functions PyUnicode_AsEncodedObject(),
PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and
PyUnicode_AsEncodedUnicode().
10 years ago
INADA Naoki
b1152be2de
Issue #28509 : dict.update() no longer allocate unnecessary large memory
10 years ago
Serhiy Storchaka
4832580596
Issue #27275 : Fixed implementation of pop() and popitem() methods in
subclasses of accelerated OrderedDict.
10 years ago
Serhiy Storchaka
c8bc3d1c07
Issue #28408 : Fixed a leak and remove redundant code in _PyUnicodeWriter_Finish().
Patch by Xiang Zhang.
10 years ago
Serhiy Storchaka
77eede35fc
Issue #28426 : Fixed potential crash in PyUnicode_AsDecodedObject() in debug build.
10 years ago
Serhiy Storchaka
2fbc019c8c
Issue #28439 : Remove redundant checks in PyUnicode_EncodeLocale and
PyUnicode_DecodeLocaleAndSize. Patch by Xiang Zhang.
10 years ago
Serhiy Storchaka
f8d7d41507
Issue #28511 : Use the "U" format instead of "O!" in PyArg_Parse*.
10 years ago
Serhiy Storchaka
523c449ca0
Issue #28504 : Cleanup unicode_decode_call_errorhandler_wchar/writer.
Patch by Xiang Zhang.
10 years ago
Raymond Hettinger
b12785d456
Reference the original compact-and-ordered proposal
10 years ago
Serhiy Storchaka
d5d32d2127
Issue #28214 : Improved exception reporting for problematic __set_name__
attributes.
10 years ago
Serhiy Storchaka
467ab194fc
Issue #28410 : Added _PyErr_FormatFromCause() -- the helper for raising
new exception with setting current exception as __cause__.
_PyErr_FormatFromCause(exception, format, args...) is equivalent to Python
raise exception(format % args) from sys.exc_info()[1]
10 years ago
Benjamin Peterson
8d761ff045
remove extra PyErr_Format arguments ( closes #28454 )
Patch from Xiang Zhang.
10 years ago
Christian Heimes
5cade88ac1
Check return value of _PyDict_SetItemId()
10 years ago
Victor Stinner
ebe17e0347
Fix _Py_normalize_encoding() command
It's not exactly the same than encodings.normalize_encoding(): the C function
also converts to lowercase.
10 years ago
Benjamin Peterson
b329e1bb5b
va_end vargs2 once ( closes #28417 )
10 years ago
doko@ubuntu.com
de69ee71e2
- dictobject.c: Make dict_merge symbol a static symbol
10 years ago
doko@ubuntu.com
c96df68ea3
- dictobject.c: Make dict_merge symbol a static symbol
10 years ago
Serhiy Storchaka
2e58f1a52a
Issue #28400 : Removed uncessary checks in unicode_char and resize_copy.
1. In resize_copy we don't need to PyUnicode_READY(unicode) since when
it's not PyUnicode_WCHAR_KIND it should be ready.
2. In unicode_char, PyUnicode_1BYTE_KIND is handled by get_latin1_char.
Patch by Xiang Zhang.
10 years ago
Serhiy Storchaka
49f5cdde1a
Issue #28183 : Optimize and cleanup dict iteration.
10 years ago
Serhiy Storchaka
9c0e1f83af
Issue #28379 : Added sanity checks and tests for PyUnicode_CopyCharacters().
Patch by Xiang Zhang.
10 years ago
Serhiy Storchaka
df53392f0d
Issue #28376 : Creating instances of range_iterator by calling range_iterator
type now is disallowed. Calling iter() on range instance is the only way.
Patch by Oren Milman.
10 years ago
Serhiy Storchaka
c7f490c8b1
Issue #28376 : Creating instances of range_iterator by calling range_iterator
type now is deprecated. Patch by Oren Milman.
10 years ago
Serhiy Storchaka
44759bcf13
Issue #28376 : The constructor of range_iterator now checks that step is not 0.
Patch by Oren Milman.
10 years ago
Serhiy Storchaka
8ef34600c7
Issue #26906 : Resolving special methods of uninitialized type now causes
implicit initialization of the type instead of a fail.
10 years ago
Serhiy Storchaka
de0574bdab
Issue #18287 : PyType_Ready() now checks that tp_name is not NULL.
Original patch by Niklas Koep.
10 years ago
INADA Naoki
267941c675
Issue #28201 : Dict reduces possibility of 2nd conflict in hash table.
Do perturb shift after first conflict.
10 years ago
Serhiy Storchaka
09f3d080fe
Issue #28350 : String constants with null character no longer interned.
10 years ago
Benjamin Peterson
8f657c35b9
ensure gc tracking is off when invoking weakref callbacks ( closes #26617 )
10 years ago
Serhiy Storchaka
e036ef8fa2
Issue #27358 : Optimized merging var-keyword arguments and improved error
message when pass a non-mapping as a var-keyword argument.
10 years ago
Serhiy Storchaka
00a0fc1144
Issue #27942 : String constants now interned recursively in tuples and frozensets.
10 years ago
Serhiy Storchaka
e9e44484a5
Issue #28289 : ImportError.__init__ now resets not specified attributes.
10 years ago
Serhiy Storchaka
47dee11ba7
Issue #21578 : Fixed misleading error message when ImportError called with
invalid keyword args.
10 years ago
Serhiy Storchaka
333ad92ec2
Issue #27914 : Fixed a comment in PyModule_ExcDef.
Patch by Xiang Zhang.
10 years ago
Serhiy Storchaka
97932e4c4f
issue #28144 : Decrease empty_keys_struct's dk_refcnt
since there is no dummy_struct any more.
Patch by Xiang Zhang.
10 years ago
Serhiy Storchaka
46825d2399
Issue #28194 : Clean up some checks in dict implementation.
Patch by Xiang Zhang.
10 years ago
Mark Dickinson
613f8e513c
Issue #28203 : Fix incorrect type in error message from complex(1.0, {2:3}). Patch by Soumya Sharma.
10 years ago
Benjamin Peterson
7b7228a709
remove unneeded cast
10 years ago
Serhiy Storchaka
afd02a439f
Issue #28214 : Now __set_name__ is looked up on the class instead of the
instance.
10 years ago
Victor Stinner
1ddf53d496
Fix PyUnicode_FromFormatV() error handling
Issue #28233 : Fix a memory leak if the format string contains a non-ASCII
character, destroy the unicode writer.
10 years ago
Christian Heimes
2f2fee19ec
va_end() all va_copy()ed va_lists.
10 years ago
Benjamin Peterson
0c21214f3e
replace usage of Py_VA_COPY with the (C99) standard va_copy
10 years ago
Raymond Hettinger
6692f01c91
merge
10 years ago