| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2006-01-19 | Check return result from Py_InitModule*(). This API can fail. | Neal Norwitz | -0/+2 | |
| Probably should be backported. | ||||
| 2005-04-06 | Make that a C, not a C++, comment. | Michael W. Hudson | -1/+1 | |
| 2005-04-06 | Add a comment explaining the import of longintrepr.h. | Michael W. Hudson | -1/+1 | |
| 2004-03-22 | Patch #871657: Set EDOM for `nan' return values on FreeBSD and OpenBSD. | Hye-Shik Chang | -5/+5 | |
| This fixes a problem that math.sqrt(-1) doesn't raise math.error. | ||||
| 2003-11-19 | Getting rid of support for the ancient Apple MPW compiler. | Jack Jansen | -13/+0 | |
| 2003-10-12 | Simplify and speedup uses of Py_BuildValue(): | Raymond Hettinger | -6/+2 | |
| * Py_BuildValue("(OOO)",a,b,c) --> PyTuple_Pack(3,a,b,c) * Py_BuildValue("()",a) --> PyTuple_New(0) * Py_BuildValue("O", a) --> Py_INCREF(a) | ||||
| 2002-12-29 | SF patch #659536: Use PyArg_UnpackTuple where possible. | Raymond Hettinger | -2/+2 | |
| Obtain cleaner coding and a system wide performance boost by using the fast, pre-parsed PyArg_Unpack function instead of PyArg_ParseTuple function which is driven by a format string. | ||||
| 2002-12-14 | Apply SF patch 652930: Add optional base argument to math.log(x[, base]). | Raymond Hettinger | -15/+47 | |
| 2002-08-02 | Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype | Mark Hammond | -1/+1 | |
| for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches. | ||||
| 2002-06-13 | Patch #568124: Add doc string macros. | Martin v. Löwis | -18/+18 | |
| 2002-05-13 | Added degrees() and radians() to mathmodule. Closes patch 552452 and | Raymond Hettinger | -0/+27 | |
| feature request 426539. | ||||
| 2001-09-06 | Revert parts of patch #453627, documenting the resulting test failures | Martin v. Löwis | -17/+1 | |
| instead. | ||||
| 2001-09-05 | Rework the way we try to check for libm overflow, given that C99 no longer | Tim Peters | -29/+13 | |
| requires that errno ever get set, and it looks like glibc is already playing that game. New rules: + Never use HUGE_VAL. Use the new Py_HUGE_VAL instead. + Never believe errno. If overflow is the only thing you're interested in, use the new Py_OVERFLOWED(x) macro. If you're interested in any libm errors, use the new Py_SET_ERANGE_IF_OVERFLOW(x) macro, which attempts to set errno the way C89 said it worked. Unfortunately, none of these are reliable, but they work on Windows and I *expect* under glibc too. | ||||
| 2001-09-05 | Patch #453627: Define the following macros when compiling on a UnixWare 7.x ↵ | Martin v. Löwis | -1/+17 | |
| system: SCO_ATAN2_BUG, SCO_ACCEPT_BUG, and STRICT_SYSV_CURSES. Work aroudn a bug in the SCO UnixWare atan2() implementation. | ||||
| 2001-09-05 | loghelper(): Try to nudge the compiler into doing mults in an order that | Tim Peters | -1/+1 | |
| minimizes roundoff error. | ||||
| 2001-09-05 | Return reasonable results for math.log(long) and math.log10(long) (we were | Tim Peters | -4/+64 | |
| getting Infs, NaNs, or nonsense in 2.1 and before; in yesterday's CVS we were getting OverflowError; but these functions always make good sense for positive arguments, no matter how large). | ||||
| 2001-09-04 | Mechanical fiddling to make this easier to work with in my editor. | Tim Peters | -18/+12 | |
| Repaired the ldexp docstring (said the name of the func was "ldexp_doc"). | ||||
| 2001-08-07 | Part of SF patch [#431848] mathmodule.c: doc strings & conversion, from | Tim Peters | -15/+18 | |
| Peter Schneider-Kamp. Clarified some docstrings in the spirit of the patch; left out the degrees() and radians() functions (see the patch comments on SF). | ||||
| 2001-06-10 | annoying whitespace inconsistency | Peter Schneider-Kamp | -1/+1 | |
| 2000-10-12 | Repaired a comment and asserted a precondition. | Tim Peters | -1/+2 | |
| 2000-10-12 | Stop raising OverflowError on underflows reported by libm (errno==ERANGE and | Tim Peters | -18/+42 | |
| libm result is 0). Cautiously add a few libm exception test cases: 1. That exp(-huge) returns 0 without exception. 2. That exp(+huge) triggers OverflowError. 3. That sqrt(-1) raises ValueError specifically (apparently under glibc linked with -lieee, it was raising OverflowError due to an accident of the way mathmodule.c's CHECK() macro happened to deal with Infs and NaNs under gcc). | ||||
| 2000-09-16 | Fixed legit gripe from c.l.py that math.fmod docs aren't confusing enough. | Tim Peters | -1/+2 | |
| FRED, please check my monkey-see-monkey-do Tex fiddling! | ||||
| 2000-09-01 | REMOVED all CWI, CNRI and BeOpen copyright markings. | Guido van Rossum | -9/+0 | |
| This should match the situation in the 1.6b1 tree. | ||||
| 2000-09-01 | Do the absolute minimal amount of modifications to eradicate | Barry Warsaw | -2/+1 | |
| Py_FatalError() from module initialization functions. The importing mechanism already checks for PyErr_Occurred() after module importation and it Does The Right Thing. Unfortunately, the following either were not compiled or tested by the regression suite, due to issues with my development platform: almodule.c cdmodule.c mpzmodule.c puremodule.c timingmodule.c | ||||
| 2000-08-10 | remove all occurence of math.rint() from the sources | Peter Schneider-Kamp | -7/+0 | |
| (and yes, "Currintly" also counts <0.5 wink>) | ||||
| 2000-07-31 | merge Include/my*.h into Include/pyport.h | Peter Schneider-Kamp | -2/+0 | |
| marked my*.h as obsolete | ||||
| 2000-07-21 | Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)', | Thomas Wouters | -2/+2 | |
| and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;) | ||||
| 2000-07-03 | Typo repair in docstring -- my fault. | Tim Peters | -1/+1 | |
| 2000-07-03 | ANSI-fication, remove Py_PROTO, etc. | Fred Drake | -84/+74 | |
| Revise math_1(), math_2(), stub-generating macros, and function tables to use PyArg_ParseTuple() and properly provide the function name for error message generation. Fix pow() docstring for MPW 3.1; had said "power" instead of "pow". | ||||
| 2000-07-02 | Repair docs for math.frexp (they were wrong). | Tim Peters | -1/+3 | |
| Reported on c.l.py by Kirill Simonov. | ||||
| 2000-06-30 | Change copyright notice - 2nd try. | Guido van Rossum | -6/+0 | |
| 2000-06-30 | Change copyright notice. | Guido van Rossum | -21/+6 | |
| 2000-05-11 | The addition of rint() (by Peter Schneider-Kamp; I forgot to mention | Guido van Rossum | -0/+4 | |
| that before) in the previous patch has one problem; rint() is not in the C math library on all platforms (e.g. not for VC++). Make it conditional on HAVE_RINT. | ||||
| 2000-05-11 | Added math.rint() -- round according to current IEEE754 mode | Guido van Rossum | -0/+3 | |
| 2000-05-08 | Trent Mick: | Guido van Rossum | -4/+4 | |
| Fix overflow bug in ldexp(x, exp). The 'exp' argument maps to a C int for the math library call [double ldexp(double, int)], however the 'd' PyArg_ParseTuple formatter was used to yield a double, which was subsequently cast to an int. This could overflow. [GvR: mysteriously, on Solaris 2.7, ldexp(1, 2147483647) returns Inf while ldexp(1, 2147483646) raises OverflowError; this seems a bug in the math library (it also takes a real long time to compute the Inf outcome). Does this point to a bug in the CHECK() macro? It should have discovered that the result was outside the HUGE_VAL range.] | ||||
| 1998-12-08 | Correctly document atan2. | Guido van Rossum | -1/+1 | |
| 1998-12-04 | Added Doc strings -- by Chris Petrilli. | Guido van Rossum | -49/+96 | |
| 1998-12-04 | Add DL_EXPORT() to all modules that could possibly be used | Guido van Rossum | -1/+1 | |
| on BeOS or Windows. | ||||
| 1997-05-20 | Removed MetroWerks workaround, replaced by defines in mymath.h (Jack) | Guido van Rossum | -5/+0 | |
| 1997-03-14 | New form of PyFPE_END_PROTECT macro. | Guido van Rossum | -3/+3 | |
| 1997-02-14 | Changes for Lee Busby's SIGFPE patch set. | Guido van Rossum | -0/+6 | |
| Two new modules fpectl and fpetest. Surround various and sundry f.p. operations with PyFPE_*_PROTECT macros. | ||||
| 1996-12-18 | Removed references to getdoublearg and get2doublearg rename macros and | Roger E. Masse | -8/+5 | |
| substituted the appropriate PyArg_Parse calls. Retested. All appears well. | ||||
| 1996-12-18 | Correct *another* mistake (initmath() always fell through to fatal error). | Guido van Rossum | -0/+1 | |
| Watch it, Barry! :-) | ||||
| 1996-12-18 | Correct 1-char typo / syntax error. | Guido van Rossum | -1/+1 | |
| 1996-12-17 | Better error checking in initmath(). | Barry Warsaw | -2/+13 | |
| 1996-12-09 | Renamed | Barry Warsaw | -43/+42 | |
| 1996-10-25 | New permission notice, includes CNRI. | Guido van Rossum | -12/+19 | |
| 1996-08-29 | Move backup definition for hypot() to Python/hypot.c. | Guido van Rossum | -27/+0 | |
| 1996-08-21 | Avoid complaint about inconsistent hypot() linkage on NT. | Guido van Rossum | -0/+2 | |
| 1996-08-08 | Hack for Mac (where fabs is not usable as a function pointer). | Guido van Rossum | -0/+5 | |
