summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Norman Vine <nhv@users.sourceforge.net>:Fred Drake2000-10-061-1/+1
| | | | | | tcp.h is not available on CygWin, so do not try to include it there. This closes SourceForge patch #101802.
* SF "bug" 115973: patches from Norman Vine so that shared libraries andTim Peters2000-10-051-1/+1
| | | | Tkinter work under Cygwin. Accepted on faith & reasonableness.
* - update Neil's email addressNeil Schemenauer2000-10-041-6/+2
|
* - do not start collection during processing of an exceptionNeil Schemenauer2000-10-041-1/+5
|
* - Fix a GC bug caused by PyDict_New() failing.Neil Schemenauer2000-10-041-1/+2
|
* Accept keyword arguments for (most) pattern and match objectFredrik Lundh2000-10-031-31/+45
| | | | methods. Closes buglet #115845.
* Clarify that isatty is only guaranteed to return true for slave ends ofThomas Wouters2000-10-031-1/+1
| | | | terminals, not the master end (though it does, on most systems.)
* Fixed negative lookahead/lookbehind. Closes bug #115618.Fredrik Lundh2000-10-031-4/+1
|
* Remove comment about -lucb for the mmap module -- the module has beenFred Drake2000-10-021-3/+2
| | | | | | | changed so that this is no longer needed on the only platform this is known to have been needed on. Fixed on indentation-related consistency nit.
* Supporting rl_library_version is more trouble than it's worth --Guido van Rossum2000-10-021-8/+1
| | | | | | | readline doesn't have it before readline 2.2 and there's no compile-time way to find out which readline version is in use. Sigh. GNU readline sucks.
* my_getpagesize(): New function; returns the size of a page of memory.Fred Drake2000-10-011-12/+18
| | | | | | | | | | Versions are defined for Windows and Unix; the Unix flavor uses sysconf() to get the page size; this avoids the use of getpagesize(), which is deprecated and requires an additional library on some platforms (specifically, Reliant UNIX). This partially closes SourceForge bug #113797.
* Fix header file usage so that NULL is defined. NULL is needed byMarc-André Lemburg2000-09-301-1/+1
| | | | unicodedata_db.h.
* PyModule_AddStringConstant(): Make this static since it isn't usedFred Drake2000-09-291-1/+5
| | | | elsewhere in 1.5.2.
* Remove unused VERSION #define.Martin v. Löwis2000-09-291-5/+26
| | | | | Add PyModule_AddStringConstant and PyModule_AddObject if version <2.0, to allow to share this file with PyXML.
* Add #ifdef's for platforms that don't have the constants POLLRDNORM andAndrew M. Kuchling2000-09-281-0/+8
| | | | friends. (Modified version of patch #101682 from Neil Schemenauer)
* Minor ANSIfication: lib_python no longer needs to be initializedFred Drake2000-09-281-4/+1
| | | | dynamically to support K&R C since we are requiring an ANSI compiler.
* Fix includes; not including Python.h caused the module not to compile onFred Drake2000-09-281-1/+1
| | | | | | some platforms. This *should* close SourceForge patch #115506.
* Fix buffer overflow vulnerabilities in calculate_path(). Code usedJeremy Hylton2000-09-271-16/+41
| | | | | | | copied strings from environment variables and argv[0] into fixed-length buffers without checking their length. Reported by Stan Bubrouski; advice on fix from John Viega.
* Rationalize use of limits.h, moving the inclusion to Python.h.Fred Drake2000-09-267-32/+5
| | | | | | | | Add definitions of INT_MAX and LONG_MAX to pyport.h. Remove includes of limits.h and conditional definitions of INT_MAX and LONG_MAX elsewhere. This closes SourceForge patch #101659 and bug #115323.
* fix bug #114290: when interpreter's argv[0] has a relative path makeJeremy Hylton2000-09-251-2/+19
| | | | | it absolute by joining it with getcwd result. avoid including unnecessary ./ in path but do not test for ../ (more complicated)
* Add missing prototypes for the benefit of SunOS 4.1.4 */Guido van Rossum2000-09-251-0/+7
|
* For the benefit of SunOS 4.1.4, define MS_SYNC as 0 when it'sGuido van Rossum2000-09-251-0/+6
| | | | | | undefined. ccording to MvL, this is safe: the MS_SYNC flag means that msync() returns when all I/O operations are scheduled; without it, it waits until they are complete, which is acceptable behavior.
* unicode database compression, step 2:Fredrik Lundh2000-09-254-4313/+4564
| | | | | | | | | | - fixed attributions - moved decomposition data to a separate table, in preparation for step 3 (which won't happen before 2.0 final, promise!) - use relative paths in the generator script I have a lot more stuff in the works for 2.1, but let's leave that for another day...
* Repaired damaged string.Tim Peters2000-09-241-1/+1
|
* xmlparse_ExternalEntityParserCreate(): Add required cast to return toFred Drake2000-09-241-1/+1
| | | | avoid compiler warnings.
* unicode database compression, step 1:Fredrik Lundh2000-09-241-11/+1
| | | | | - use unidb compression for the unicodedata module. on Windows, the new unidatabase module is 120k, down from nearly 600k.
* unicode database compression, step 1:Fredrik Lundh2000-09-243-65715/+4398
| | | | | - use unidb compression for the unicodedata module. on Windows, the new unidatabase module is 120k, down from nearly 600k.
* Added ExternalEntityParserCreate method (patch 101635).Lars Gustäbel2000-09-241-0/+66
|
* Change the name of the exception from "pyexpat.error" toFred Drake2000-09-231-12/+13
| | | | | | | | "xml.parsers.expat.error", so it will reflect the public name of the exception rather than the internal name. Also change some of the initialization to use the new PyModule_Add*() convenience functions.
* Fix some long/"l" int/"i" mismatches. Fixes bug #113779.Neil Schemenauer2000-09-221-2/+2
|
* It's better to test for __hpux rather than __hppa, and hpux or hppa isGuido van Rossum2000-09-221-1/+1
| | | | unnecessary. Sez edg@SF
* Hopefully fix the problem with undeclared fdatasync() on HP-UX thatGuido van Rossum2000-09-221-0/+5
| | | | | | | was reported twice so far. Someone with access to HP-UX, please test this! (Is '__hppa' or 'hppa' really the correct symbol to test for?)
* Address Bug #115057: add a --with-suffix option to set the EXEGuido van Rossum2000-09-221-4/+4
| | | | | variable in the Makefiles from the configure script. Usefil for Cygwin and Mac OS X builds.
* - Add DEBUG_SAVEALL option. When enabled all garbage objects found by theNeil Schemenauer2000-09-221-27/+39
| | | | | | | collector will be saved in gc.garbage. This is useful for debugging a program that creates reference cycles. - Fix else statements in gcmodule.c to conform to Python coding standards.
* When PyInt_FromLong() returns NULL, you do not need to checkFred Drake2000-09-221-4/+2
| | | | | PyErr_Occurred(). Removed the extra test and setting of a bogus exception.
* Implemented new os.startfile function, unique to Windows, exposing aTim Peters2000-09-221-0/+33
| | | | | | | | | | | | | | | | subset of Win32 ShellExecute's functionality. Guido wants this because IDLE's Help -> Docs function currently crashes his machine because of a conflict between his version of Norton AntiVirus (6.10.20) and MS's _popen. Docs for startfile are being mailed to Fred (or just read the docstring -- it tells the whole story). Changed webbrowser.py to use os.startfile instead of os.popen on Windows. Changed IDLE's EditorWindow.py to pass an absolute path for the docs (hardcoding ShellExecute's "directory" arg to "." as used to be done let IDLE work, but made the startfile command exceedingly obscure for other uses -- the MS docs are terrible, of course, & still not sure I understand it). Note that Windows Python must link with shell32.lib now! That's where ShellExecute lives.
* Fix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.cTim Peters2000-09-221-2/+1
|
* Remove debugging print. ;(Fred Drake2000-09-221-2/+0
|
* Added a true unicode_internal_encode function and fixed theMarc-André Lemburg2000-09-211-9/+43
| | | | | unicode_internal_decode function to support Unicode objects directly rather than by generating a copy of the object.
* Remove memory leaks of strings/Unicode objects passed into the characterFred Drake2000-09-211-58/+21
| | | | | | | | | | data and default handlers -- a new reference was being passed to Py_BuildValue() for the "O" format character; using "N" plugs the leak. Fixed two other (minor) leaks that occurred on various error conditions. Removed uses of the UNLESS macro, which makes code hard to read, and is Evil.
* - fixed yet another gcc -pedantic warningFredrik Lundh2000-09-211-16/+47
| | | | | - added experimental "expand" method to match objects - don't use the buffer interface on unicode strings
* Use PyOS_setsig() instead of signal(). Also remove redundant spacesGuido van Rossum2000-09-211-15/+15
| | | | from the FreeBSD code.
* Add a definition of rl_library_version. Reported by jpettit@sourceforge.Guido van Rossum2000-09-201-0/+1
|
* Randall Hopper: Add fpectl functionality patch for FreeBSD.Guido van Rossum2000-09-191-0/+15
|
* Implement readlines function. Closes Bug #110686.Martin v. Löwis2000-09-191-0/+36
|
* Make better use of GNU Pth -- patch by Andy Dustman.Guido van Rossum2000-09-191-0/+9
| | | | | | | | | | | | | | | I can't test this, so I'm just checking it in with blind faith in Andy. I've tested that it doesn't broeak a non-Pth build on Linux. Changes include: - There's a --with-pth configure option. - Instead of _GNU_PTH, we test for HAVE_PTH. - Better signal handling. - (The config.h.in file is regenerated in a slightly different order.)
* Add invert() and __invert__() as aliases for inv()/__inv__().Fred Drake2000-09-171-11/+16
| | | | | | | | Add contains() as alias for __contains__(). Make PyArg_ParseTuple() formats include the function name. Based on patch by Denis S. Otkidach <ods@users.sourceforge.net>, this closes SourceForge patch #101390.
* arraymodule: Fix SF bug 113960.Tim Peters2000-09-161-18/+23
| | | | | | | | | | | | | | reverse() didn't work at all due to bad arg check. Fixed that. Added Brad Chapman to ACKS file, as the proud new owner of two implicitly copyrighted lines of Python source code <wink>. Repaired buffer_info's total lack of arg-checking. Replaced memmove by memcpy in reverse() guts, as memmove is often slower and the memory areas are guaranteed disjoint. Replaced poke-and-hope unchecked decl of tmp buffer size by assert-checked larger tmp buffer. Got rid of inconsistent spaces before open paren in docstrings. Added reverse() sanity tests to test_array.py.
* Use PyOS_setsig() instead of directly calling signal() or sigaction().Guido van Rossum2000-09-161-5/+12
| | | | | | | This fixes the first half of bug #110611: the immediate exit when ^C is hit when readline and threads are configured. Also added a new module variable, readline.library_version.
* Use typedef PyOS_sighandler_t and APIs PyOS_getsig() andGuido van Rossum2000-09-161-25/+12
| | | | | | | PyOS_setsig(), instead of directly calling signal() or sigaction(). This fixes the second half of bug #110611: the mysterious ignoring of the first ^C when readline isn't used.