summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Patch #102278: add tparm() function to _curses moduleAndrew M. Kuchling2000-11-071-4/+55
|
* Added 38,642 missing characters to the Unicode database (first-lastFredrik Lundh2000-11-031-96/+114
| | | | | | | ranges) -- but thanks to the 2.0 compression scheme, this doesn't add a single byte to the resulting binaries (!) Closes bug #117524
* Move our own getopt() implementation to _PyOS_GetOpt(), and use itThomas Wouters2000-11-031-16/+12
| | | | | | | | | regardless of whether the system getopt() does what we want. This avoids the hassle with prototypes and externs, and the check to see if the system getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to avoid name clashes. Add new include file to define the right symbols. Fix Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on Python to provide it.
* Patch from Randall Hopper to fix PR #116172, "curses module fails toAndrew M. Kuchling2000-11-011-4/+38
| | | | | | | build on SGI": * Check for 'sgi' preprocessor symbol, not '__sgi__' * Surround individual character macros with #ifdef's, instead of making them all rely on STRICT_SYSV_CURSES
* ParserCreate(): Added test that the namespace_separator value, if given,Fred Drake2000-10-291-0/+9
| | | | | | | has the required length. initpyexpat(): Provide the type object for the ParserCreate() return value as XMLParserType.
* Do not echo the echo command with the message telling the user that SetupFred Drake2000-10-291-1/+1
| | | | may be out of date.
* Do not release unallocated Tcl objects. Closes #117278 and #117167.Martin v. Löwis2000-10-291-3/+8
|
* -- properly reset groups in findall (bug #117612)Fredrik Lundh2000-10-281-15/+18
| | | | | | | | -- fixed negative lookbehind to work correctly at the beginning of the target string (bug #117242) -- improved syntax check; you can no longer refer to a group inside itself (bug #110866)
* Rename Setup.in to Setup.dist, and assume that configure will createFred Drake2000-10-263-13/+9
| | | | Setup (instead of creating it from the Makefile).
* Update a comment to be correct.Fred Drake2000-10-261-3/+3
|
* Ka-Ping Yee <ping@lfw.org>:Fred Drake2000-10-243-52/+52
| | | | | | Changes to error messages to increase consistency & clarity. This (mostly) closes SourceForge patch #101839.
* t_bootstram(): Use PySys_WriteStderr() instead of fprintf(stderr,...).Fred Drake2000-10-201-1/+1
| | | | This closes bug #117324.
* Update the comments for the BSD DB module, including a new pointer toFred Drake2000-10-141-3/+5
| | | | | | the DB 3 module; thanks to Robin Dunn <robind@users.sourceforge.net>. This closes SourceForge bug #116850.
* Repaired a comment and asserted a precondition.Tim Peters2000-10-121-1/+2
|
* Fix for Bug #116453.Guido van Rossum2000-10-121-6/+6
| | | | | | Direct use of interp->result is deprecated; changing this to Tcl_GetStringResult(interp) everywhere fixed the problem of losing the error message with TclError exceptions, on Windows.
* Stop raising OverflowError on underflows reported by libm (errno==ERANGE andTim Peters2000-10-121-18/+42
| | | | | | | | | libm result is 0). Cautiously add a few libm exception test cases: 1. That exp(-huge) returns 0 without exception. 2. That exp(+huge) triggers OverflowError. 3. That sqrt(-1) raises ValueError specifically (apparently under glibc linked with -lieee, it was raising OverflowError due to an accident of the way mathmodule.c's CHECK() macro happened to deal with Infs and NaNs under gcc).
* Another gcc -Wall warning squashed:Fred Drake2000-10-111-1/+1
| | | | | MPZ_divm(): Initialize mpzden to NULL, since it could be Py_XDECREF()ed without being initialized.
* Remove one more gcc -Wall warning.Fred Drake2000-10-111-1/+2
|
* Fix the docstring for new.function().Fred Drake2000-10-101-1/+1
| | | | | Based on a comment from Detlef Lannert <lannert@lannert.rz.uni-duesseldorf.de>.
* Donn Cave <donn@oz.net>:Fred Drake2000-10-091-1/+1
| | | | | | Updated to work better with BeOS. This closes SourceForge patch #101777.
* Patch #101810: check whether zst.avail_out is non-zero when gettingAndrew M. Kuchling2000-10-091-1/+15
| | | | | | a Z_BUF_ERROR while decompressing. If it is, assume that this means the data being decompressed is bad and raise an exception, instead of just assuming that Z_BUF_ERROR always means that more space is required.
* Be consistent in the description of audio formats: <format> <width>Guido van Rossum2000-10-081-4/+7
| | | | | | "audio". Also add AFMT_S16_NE ("native-endian"). (Somehow there's no AFMT_U16_NE.)
* test_linuxaudio:Jeremy Hylton2000-10-061-86/+129
| | | | | | | | | | | | | | | | | | | | | | read the header from the .au file and do a sanity check pass only the data to the audio device call flush() so that program does not exit until playback is complete call all the other methods to verify that they work minimally call setparameters with a bunch of bugs arguments linuxaudiodev.c: use explicit O_WRONLY and O_RDONLY instead of 1 and 0 add a string name to each of the entries in audio_types[] add AFMT_A_LAW to the list of known formats add x_mode attribute to lad object, stores imode from open call test ioctl return value as == -1, not < 0 in read() method, resize string before return add getptr() method, that calls does ioctl on GETIPTR or GETOPTR depending on x_mode in setparameters() method, do better error checking and raise ValueErrors; also use ioctl calls recommended by Open Sound System Programmer's Guido (www.opensound.com) use PyModule_AddXXX to define names in module
* Added a new "base" type, IOobject for which most of theJim Fulton2000-10-061-285/+355
| | | | | | | | | | | | | | | operations are defined. This will, hopefully clarify some of the logic. Added close test to raise proper error when operations are performed on closed StringIOs. Added a position argument to the truncate method. Added a size argument to readline. Added PyArg_Parse calls for methods that don't take arguments to make sure they don't take arguments.
* [ Bug #113803 ] [2.0b1 NT4.0] printing non asci char causes idle to abortGuido van Rossum2000-10-061-44/+86
| | | | | | | | | | | | | | | http://sourceforge.net/bugs/?func=detailbug&bug_id=113803&group_id=5470 Add Unicode support and error handling to AsString(). Both AsString() and Merge() now return NULL and set a proper Python exception condition when an error happens; Merge() and other callers of AsString() check for errors from AsString(). Also fixed cleanup in Merge() and Tkapp_Call() return cleanup code; the fv array was not necessarily completely initialized, causing calls to ckfree() with garbage arguments! (Also reindented some lines that were longer than 80 chars and reformatted some code that used an alien coding standard.)
* 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.