Benjamin Peterson
67dafd5c20
[2.7] Issue GH-18560: Fix potential NULL pointer dereference in sum(). (GH-8892)
...
(cherry picked from commit 704e2d374f )
Co-authored-by: Christian Heimes <christian@cheimes.de >
2018-08-23 22:28:39 -07:00
Miss Islington (bot)
45ee452751
closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in builtin_sum_impl() (GH-8872)
...
Reported by Svace static analyzer.
(cherry picked from commit 2b824b2538 )
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru >
2018-08-24 01:13:19 -04:00
Serhiy Storchaka
48c8bf21f9
[2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479)
2018-07-31 09:09:36 +03:00
Mariatta
9b7b3a6456
bpo-32674: Improve the docstring for __import__ (GH-5339) (GH-5494)
...
Clarify that the level argument is used to determine whether to
perform absolute or relative imports: 0 is absolute, while a positive number
is the number of parent directories to search relative to the current module..
(cherry picked from commit 461d225b19 )
Co-authored-by: oldk <oldk1331@users.noreply.github.com >
2018-02-02 11:23:53 -05:00
Serhiy Storchaka
6ed7aff894
[2.7] bpo-29526: Add reference to help('FORMATTING') in format() builtin (GH-166). ( #3492 )
...
(cherry picked from commit 2e6bb4484e )
2017-09-11 09:26:39 +03:00
Mariatta
536209ef92
bpo-23787: Change sum() docstring from sequence to iterable (GH-1859)
...
* bpo-23787: Change sum() docstring from sequence to iterable
Original patch by Raymond Hettinger.
2017-06-06 09:12:03 -07:00
Martin Panter
ca56dd4767
Issue #28139 : Fix messed up indentation
...
Also update the classmethod and staticmethod doc strings and comments to
match the RST documentation.
2016-09-17 07:54:55 +00:00
Zachary Ware
fd58349556
Issue #26874 : Simplify the divmod docstring.
...
Now it actually matches the prose docs.
2016-04-28 14:38:48 -05:00
Zachary Ware
64f8c7ec4f
Issue #26874 : Make divmod docstring and full doc match
2016-04-28 14:23:48 -05:00
Serhiy Storchaka
6156560e4b
Issue #25678 : Copy buffer objects to null-terminated strings.
...
Avoid buffer overreads when int(), long(), float(), and compile()
are passed buffer objects. Similar code is removed from the
complex() constructor, where it was not reachable.
Patch backported from issue #24802 by Eryk Sun.
2015-11-20 21:56:21 +02:00
Terry Jan Reedy
9f2dcd227c
Issue #19362 : Tweek len() doc and docstring to expand the indicated range of
...
arguments. Original patch by Gareth Rees.
2014-06-16 03:05:30 -04:00
R David Murray
f7c8584545
#18424 : PEP8ify the tense of the sum docstring.
2013-07-10 16:23:15 -04:00
Ezio Melotti
94bf697b01
#17178 : update any()/all() docstrings to document their behavior with empty iterables. Patch by Ankur Ankan.
2013-02-15 23:35:14 +02:00
Chris Jerdonek
ad4b000179
Issue #14783 : Backport changes from 3.2.
2012-10-07 20:37:54 -07:00
Stefan Krah
a8857af37b
Issue #15741 : Fix potential NULL dereference. Found by Coverity.
2012-08-20 17:31:22 +02:00
Antoine Pitrou
c5bef75c77
Issue #15604 : Update uses of PyObject_IsTrue() to check for and handle errors correctly.
...
Patch by Serhiy Storchaka.
2012-08-15 23:16:51 +02:00
R David Murray
59488d233b
Closes #9254 : backport __import__ docstring/doc mentions of importlib.
...
Patch by Éric Araujo.
2012-07-18 19:44:08 -04:00
Martin v. Löwis
ed11a5d018
Issue #8767 : Restore building with --disable-unicode.
...
Original patch by Stefano Taschini.
2012-05-20 10:42:17 +02:00
Benjamin Peterson
a5ae1f0c25
remove py3k warning for callable
2011-11-06 08:20:12 -05:00
Raymond Hettinger
39540a0226
Improve docstring for divmod()
2011-07-19 11:59:20 -07:00
Victor Stinner
ba8b3a2ca7
Close #12501 : Adjust callable() warning: callable() is only not supported in
...
Python 3.1. callable() is again supported in Python 3.2.
2011-07-08 02:07:45 +02:00
Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
2010-05-09 14:46:46 +00:00
Mark Dickinson
ef9b4abfea
Fix trailing whitespace.
2010-05-04 16:19:06 +00:00
Mark Dickinson
a8d2668818
Issue #1533 : fix inconsistency in range function argument processing:
...
any non-float non-integer argument is now converted to an integer (if
possible) using its __int__ method. Previously, only small arguments
were treated this way; larger arguments (those whose __int__ was
outside the range of a C long) would produce a TypeError.
Patch by Alexander Belopolsky (with minor modifications).
2010-05-04 16:18:25 +00:00
Benjamin Peterson
5f429e0227
account for PyObject_IsInstance's new ability to fail
2009-12-13 00:54:15 +00:00