Serhiy Storchaka
35804e4c63
Issue #19279 : UTF-7 decoder no more produces illegal strings.
12 years ago
Tim Peters
81a93159d7
Issue #19171 : speed some cases of 3-argument long pow().
Reduce the base by the modulus when the base is larger than
the modulus. This can unboundedly speed the "startup costs"
of doing modular exponentiation, particularly in cases where
the base is much larger than the modulus. Original patch
by Armin Rigo, inspired by https://github.com/pyca/ed25519 .
13 years ago
Ezio Melotti
7760b4eb4b
#19069 : use imperative mood in float object docstrings. Patch by Marco Buttu.
13 years ago
Ezio Melotti
488d244e1a
#19068 : use imperative mood in complex object docstrings. Patch by Marco Buttu.
13 years ago
Ezio Melotti
5792ce151c
#19067 : use imperative mood in range object docstrings. Patch by Marco Buttu.
13 years ago
Antoine Pitrou
60b183407c
Issue #19014 : memoryview.cast() is now allowed on zero-length views.
13 years ago
Raymond Hettinger
2ff2190b62
Issue #18594 : Fix the fast path for collections.Counter().
The path wasn't being taken due to an over-restrictive type check.
13 years ago
Tim Peters
eaa3bcc370
Issue #18942 : sys._debugmallocstats() output was damaged on Windows.
_PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format
code, but MS doesn't support that code. Interpolated
PY_FORMAT_SIZE_T in place of the "z".
13 years ago
Serhiy Storchaka
9594942716
Issue #18783 : Removed existing mentions of Python long type in docstrings,
error messages and comments.
13 years ago
Tim Peters
ec8147ba55
Various clarifications based on feedback & questions over the years.
(grafted from 23181bf411 )
13 years ago
Tim Peters
01e75a699d
Add line explaining the "%sort" test.
(grafted from 1ea833ecaf )
13 years ago
Raymond Hettinger
b1b915c796
Issue 18719: Remove a false optimization
Remove an unused early-out test from the critical path for
dict and set lookups.
When the strings already have matching lengths, kinds, and hashes,
there is no additional information gained by checking the first
characters (the probability of a mismatch is already known to
be less than 1 in 2**64).
13 years ago
Raymond Hettinger
c86d7e989c
Silence compiler warning for an unused declaration
13 years ago
Raymond Hettinger
e56666d17f
Silence compiler warning about an uninitialized variable
13 years ago
Serhiy Storchaka
f6d0aeeadc
Issue #16741 : Fix an error reporting in int().
13 years ago
Christian Heimes
c731bbe665
Propagate error when PyByteArray_Resize() fails in bytearray_translate()
CID 715334
13 years ago
Christian Heimes
26532f7519
Check return value of PyType_Ready(&EncodingMapType)
CID 486654
13 years ago
Serhiy Storchaka
8eeae2126c
Issue #18184 : PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
OverflowError when an argument of %c format is out of range.
13 years ago
Benjamin Peterson
7e30373126
remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value (see #18183 )
13 years ago
Benjamin Peterson
d2b58a9880
only recursively expand in the format spec ( closes #17644 )
13 years ago
Raymond Hettinger
36f74aa7f7
Issue #17563 : Fix dict resize performance regression.
13 years ago
Benjamin Peterson
e1b4cbc422
when arguments are cells clear the locals slot (backport of #17927 )
13 years ago
Antoine Pitrou
8b0e98426d
Issue #17237 : Fix crash in the ASCII decoder on m68k.
13 years ago
Antoine Pitrou
957a23b088
Issue #17408 : Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.
13 years ago
Ezio Melotti
6b02772c13
Remove trailing whitespace.
13 years ago
Mark Dickinson
c9734484ca
Issue #17715 : Add missing NULL Check to PyNumber_Long.
13 years ago
Mark Dickinson
64aafeb4de
Issue #16447 : Fix potential segfault when setting __name__ on a class.
13 years ago
Antoine Pitrou
36b045f4db
Fix supernumerary 's' in sys._debugmallocstats() output.
13 years ago
Benjamin Peterson
c9314d9e08
don't run frame if it has no stack ( closes #17669 )
13 years ago
Serhiy Storchaka
278d03bd66
Revert a premature patch for issue #14010 (changeset aaaf36026511).
13 years ago
Serhiy Storchaka
e8f706eda7
Issue #14010 : Fix a crash when iterating or deleting deeply nested filters
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
13 years ago
Benjamin Peterson
6395241471
list slotdefs in offset order rather than sorting them ( closes #17610 )
This means we can remove our usage of qsort() than relied on undefined behavior.
13 years ago
Benjamin Peterson
da2c7ebd23
allow any type with __getitem__ to be a mapping for the purposes of % ( #15801 )
13 years ago
Raymond Hettinger
378170d5d9
Issue 17447: Clarify that str.isidentifier doesn't check for reserved keywords.
13 years ago
Kristján Valur Jónsson
1d108bc714
Issue #10211 : Buffer object should support the new buffer interface.
13 years ago
Victor Stinner
2cb16aa3cb
_PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
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
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