Raymond Hettinger
9376c8b5e3
Fix typo in comment.
2014-08-01 23:51:51 -07:00
Victor Stinner
2af8d2f698
Issue #22023 : Fix %S, %R and %V formats of PyUnicode_FromFormat().
2014-07-30 00:39:05 +02:00
Benjamin Peterson
df71dcbef2
don't overwrite the error from PyObject_GetAttrString ( closes #4346 )
2014-06-26 23:27:41 -07:00
Benjamin Peterson
550b945fd6
avoid overflow with large buffer sizes and/or offsets ( closes #21831 )
2014-06-23 20:12:27 -07:00
Charles-François Natali
e4cda6ce21
Merge.
2014-06-19 22:45:09 +01:00
Charles-François Natali
cee4f03438
Issue #21810 : Backport mmap-based arena allocation failure check.
2014-06-19 22:42:51 +01:00
Raymond Hettinger
f643b9a9c7
Issue 8743: Improve interoperability between sets and the collections.Set abstract base class.
2014-05-25 22:13:41 -07:00
Antoine Pitrou
b0acc1b0a3
Issue #21350 : Fix file.writelines() to accept arbitrary buffer objects, as advertised.
...
Patch by Brian Kearns.
2014-05-08 19:26:04 +02:00
Kristján Valur Jónsson
be580f2e48
Issue #20434 Correct error handlin of _PyString_Resize and _PyBytes_Resize
2014-04-25 09:51:21 +00:00
Eric V. Smith
9a55cd8857
Issue #12546 : Allow \x00 as a fill character for builtin type __format__ methods.
2014-04-14 11:22:33 -04:00
Benjamin Peterson
c4e6e0a279
bail in unicode error's __str__ methods if the objects are not properly initialized ( closes #21134 )
2014-04-02 12:15:06 -04:00
Benjamin Peterson
18fc493409
fix expandtabs overflow detection to be consistent and not rely on signed overflow
2014-03-30 19:47:57 -04:00
Benjamin Peterson
8312eccd34
add braces and fix indentation
2014-03-30 19:23:24 -04:00
Benjamin Peterson
0e431b9311
fix indentation and add braces
2014-03-30 19:16:44 -04:00
Benjamin Peterson
7a91bf8675
give non-iterable TypeError a message ( closes #20507 )
2014-02-15 13:02:52 -05:00
Serhiy Storchaka
ee09d7c098
Issue #19255 : Clear error after failed PyDict_SetItem() on shutdown.
...
This silences a Coverity complain.
2014-02-12 09:54:48 +02:00
Serhiy Storchaka
98a9722e4a
Issue #20437 : Fixed 43 potential bugs when deleting objects references.
2014-02-09 13:14:04 +02:00
Benjamin Peterson
d16e01cf75
mmap obmalloc arenas so that they may be immediately returned to the system when unused ( closes #20494 )
2014-02-04 10:20:26 -05:00
Serhiy Storchaka
78ad6583d6
Circumventing a bug in glibc (issue #17976 ).
...
Patch by Jaakko Moisio.
2013-12-17 17:32:20 +02:00
Serhiy Storchaka
6d562319d2
Issue #17976 : Fixed potential problem with file.write() not detecting IO error
...
by inspecting the return value of fwrite(). Based on patches by Jaakko Moisio
and test by Victor Stinner.
2013-12-17 14:40:06 +02:00
Victor Stinner
66c6e9dcb4
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.
2013-12-13 02:37:09 +01:00
Alexandre Vassalotti
df9460f8dc
Issue #6477 : Revert fbb97f6eb3b3 as it broke test_xpickle.
2013-11-30 17:43:42 -08:00
Alexandre Vassalotti
a2934280e5
Issue #6477 : Added pickling support for singletons and their types.
2013-11-30 16:52:03 -08:00
Gregory P. Smith
9cfd4662fe
fix docstring. extra \.
2013-11-25 04:30:00 +00:00
Raymond Hettinger
ef153618d6
Document that @property can incorporate a docstring from the getter method. Improve readabilty with additional whitespace.
2013-11-24 14:43:04 -08:00
Serhiy Storchaka
f105672332
Issue #19279 : UTF-7 decoder no more produces illegal unicode strings.
2013-10-19 20:37:49 +03:00
Tim Peters
61e9ffa191
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 .
(grafted from f34c59494420765b013136ca93f63b716d9f1d30)
2013-10-05 16:53:52 -05:00
Ezio Melotti
38386149ab
#19069 : use imperative mood in float object docstrings. Patch by Marco Buttu.
2013-10-06 00:44:32 +03:00
Ezio Melotti
eb053167a8
#19068 : use imperative mood in complex object docstrings. Patch by Marco Buttu.
2013-10-06 00:39:18 +03:00
Tim Peters
59a06f5020
Various clarifications based on feedback & questions over the years.
2013-08-24 15:15:19 -05:00
Tim Peters
78cc8daa9b
Add line explaining the "%sort" test.
2013-08-22 18:32:53 -05:00
Raymond Hettinger
0e413bd288
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 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).
2013-08-13 18:34:49 -07:00
Serhiy Storchaka
e822b034e7
Issue #15866 : The xmlcharrefreplace error handler no more produces two XML
...
entities for a non-BMP character on narrow build.
2013-08-06 16:56:26 +03:00
Raymond Hettinger
007684a701
Silence compiler warning for unused declaration.
2013-08-04 22:35:37 -07:00
Ronald Oussoren
3687e8055c
Issue #18427 : str.replace could crash the interpreter with huge strings.
...
This fixes two places where 'int' was used to represent
the size of strings, instead of 'Py_ssize_t'.
(The issue is not present in the corresponding code in the 3.x branches)
Fixes #18427
2013-07-11 13:33:55 +02:00
Serhiy Storchaka
ba908c72a0
Issue #18184 : PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
...
OverflowError when an argument of %c format is out of range.
2013-06-23 20:22:09 +03:00
Victor Stinner
760388100e
Issue #18137 : Detect integer overflow on precision in float.__format__()
...
and complex.__format__().
2013-06-23 14:56:57 +02:00
Benjamin Peterson
b91ef008ba
add missing NULL check ( closes #18019 )
2013-05-19 19:38:12 -07:00
Mark Dickinson
f794b143d3
Issue #16447 : Fix potential segfault when setting __name__ on a class.
2013-04-13 15:19:05 +01:00
Benjamin Peterson
74001fad7d
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.
Backport by Zbigniew Halas.
2013-04-07 09:52:59 -04:00
Serhiy Storchaka
6c467a41bc
Revert a premature patch for issue #14010 (changeset d17d10c84d27).
2013-04-06 22:51:29 +03:00
Serhiy Storchaka
bb84565cdb
Issue #14010 : Fix a crash when iterating or deleting deeply nested filters
...
in itertools module (i.e. itertools.izip(), itertools.chain(), etc).
2013-04-06 22:04:10 +03:00
Benjamin Peterson
da2c7ebd23
allow any type with __getitem__ to be a mapping for the purposes of % ( #15801 )
2013-03-23 22:32:00 -05:00
Kristján Valur Jónsson
1d108bc714
Issue #10211 : Buffer object should support the new buffer interface.
2013-03-19 16:50:51 -07:00
Mark Dickinson
7cac1c25a1
Issue #16445 : Fix potential segmentation fault when deleting an exception message.
2013-03-03 11:13:34 +00:00
Benjamin Peterson
8e830a0664
fix building without pymalloc ( closes #17228 )
2013-02-20 16:54:30 -05:00
R David Murray
5aff27aec1
#7963 : fix error message when 'object' called with arguments.
...
Patch by Alexander Belopolsky.
2013-02-18 22:04:59 -05:00
Serhiy Storchaka
d5327d95d2
Issue #17043 : The unicode-internal decoder no longer read past the end of
...
input buffer.
2013-02-07 16:23:11 +02:00
Serhiy Storchaka
a8d64ae304
Issue #17034 : Use Py_CLEAR() in stringobject.c.
2013-02-02 18:43:58 +02:00
Gregory P. Smith
c0022b2d8c
Silence a -Wformat-extra-argument warning when compiling.
2013-02-01 16:13:27 -08:00