summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* _compile(): raise an exception if downcasting to SRE_CODETim Peters2006-01-211-37/+40
| | | | | | | | | | | | | | | | | | loses information: OverflowError: regular expression code size limit exceeded Otherwise the compiled code is gibberish, possibly leading at least to wrong results or (as reported on c.l.py) internal sre errors at match time. I'm not sure how to test this. SRE_CODE is a 2-byte type on my box, and it's easy to create a regexp that causes the new exception to trigger here. But it may be a 4-byte type on other boxes, and creating a regexp large enough to trigger problems there would be pretty crazy. Bugfix candidate.
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-1973-0/+145
| | | | Probably should be backported.
* Generate getbuildinfo.o each time the linker is invoked;Martin v. Löwis2006-01-181-0/+4
| | | | | try to generate SVNVERSION information if subwcrev.exe can be found.
* SF Bug #1407069, Remove extra semi-colon if there is no long longNeal Norwitz2006-01-171-1/+1
|
* Get socketmodule to build after adding netlink support.Neal Norwitz2006-01-162-0/+5
|
* the implementation uses ZipImportError, not ZipImporterError...Fredrik Lundh2006-01-151-1/+1
|
* Change build format of netlink addresses.Martin v. Löwis2006-01-151-1/+1
|
* Patch #1103116: AF_NETLINK sockets basic support.Martin v. Löwis2006-01-142-1/+62
|
* Fix SF bug #1402308, segfault when using mmap(-1, ...)Neal Norwitz2006-01-111-0/+1
| | | | | | | This didn't crash on Linux, but valgrind complained. I'm not sure if this test is valid on Windows. Will backport.
* SF bug #1400822, Extended version of _curses over{lay,write} does not workNeal Norwitz2006-01-101-3/+3
| | | | | | Fix signatures to conform to doc (also fixed ungetmouse()). Will backport.
* Bug #1400115, Fix segfault when calling curses.panel.userptr()Neal Norwitz2006-01-091-0/+5
| | | | | | without prior setting of the userptr. Will backport.
* Fix icc warnings: try to set TCL_UNIX_FD for #if TCL_WIN_SOCKET == ↵Neal Norwitz2006-01-081-0/+11
| | | | TCL_UNIX_FD. res is not used, add a XXX comment
* Fix icc warnings: HASH_OBJ_CONSTRUCTOR was not defined and using #if ↵Neal Norwitz2006-01-081-0/+4
| | | | HASH_OBJ_CONSTRUCTOR
* Fix icc warnings: strlen() returns size_tNeal Norwitz2006-01-081-4/+5
|
* Fix icc warnings: using wrong enum typeNeal Norwitz2006-01-071-2/+2
|
* Fix icc warnings: extra semi-colon and signed vs unsignedNeal Norwitz2006-01-071-8/+8
|
* Fix icc warnings: extra semi-colonNeal Norwitz2006-01-072-3/+3
|
* Py_GetBuildInfo(): Squash compiler warnings.Tim Peters2006-01-061-3/+3
| | | | Locals `revision` and `branch` were const-incorrect.
* Deal with empty svn_revisions.Martin v. Löwis2006-01-061-1/+1
|
* Drop sys.build_number. Add sys.subversion.Martin v. Löwis2006-01-051-18/+11
|
* squash compiler warning on Mac OSX 10.3Skip Montanaro2006-01-051-0/+4
|
* Always set SVNVERSION to "exported" if it otherwise fails.Martin v. Löwis2006-01-051-5/+7
|
* Stop maintaining the buildno file.Martin v. Löwis2006-01-051-5/+14
| | | | Also, stop determining Unicode sizes with PyString_GET_SIZE.
* Fix errors on 64-bit platforms. Will backportNeal Norwitz2006-01-051-4/+4
|
* Remove unneeded directories.Martin v. Löwis2006-01-03167-39686/+0
|
* Import zlib into Python tree.Martin v. Löwis2006-01-03202-0/+54653
|
* adding in-place operators to the operator module.Armin Rigo2005-12-291-1/+41
|
* two missing PyDoc_STR().Armin Rigo2005-12-291-2/+2
|
* [ 959576 ] Can't build Python on POSIX w/o $HOMEGeorg Brandl2005-12-271-1/+2
|
* SF#1389809Fredrik Lundh2005-12-251-1/+1
| | | | | | cast first PyUnicode_Decode argument to proper type (why is "char *" used for encoded byte streams, btw? shouldn't that be "void *" or, if necessary, "unsigned char *"?)
* Revert most of r41765. Don't use $Revision$ in Py_GetBuildNumber(). Keep theBarry Warsaw2005-12-191-26/+8
| | | | | use of $(srcdir) in Makefile.pre.in so builds outside the source dir still work.
* Remove extra parensNeal Norwitz2005-12-191-1/+1
|
* Fix SF bug #1072182, problems with signed characters.Neal Norwitz2005-12-196-6/+7
| | | | Most of these can be backported.
* Handle a couple of use cases discussed in python-dev w.r.t. calculating theBarry Warsaw2005-12-181-8/+26
| | | | | | | | | | Subversion revision number. First, in an svn export, there will be no .svn directory, so use an in-file $Revision$ keyword string with the keyword chrome stripped off. Also, use $(srcdir) in the Makefile.pre.in to handle the case where Python is build outside the source tree.
* Fixed None reference leaks in TreeBuilder class (reported by NealFredrik Lundh2005-12-181-0/+4
| | | | Norwitz)
* SF Patch #1365916, mmap fails on AMD64Neal Norwitz2005-12-181-12/+12
| | | | Fix some 64-bit issues due to mismatch format characters w/actual data types
* Expose Subversion revision number (calculated via "svnversion .") to Python.Barry Warsaw2005-12-181-2/+8
| | | | | | | Add C API function Py_GetBuildNumber(), add it to the interactive prompt banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number attribute. The build number is a string instead of an int because it may contain a trailing 'M' if there are local modifications.
* Fixed reference counting error when using the entity dictionaryFredrik Lundh2005-12-171-1/+0
| | | | | (reported by Chris Olds). Backported from the 1.0.6 development branch.
* updating to cElementTree 1.0.5 (step 3 of 3)Fredrik Lundh2005-12-161-4/+7
|
* updating to cElementTree 1.0.5 (step 2 of 3)Fredrik Lundh2005-12-161-0/+2766
|
* updating to cElementTree 1.0.5Fredrik Lundh2005-12-161-2723/+0
|
* added PSG licensing blurbFredrik Lundh2005-12-141-0/+3
|
* renamed to _elementtree (for Python 2.5)Fredrik Lundh2005-12-141-4/+4
|
* copied cElementTree 1.0.4 to ModulesFredrik Lundh2005-12-141-0/+2720
|
* Added the 'ULL' prefix to the unsigned long long literal constants.Armin Rigo2005-12-141-99/+99
| | | | Supresses numerous pages of compiler warnings.
* moved magic into structure (mainly to simplify the client code)Fredrik Lundh2005-12-131-5/+5
| | | | added missing API hooks
* renamed dispatch -> capi to match other CAPI implementationsFredrik Lundh2005-12-131-24/+24
| | | | (e.g. cStringIO, ucnhash, etc)
* added cobject-based expat dispatch mechanism to pyexpatFredrik Lundh2005-12-131-0/+31
|
* Bug #1290333: Added a workaround for cjkcodecs' _codecs_cn moduleHye-Shik Chang2005-12-121-0/+8
| | | | build problem on AIX.
* Add const to several API functions that take char *.Jeremy Hylton2005-12-1020-113/+124
| | | | | | | | | | | | | | | | | | | In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *.