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
Mark Dickinson
3dc254181a
Issue #6985 : number of range() items should be constrained to lie
...
in a Py_ssize_t, not an int.
2009-12-03 12:08:56 +00:00
Mark Dickinson
bce783757f
round(0, "ermintrude") succeeded instead of producing a TypeError. Fix this.
2009-11-24 10:54:58 +00:00
Mark Dickinson
bd15a06fd3
Issue #7117 , continued: Change round implementation to use the correctly-rounded
...
string <-> float conversions; this makes sure that the result of the round
operation is correctly rounded, and hence displays nicely using the new float
repr.
2009-11-18 19:33:35 +00:00
Benjamin Peterson
90ed611f6d
a better callable replacement
2009-11-17 21:24:54 +00:00
Mark Dickinson
0e0e215308
Warn against replacing PyNumber_Add with PyNumber_InPlaceAdd in sum
2009-10-26 14:18:44 +00:00