Commit Graph

5085 Commits

Author SHA1 Message Date
Gregory P. Smith
9f12d468f4 Fix possible integer overflow in lchown and fchown functions. For issue1747858. 2009-12-23 09:31:11 +00:00
Mark Dickinson
1730fdc130 Inverse hyperbolic trigonometric functions should call m_log1p, not log1p. 2009-12-21 15:40:33 +00:00
Mark Dickinson
12748b003c Issue #7518: Move substitute definitions of C99 math functions from
pymath.c to Modules/_math.c.
2009-12-21 15:22:00 +00:00
Mark Dickinson
bd335bfce7 Additional edge-case tests for test_long_and_overflow. 2009-12-21 12:15:48 +00:00
Mark Dickinson
ed02b3f342 Fix reference counts for test_long_and_overflow. 2009-12-21 11:31:54 +00:00
Mark Dickinson
e31d300664 Issue #7528: Backport PyLong_AsLongAndOverflow from py3k to trunk.
Thanks Case Van Horsen for the patch.
2009-12-21 11:21:25 +00:00
Mark Dickinson
b5e348b305 Add missing tests for PyArg_Parse* with format 'h' 2009-12-20 15:57:56 +00:00
Mark Dickinson
5698977186 math.factorial depends on PyLong_AsLong correctly converting floats; rewrite
it to do the conversion explicitly instead.  See issue #7550.
2009-12-20 13:58:18 +00:00
Antoine Pitrou
e812d29b52 Issue #7545: improve documentation of the buffering argument in io.open(). 2009-12-19 21:01:10 +00:00
Mark Dickinson
5ff37ae14b Issue #3366: Add error function and complementary error function to
math module.
2009-12-19 11:07:23 +00:00
Mark Dickinson
9cae178f21 Issue #3366: Add expm1 function to math module. Thanks Eric Smith for
testing on Windows.
2009-12-16 20:13:40 +00:00
Benjamin Peterson
001e4a6c07 add a test of loading the datetime capi 2009-12-13 21:27:53 +00:00
Benjamin Peterson
aef189939e remove unused variable 2009-12-13 19:27:02 +00:00
Benjamin Peterson
ddd392cbb9 accept None as the same as having passed no argument in file types #7349
This is for consistency with imitation file objects like StringIO and BytesIO.

This commit also adds a few tests, where they were lacking for concerned
methods.
2009-12-13 19:19:07 +00:00
Mark Dickinson
9be87bc992 Issue #3366: Add lgamma function to math module. 2009-12-11 17:29:33 +00:00
Raymond Hettinger
a5fd24e97d Add a reverse() method to collections.deque(). 2009-12-10 06:42:54 +00:00
Raymond Hettinger
0b3263b073 Fix variants of deque.extend: d.extend(d) d+=d d.extendleft(d) 2009-12-10 06:00:33 +00:00
Antoine Pitrou
187177fc55 Issue #6986: Fix crash in the JSON C accelerator when called with the
wrong parameter types.  Patch by Victor Stinner.
2009-12-08 15:40:51 +00:00
Antoine Pitrou
30b3b35cba Issue #7333: The posix module gains an initgroups() function providing
access to the initgroups(3) C library call on Unix systems which implement
it.  Patch by Jean-Paul Calderone.
2009-12-02 20:37:54 +00:00
Amaury Forgeot d'Arc
d728871ee1 #7419: Fix a crash on Windows in locale.setlocale() when the category
is outside the allowed range.
2009-12-01 21:51:04 +00:00
Raymond Hettinger
9b4197ba53 Handle step values other than one. 2009-11-30 21:13:52 +00:00
Raymond Hettinger
e09f45a2e3 Issue 7410: deepcopy of itertools.count resets the count 2009-11-30 19:44:40 +00:00
Mark Dickinson
5afa6d4dcf Issue #7272, continued: don't re-use existing HAVE_BROKEN_POSIX_SEMAPHORES
to indicate that semaphores aren't available;  define a new variable
POSIX_SEMAPHORES_NOT_ENABLED instead.
2009-11-28 10:44:20 +00:00
Martin v. Löwis
50ea4565bd Issue #6508: Add posix.{getresuid,getresgid,setresuid,setresgid}. 2009-11-27 13:56:01 +00:00
Antoine Pitrou
bcfaf8007d Issue #5788: datetime.timedelta objects get a new total_seconds() method returning
the total number of seconds in the duration.  Patch by Brian Quinlan.
2009-11-25 22:59:36 +00:00