summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Doc patch #1730 from Robin Stocker; minor corrections mostly to os.rst.Georg Brandl2008-01-051-1/+1
|
* Continue rolling back pep-3141 changes that changed behavior from 2.5. ThisJeffrey Yasskin2008-01-051-44/+6
| | | | | | | | | | | | round included: * Revert round to its 2.6 behavior (half away from 0). * Because round, floor, and ceil always return float again, it's no longer necessary to have them delegate to __xxx___, so I've ripped that out of their implementations and the Real ABC. This also helps in implementing types that work in both 2.6 and 3.0: you return int from the __xxx__ methods, and let it get enabled by the version upgrade. * Make pow(-1, .5) raise a ValueError again.
* Added interface to Windows' WSAIoctl and a simple example for a network sniffer.Christian Heimes2008-01-042-1/+43
|
* Added _struct._clearcache() for regression testsChristian Heimes2008-01-041-1/+13
|
* Fixed math.copysign() on WindowsChristian Heimes2008-01-041-6/+8
|
* Finish-up the struct module optimizations started at the Iceland NFS sprint.Raymond Hettinger2008-01-041-1/+205
|
* Bug #1301: fixed a bad assert in _tkinter.Guido van Rossum2008-01-031-3/+5
|
* Added copysign(x, y) function to the math moduleChristian Heimes2008-01-031-0/+11
|
* Modified PyImport_Import and PyImport_ImportModule to always use absolute ↵Christian Heimes2008-01-0310-15/+15
| | | | | | imports by calling __import__ with an explicit level of 0 Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports
* Added math.isinf() and math.isnan()Christian Heimes2008-01-031-6/+34
|
* Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (justJeffrey Yasskin2008-01-031-6/+44
| | | | | | | the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361, r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new documentation. The only significant difference is that round(x) returns a float to preserve backward-compatibility. See http://bugs.python.org/issue1689.
* Return results from Python callbacks to Tcl as Tcl objects.Martin v. Löwis2008-01-011-12/+5
| | | | Fixes Tk issue #1851526
* Fix the docstrings of time.localtime() and gmtime() for the tm_mday field.Brett Cannon2007-12-241-2/+3
| | | | Will backport.
* Patch #1583 by Adam Olsen.Guido van Rossum2007-12-191-1/+52
| | | | | | | This adds signal.set_wakeup_fd(fd) which sets a file descriptor to which a zero byte will be written whenever a C exception handler runs. I added a simple C API as well, PySignal_SetWakeupFd(fd).
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-1953-340/+340
| | | | Py_REFCNT. Macros for b/w compatibility are available.
* Issue #1645 by Alberto Bertogli. Fix a comment.Guido van Rossum2007-12-181-6/+6
|
* Issue #1642: Fix segfault in ctypes when trying to delete attributes.Thomas Heller2007-12-182-0/+21
|
* Fixed warning in ssl moduleChristian Heimes2007-12-141-1/+1
|
* Fixed a warning in _codecs_iso2022.c and some non C89 conform // comments.Christian Heimes2007-12-143-4/+4
|
* Fix bug 1604. deque.__init__() did not clear existing contents like ↵Raymond Hettinger2007-12-131-0/+1
| | | | list.__init__. Not a backport candidate.
* Fixed a nasty problem in the xxmodule.cChristian Heimes2007-12-121-1/+1
|
* Forward-port of commit 59184.Gerhard Häring2007-12-112-4/+14
| | | | | | | | | - Backported a workaround for a bug in SQLite 3.2.x/3.3.x versions where a statement recompilation with no bound parameters lead to a segfault - Backported a fix necessary because of an SQLite API change in version 3.5. This prevents segfaults when executing empty queries, like our test suite does
* Patch #1643738 by Ulisses Furquim -- make the is_tripped variableGuido van Rossum2007-12-101-5/+26
| | | | | in signalmodule.c more robust. Includes Martin von Loewis's suggestion to set is_tripped after .tripped.
* Forward-port r59310:Martin v. Löwis2007-12-031-2/+5
| | | | os.access now returns True on Windows for any existing directory.
* Issue #1727780: Support loading pickles of random.Random objects createdMartin v. Löwis2007-12-031-8/+9
| | | | | | on 32-bit systems on 64-bit systems, and vice versa. As a consequence of the change, Random pickles created by Python 2.6 cannot be loaded in Python 2.5.
* I followed MA Lemberg's suggestion and added comments to the late ↵Christian Heimes2007-12-031-5/+7
| | | | initialization of the type slots.
* Applied my patch #1455 with some extra fixes for VS 2005Christian Heimes2007-12-031-3/+7
| | | | | The new msvc9compiler module supports VS 2005 and VS 2008. I've also fixed build_ext to support PCbuild8 and PCbuild9 and backported my fix for xxmodule.c from py3k. The old code msvccompiler is still in place in case somebody likes to build an extension with VS 2003 or earlier. I've also updated the cygwin compiler module for VS 2005 and VS 2008. It works with VS 2005 but I'm unable to test it with VS 2008. We have to wait for a new version of cygwin.
* Fix for feature request #1528 Add os.fchmodChristian Heimes2007-11-301-0/+83
| | | | | Georg Brandl has added fchmod() and fchown(). I've contributed lchown but I'm not able to test it on Linux. However it should be available on Mac and some other flavors of Unix. I've made a quick test of fchmod() and fchown() on my system. They are working as expected.
* Remove unused global variable, and remove unneeded COMError.__str__Thomas Heller2007-11-271-15/+0
| | | | implementation in C.
* #1735632: add O_NOATIME constant to os module.Georg Brandl2007-11-241-0/+4
| | | | Also document a few other O_ constants that were missing from documentation.
* Backport of the PCbuild9 directory from the py3k branch.Christian Heimes2007-11-221-0/+4
| | | | | I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k. Have fun! :)
* Fixed #1372: zlibmodule.c: int overflow in PyZlib_decompressChristian Heimes2007-11-211-2/+3
|
* The incremental decoder for utf-7 must preserve its state between calls.Amaury Forgeot d'Arc2007-11-201-6/+13
| | | | | | | Solves issue1460. Might not be a backport candidate: a new API function was added, and some code may rely on details in utf-7.py.
* Backport some main.c cleanup from the py3k branchNick Coghlan2007-11-201-12/+13
|
* Patch #1739468: Directories and zipfiles containing __main__.py are now ↵Nick Coghlan2007-11-181-40/+80
| | | | executable
* A patch from issue 1378 by roudkerk:Guido van Rossum2007-11-161-81/+5
| | | | | | | | Currently on Windows set_error() make use of a large array which maps socket error numbers to error messages. This patch removes that array and just lets PyErr_SetExcFromWindowsErr() generate the message by using the Win32 function FormatMessage().
* readline module cleanupChristian Heimes2007-11-121-99/+90
| | | | | | | | fixed indention to tabs use Py_RETURN_NONE macro added more error checks to on_completion_display_matches_hook open question: Does PyList_SetItem(l, i, o) steal a reference to o in the case of an error?
* Only set rl_completion_display_matches_hook if thereMartin v. Löwis2007-11-121-31/+38
| | | | is a Python hook function. Fixes #1425.
* Use a freelist to speed-up block allocation and deallocation in ↵Raymond Hettinger2007-11-101-7/+27
| | | | collections.deque().
* * db->get_types is only available in BerkeleyDB >= 4.2Gregory P. Smith2007-11-051-0/+7
| | | | * get compiling with older versions of python again for a stand alone release.
* Add the bsddb.db.DBEnv.lock_id_free method.Gregory P. Smith2007-11-051-0/+21
| | | | Improve test_lock's tempdir creation and cleanup.
* Fixes bug 477182 on pybsddb.sf.net. DB objects now load the flags andGregory P. Smith2007-11-051-15/+2
| | | | | | | | | | pay attention to them when opening an existing database. This means that d[] behaves properly even on databases previously created with DB_DUP or DB_DUPSORT flags to allow duplicate keys. http://sourceforge.net/tracker/index.php?func=detail&aid=477182&group_id=13900&atid=113900 Do not backport, this bugfix could be considered an API change.
* Fix bug introduced in revision 58385. Database keys could no longerGregory P. Smith2007-11-011-1/+7
| | | | | have NULL bytes in them. Replace the errant strdup with a malloc+memcpy. Adds a unit test for the correct behavior.
* Fix some compiler warnings for signed comparisons on Unix and Windows.Neal Norwitz2007-10-311-2/+2
|
* ffi_type_longdouble may be already #defined.Thomas Heller2007-10-251-2/+4
| | | | See issue 1324.
* Add phuang patch from Issue 708374 which adds offset parameter to mmap module.Travis E. Oliphant2007-10-231-34/+75
|
* Fix ctypes on 32-bit systems when Python is configured --with-system-ffi.Thomas Heller2007-10-191-6/+10
| | | | | | See also https://bugs.launchpad.net/bugs/72505. Ported from release25-maint branch.
* Get this module to compile with bsddb versions prior to 4.3Neal Norwitz2007-10-121-0/+2
|
* Fix Coverity 168: Close the file before returning (exiting).Neal Norwitz2007-10-121-0/+1
|
* Get rid of compiler warning about retval being used (returned) withoutNeal Norwitz2007-10-121-1/+1
| | | | being initialized. (gcc warning and Coverity 202)