summaryrefslogtreecommitdiffstats
path: root/Modules/_randommodule.c
Commit message (Collapse)AuthorAgeFilesLines
* PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis2007-07-211-4/+3
| | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
* Bug #1486663: don't reject keyword arguments for subclasses of builtinGeorg Brandl2007-01-211-1/+1
| | | | types.
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* Disallow keyword arguments for type constructors that don't use them.Georg Brandl2005-08-261-0/+3
| | | | (fixes bug #1119418)
* SF bug #812202: randint is always evenRaymond Hettinger2003-10-051-0/+44
| | | | | | | * Added C coded getrandbits(k) method that runs in linear time. * Call the new method from randrange() for ranges >= 2**53. * Adds a warning for generators not defining getrandbits() whenever they have a call to randrange() with too large of a population.
* PyType_GenericAlloc is inherited from object.Raymond Hettinger2003-05-231-1/+1
|
* PyObject_IsTrue() can return an error condition.Raymond Hettinger2003-04-231-1/+4
| | | | Adding code to handle it properly.
* Minor source formatting fixes.Raymond Hettinger2003-04-161-2/+2
|
* Patch #661760: Cygwin auto-import module patchJason Tishler2003-01-061-6/+3
| | | | | | | | | | | | The attached patch enables shared extension modules to build cleanly under Cygwin without moving the static initialization of certain function pointers (i.e., ones exported from the Python DLL core) to a module initialization function. Additionally, this patch fixes the modules that have been changed in the past to accommodate Cygwin.
* Try to get compilation working for cygwinNeal Norwitz2002-12-311-3/+6
|
* SF patch 658251: Install a C implementation of the Mersenne Twister as theRaymond Hettinger2002-12-291-0/+528
core generator for random.py.