summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.Gregory P. Smith2008-04-091-0/+4
| | | | It tried to allocate negative or zero memory. That fails.
* Issue 2408: remove the _types moduleAmaury Forgeot d'Arc2008-04-082-97/+0
| | | | | | | | | It was only used as a helper in types.py to access types (GetSetDescriptorType and MemberDescriptorType), when they can easily be obtained with python code. These expressions even work with Jython. I don't know what the future of the types module is; (cf. discussion in http://bugs.python.org/issue1605 ) at least this change makes it simpler.
* Use the new PyFile_IncUseCount & PyFile_DecUseCount calls appropriatlyGregory P. Smith2008-04-072-0/+19
| | | | | within the standard library. These modules use PyFile_AsFile and later release the GIL while operating on the previously returned FILE*.
* typeSkip Montanaro2008-04-061-1/+1
|
* Declare inittimezone static.Skip Montanaro2008-04-051-2/+3
|
* More files from libffi 3.0.5.Thomas Heller2008-04-044-22/+20
| | | | Removed libffi.pc.in because it is not needed for ctypes.
* Sync with files from the just released libffi 3.0.5 version.Thomas Heller2008-04-045-2/+1246
|
* Issue #2543: Make ctypes compatible (again) with Python 2.3, 2.4, and 2.5.Thomas Heller2008-04-042-26/+38
|
* Remove the advertising clause from the BSD license in timing.h.Guido van Rossum2008-04-011-6/+3
| | | | I have the email trail to prove that George Neville-Neil approved this.
* Backport #1442: report exception when startup file cannot be run.Georg Brandl2008-03-291-0/+9
|
* Repair compilation for Visual Studio 2005.Amaury Forgeot d'Arc2008-03-281-0/+4
| | | | | | | I applied the same changes manually to VS7.1 and VC6 files; completely untested. (Christian, don't try too hard merging this change into py3k. It will be easier to do the same work again on the branch)
* Update sqlite3 module to match current version of pysqlite.Gerhard Häring2008-03-288-15/+35
|
* Accept patch issue2426 by Paul Kippes (kippesp).Gregory P. Smith2008-03-281-0/+48
| | | | Adds sqlite3.Connection.iterdump to allow dumping of databases.
* Fix compiler warningsNeal Norwitz2008-03-271-2/+2
|
* Fix and simplify error handling, silencing a compiler warning.Georg Brandl2008-03-261-7/+4
|
* Merged revisions ↵Christian Heimes2008-03-261-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/trunk-bytearray ........ r61750 | christian.heimes | 2008-03-22 20:47:44 +0100 (Sat, 22 Mar 2008) | 1 line Copied files from py3k w/o modifications ........ r61752 | christian.heimes | 2008-03-22 20:53:20 +0100 (Sat, 22 Mar 2008) | 7 lines Take One * Added initialization code, warnings, flags etc. to the appropriate places * Added new buffer interface to string type * Modified tests * Modified Makefile.pre.in to compile the new files * Added bytesobject.c to Python.h ........ r61754 | christian.heimes | 2008-03-22 21:22:19 +0100 (Sat, 22 Mar 2008) | 2 lines Disabled bytearray.extend for now since it causes an infinite recursion Fixed serveral unit tests ........ r61756 | christian.heimes | 2008-03-22 21:43:38 +0100 (Sat, 22 Mar 2008) | 5 lines Added PyBytes support to several places: str + bytearray ord(bytearray) bytearray(str, encoding) ........ r61760 | christian.heimes | 2008-03-22 21:56:32 +0100 (Sat, 22 Mar 2008) | 1 line Fixed more unit tests related to type('') is not unicode ........ r61763 | christian.heimes | 2008-03-22 22:20:28 +0100 (Sat, 22 Mar 2008) | 2 lines Fixed more unit tests Fixed bytearray.extend ........ r61768 | christian.heimes | 2008-03-22 22:40:50 +0100 (Sat, 22 Mar 2008) | 1 line Implemented old buffer interface for bytearray ........ r61772 | christian.heimes | 2008-03-22 23:24:52 +0100 (Sat, 22 Mar 2008) | 1 line Added backport of the io module ........ r61775 | christian.heimes | 2008-03-23 03:50:49 +0100 (Sun, 23 Mar 2008) | 1 line Fix str assignement to bytearray. Assignment of a str of size 1 is interpreted as a single byte ........ r61805 | christian.heimes | 2008-03-23 19:33:48 +0100 (Sun, 23 Mar 2008) | 3 lines Fixed more tests Fixed bytearray() comparsion with unicode() Fixed iterator assignment of bytearray ........ r61809 | christian.heimes | 2008-03-23 21:02:21 +0100 (Sun, 23 Mar 2008) | 2 lines str(bytesarray()) now returns the bytes and not the representation of the bytearray object Enabled and fixed more unit tests ........ r61812 | christian.heimes | 2008-03-23 21:53:08 +0100 (Sun, 23 Mar 2008) | 3 lines Clear error PyNumber_AsSsize_t() fails Use CHARMASK for ob_svall access disabled a test with memoryview again ........ r61819 | christian.heimes | 2008-03-23 23:05:57 +0100 (Sun, 23 Mar 2008) | 1 line Untested updates to the PCBuild directory ........ r61917 | christian.heimes | 2008-03-26 00:57:06 +0100 (Wed, 26 Mar 2008) | 1 line The type system of Python 2.6 has subtle differences to 3.0's. I've removed the Py_TPFLAGS_BASETYPE flags from bytearray for now. bytearray can't be subclasses until the issues with bytearray subclasses are fixed. ........ r61920 | christian.heimes | 2008-03-26 01:44:08 +0100 (Wed, 26 Mar 2008) | 2 lines Disabled last failing test I don't understand what the test is testing and how it suppose to work. Ka-Ping, please check it out. ........ r61930 | christian.heimes | 2008-03-26 12:46:18 +0100 (Wed, 26 Mar 2008) | 1 line Re-enabled bytes warning code ........ r61933 | christian.heimes | 2008-03-26 13:20:46 +0100 (Wed, 26 Mar 2008) | 1 line Fixed a bug in the new buffer protocol. The buffer slots weren't copied into a subclass. ........ r61934 | christian.heimes | 2008-03-26 13:25:09 +0100 (Wed, 26 Mar 2008) | 1 line Re-enabled bytearray subclassing - all tests are passing. ........
* Minor docstring typosAndrew M. Kuchling2008-03-261-5/+5
|
* Make _ctypes.c PY_SSIZE_T_CLEAN.Thomas Heller2008-03-251-2/+4
|
* #2359: add Py3k warning for array.read/array.write.Georg Brandl2008-03-251-2/+26
|
* On platforms without zlib, make this do the right thing and return the pythonGregory P. Smith2008-03-251-71/+58
| | | | | | | | 2.x signed value. Also, don't waste space on a table full of unsigned longs when all it needs are unsigned ints (incase anyone builds this without zlib on a 64-bit unix for some strange reason). tested by forcing it to compile this version on both 32-bit and 64-bit linux.
* Use a 32-bit unsigned int here, a long is not needed.Gregory P. Smith2008-03-252-6/+6
|
* Conditionalize sys/time.h inclusion.Martin v. Löwis2008-03-241-0/+2
|
* Patch #2240: Implement signal.setitimer and signal.getitimer.Martin v. Löwis2008-03-241-3/+149
|
* Have the binascii module use zlib's optimized crc32() function when availableGregory P. Smith2008-03-241-0/+24
| | | | | to reduce our code size (1k data table and tiny bit of code). It falls back to its own without zlib.
* replace calls to get the initial values with the raw constants.Gregory P. Smith2008-03-231-2/+2
|
* Revert r61779 - It undid correct code and caused test_zlib to fail on allGregory P. Smith2008-03-231-4/+2
| | | | | | | | | | | platforms with a 64-bit long. The Alpha/Tru64 test problem is a problem in either tarfile or test_tarfile, not zlib. crc32 and adler32 return 32-bit values. by using a long thats larger than 32-bits in these functions they were prevented from wrapping around to their signed 32-bit value that we want them to return in python 2.x.
* Fix test_tarfile failures on Alpha (Tru64). The problem was caused in r61449Neal Norwitz2008-03-231-2/+4
| | | | | | | which made the return value signed. On the Alpha that also lost data since sizeof(int) != sizeof(long) and apparently adler32/crc32 return 64 bits of data. This change keeps the signedness and continues to store the data in a long rather than an int as was the case before r61449.
* Applied patch #1657 epoll and kqueue wrappers for the select moduleChristian Heimes2008-03-211-12/+1163
| | | | | The patch adds wrappers for the Linux epoll syscalls and the BSD kqueue syscalls. Thanks to Thomas Herve and the Twisted people for their support and help. TODO: Finish documentation documentation
* Prevent ioctl op codes from being sign extended from int to unsigned longGregory P. Smith2008-03-191-5/+14
| | | | | | | | | | | when used on platforms that actually define ioctl as taking an unsigned long. (the BSDs and OS X / Darwin) Adds a unittest for fcntl.ioctl that tests what happens with both positive and negative numbers. This was done because of issue1471 but I'm not able to reproduce -that- problem in the first place on Linux 32bit or 64bit or OS X 10.4 & 10.5 32bit or 64 bit.
* Remove itertools warnings I had added before the 2-to-3 handled the migration.Raymond Hettinger2008-03-191-25/+0
|
* The filter() function does support a None argument in Py3.0.Raymond Hettinger2008-03-191-9/+0
|
* Added zip, map, filter to future_bultins (#2171)David Wolever2008-03-192-3/+25
|
* Add a test to make sure zlib.crc32 and binascii.crc32 return the same thing.Gregory P. Smith2008-03-181-1/+1
| | | | | Fix a buglet in binascii.crc32, the second optional argument could previously have a signedness mismatch with the C variable its going into.
* Fix chown on 64-bit linux. It needed to take a long (64-bit on 64bit linux) asGregory P. Smith2008-03-181-2/+2
| | | | | | | | | uid and gid input to accept values >=2**31 as valid while still accepting negative numbers to pass -1 to chown for "no change". Fixes issue1747858. This should be backported to release25-maint.
* Cast the arguments to PyString_AsStringAndSize() to silence compiler warningsBrett Cannon2008-03-181-1/+2
| | | | on OS X.
* Remove all traces of HAVE_STRERROR.Brett Cannon2008-03-184-23/+2
| | | | | The removal of strerror.c led to the function check being removed from configure.in.
* Include <alloca.h> on Solaris, see issue #1506.Thomas Heller2008-03-181-0/+4
| | | | | It would probably be better to have a configure test for that, but this is outside of my configure expertise.
* Use a buffer large enough to ensure we don't overrun, even if the valueNeal Norwitz2008-03-171-1/+1
| | | | is outside the range we expect.
* Force zlib.crc32 and zlib.adler32 to return a signed integer on all platformsGregory P. Smith2008-03-171-8/+17
| | | | | | | | | regardless of the native sizeof(long) used in the integer object. This somewhat odd behavior of returning a signed is maintained in 2.x for compatibility reasons of always returning an integer rather than a long object. Fixes Issue1202 for Python 2.6
* add %f format to datetime - issue 1158Skip Montanaro2008-03-152-25/+79
|
* Remove unneeded initializer.Thomas Heller2008-03-141-1/+1
|
* Leave heapreplace() unchanged.Raymond Hettinger2008-03-141-5/+0
|
* Issue 2274: Add heapq.heappushpop().Raymond Hettinger2008-03-131-0/+49
|
* Consistent tense.Raymond Hettinger2008-03-131-1/+1
|
* Add 2-to-3 support for the itertools moved to builtins or renamed.Raymond Hettinger2008-03-131-0/+25
|
* Issue 2246: itertools grouper object did not participate in GC (should be ↵Raymond Hettinger2008-03-061-5/+15
| | | | backported).
* Small code cleanup.Raymond Hettinger2008-03-051-4/+2
|
* C implementation of itertools.permutations().Raymond Hettinger2008-03-051-0/+274
|
* Issue 1872: Changed the struct module typecode from 't' to '?', forThomas Heller2008-03-054-11/+20
| | | | compatibility with PEP3118.
* Fix refleak in chain().Raymond Hettinger2008-03-041-1/+1
|