Benjamin Peterson
9743b2c2b5
give non-iterable TypeError a message ( closes #20507 )
12 years ago
Serhiy Storchaka
1f9d11b986
Issue #19255 : Clear error after failed PyDict_SetItem() on shutdown.
This silences a Coverity complain.
12 years ago
Serhiy Storchaka
505ff755d7
Issue #20437 : Fixed 21 potential bugs when deleting objects references.
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
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang line to use python3 executable in the unittestgui script.
12 years ago
Serhiy Storchaka
c836a28cc1
Issue #17576 : Removed deprecation warnings added in changeset 618cca51a27e.
12 years ago
Victor Stinner
c9362cf86a
Issue #19969 : PyBytes_FromFormatV() now raises an OverflowError if "%c"
argument is not in range [0; 255].
12 years ago
Victor Stinner
1310510793
Issue #14432 : Generator now clears the borrowed reference to the thread state
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
12 years ago
Serhiy Storchaka
31a655411a
Issue #17576 : Deprecation warning emitted now when __int__() or __index__()
return not int instance. Introduced _PyLong_FromNbInt() and refactored
PyLong_As*() functions.
12 years ago
Alexandre Vassalotti
65846c6c51
Issue #6477 : Keep PyNotImplemented_Type and PyNone_Type private.
12 years ago
Alexandre Vassalotti
19b6fa6ebb
Issue #6477 : Added support for pickling the types of built-in singletons.
12 years ago
Alexandre Vassalotti
1a83070d9e
Issue #19088 : Fix incorrect caching of the copyreg module.
This fix does not cause any degradation in performance.
12 years ago
Benjamin Peterson
0ee22bf774
fix format spec recursive expansion ( closes #19729 )
12 years ago
Gregory P. Smith
0e524047e2
Remove an errant extra \ within a docstring.
12 years ago
Raymond Hettinger
97fc2ba6bf
Document that @property can incorporate a docstring from the getter method. Improve readabilty with additional whitespace.
12 years ago
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