Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Doc patch #1730 from Robin Stocker; minor corrections mostly to os.rst. | Georg Brandl | 2008-01-05 | 1 | -1/+1 |
| | |||||
* | Continue rolling back pep-3141 changes that changed behavior from 2.5. This | Jeffrey Yasskin | 2008-01-05 | 1 | -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 Heimes | 2008-01-04 | 2 | -1/+43 |
| | |||||
* | Added _struct._clearcache() for regression tests | Christian Heimes | 2008-01-04 | 1 | -1/+13 |
| | |||||
* | Fixed math.copysign() on Windows | Christian Heimes | 2008-01-04 | 1 | -6/+8 |
| | |||||
* | Finish-up the struct module optimizations started at the Iceland NFS sprint. | Raymond Hettinger | 2008-01-04 | 1 | -1/+205 |
| | |||||
* | Bug #1301: fixed a bad assert in _tkinter. | Guido van Rossum | 2008-01-03 | 1 | -3/+5 |
| | |||||
* | Added copysign(x, y) function to the math module | Christian Heimes | 2008-01-03 | 1 | -0/+11 |
| | |||||
* | Modified PyImport_Import and PyImport_ImportModule to always use absolute ↵ | Christian Heimes | 2008-01-03 | 10 | -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 Heimes | 2008-01-03 | 1 | -6/+34 |
| | |||||
* | Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just | Jeffrey Yasskin | 2008-01-03 | 1 | -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öwis | 2008-01-01 | 1 | -12/+5 |
| | | | | Fixes Tk issue #1851526 | ||||
* | Fix the docstrings of time.localtime() and gmtime() for the tm_mday field. | Brett Cannon | 2007-12-24 | 1 | -2/+3 |
| | | | | Will backport. | ||||
* | Patch #1583 by Adam Olsen. | Guido van Rossum | 2007-12-19 | 1 | -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 Heimes | 2007-12-19 | 53 | -340/+340 |
| | | | | Py_REFCNT. Macros for b/w compatibility are available. | ||||
* | Issue #1645 by Alberto Bertogli. Fix a comment. | Guido van Rossum | 2007-12-18 | 1 | -6/+6 |
| | |||||
* | Issue #1642: Fix segfault in ctypes when trying to delete attributes. | Thomas Heller | 2007-12-18 | 2 | -0/+21 |
| | |||||
* | Fixed warning in ssl module | Christian Heimes | 2007-12-14 | 1 | -1/+1 |
| | |||||
* | Fixed a warning in _codecs_iso2022.c and some non C89 conform // comments. | Christian Heimes | 2007-12-14 | 3 | -4/+4 |
| | |||||
* | Fix bug 1604. deque.__init__() did not clear existing contents like ↵ | Raymond Hettinger | 2007-12-13 | 1 | -0/+1 |
| | | | | list.__init__. Not a backport candidate. | ||||
* | Fixed a nasty problem in the xxmodule.c | Christian Heimes | 2007-12-12 | 1 | -1/+1 |
| | |||||
* | Forward-port of commit 59184. | Gerhard Häring | 2007-12-11 | 2 | -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 variable | Guido van Rossum | 2007-12-10 | 1 | -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öwis | 2007-12-03 | 1 | -2/+5 |
| | | | | os.access now returns True on Windows for any existing directory. | ||||
* | Issue #1727780: Support loading pickles of random.Random objects created | Martin v. Löwis | 2007-12-03 | 1 | -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 Heimes | 2007-12-03 | 1 | -5/+7 |
| | | | | initialization of the type slots. | ||||
* | Applied my patch #1455 with some extra fixes for VS 2005 | Christian Heimes | 2007-12-03 | 1 | -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.fchmod | Christian Heimes | 2007-11-30 | 1 | -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 Heller | 2007-11-27 | 1 | -15/+0 |
| | | | | implementation in C. | ||||
* | #1735632: add O_NOATIME constant to os module. | Georg Brandl | 2007-11-24 | 1 | -0/+4 |
| | | | | Also document a few other O_ constants that were missing from documentation. | ||||
* | Backport of the PCbuild9 directory from the py3k branch. | Christian Heimes | 2007-11-22 | 1 | -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_decompress | Christian Heimes | 2007-11-21 | 1 | -2/+3 |
| | |||||
* | The incremental decoder for utf-7 must preserve its state between calls. | Amaury Forgeot d'Arc | 2007-11-20 | 1 | -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 branch | Nick Coghlan | 2007-11-20 | 1 | -12/+13 |
| | |||||
* | Patch #1739468: Directories and zipfiles containing __main__.py are now ↵ | Nick Coghlan | 2007-11-18 | 1 | -40/+80 |
| | | | | executable | ||||
* | A patch from issue 1378 by roudkerk: | Guido van Rossum | 2007-11-16 | 1 | -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 cleanup | Christian Heimes | 2007-11-12 | 1 | -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 there | Martin v. Löwis | 2007-11-12 | 1 | -31/+38 |
| | | | | is a Python hook function. Fixes #1425. | ||||
* | Use a freelist to speed-up block allocation and deallocation in ↵ | Raymond Hettinger | 2007-11-10 | 1 | -7/+27 |
| | | | | collections.deque(). | ||||
* | * db->get_types is only available in BerkeleyDB >= 4.2 | Gregory P. Smith | 2007-11-05 | 1 | -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. Smith | 2007-11-05 | 1 | -0/+21 |
| | | | | Improve test_lock's tempdir creation and cleanup. | ||||
* | Fixes bug 477182 on pybsddb.sf.net. DB objects now load the flags and | Gregory P. Smith | 2007-11-05 | 1 | -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 longer | Gregory P. Smith | 2007-11-01 | 1 | -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 Norwitz | 2007-10-31 | 1 | -2/+2 |
| | |||||
* | ffi_type_longdouble may be already #defined. | Thomas Heller | 2007-10-25 | 1 | -2/+4 |
| | | | | See issue 1324. | ||||
* | Add phuang patch from Issue 708374 which adds offset parameter to mmap module. | Travis E. Oliphant | 2007-10-23 | 1 | -34/+75 |
| | |||||
* | Fix ctypes on 32-bit systems when Python is configured --with-system-ffi. | Thomas Heller | 2007-10-19 | 1 | -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.3 | Neal Norwitz | 2007-10-12 | 1 | -0/+2 |
| | |||||
* | Fix Coverity 168: Close the file before returning (exiting). | Neal Norwitz | 2007-10-12 | 1 | -0/+1 |
| | |||||
* | Get rid of compiler warning about retval being used (returned) without | Neal Norwitz | 2007-10-12 | 1 | -1/+1 |
| | | | | being initialized. (gcc warning and Coverity 202) |