summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Adding a warning about the regex module. This is the first officialGuido van Rossum2000-12-191-0/+3
| | | | | use of PyErr_Warn()! This module is a good guinea pig because it's been obsolete since 1.5.0 was released.
* Minimal fix for the complaints about pickling Unicode objects. (SFGuido van Rossum2000-12-191-2/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | bugs #126161 and 123634). The solution doesn't use the unicode-escape encoding; that has other problems (it seems not 100% reversible). Rather, it transforms the input Unicode object slightly before encoding it using raw-unicode-escape, so that the decoding will reconstruct the original string: backslash and newline characters are translated into their \uXXXX counterparts. This is backwards incompatible for strings containing backslashes, but for some of those strings, the pickling was already broken. Note that SF bug #123634 complains specifically that cPickle fails to unpickle the pickle for u'' (the empty Unicode string) correctly. This was an off-by-one error in load_unicode(). XXX Ugliness: in order to do the modified raw-unicode-escape, I've cut-and-pasted a copy of PyUnicode_EncodeRawUnicodeEscape() into this file that also encodes '\\' and '\n'. It might be nice to migrate this into the Unicode implementation and give this encoding a new name ('half-raw-unicode-escape'? 'pickle-unicode-escape'?); that would help pickle.py too. But right now I can't be bothered with the necessary infrastructural changes.
* Adapted from a patch by Barry Scott, SF patch #102875 and SF bugGuido van Rossum2000-12-181-3/+4
| | | | #125981: closing sockets was not thread-safe.
* Add support for gdbm2 open flags ('s' and 'u'). Add module constantNeil Schemenauer2000-12-171-12/+54
| | | | | open_flags which contains the flags supported by gdbm. Closes patch #102802.
* Add returns_unicode to the __members__ list.Fred Drake2000-12-161-1/+2
| | | | Fix a small style consistency nit.
* Add the -W option.Guido van Rossum2000-12-151-1/+8
|
* [Patch #102827] Fix for PR#119558, avoiding core dumps by checking forAndrew M. Kuchling2000-12-151-7/+16
| | | | malloc() returning NULL
* Wrapper for napms() function, contributed by Thomas Gellekum <tg@FreeBSD.org>Andrew M. Kuchling2000-12-151-1/+50
|
* The Mac C library (MSL from CodeWarrior 6) and I/O library (GUSIJack Jansen2000-12-121-2/+2
| | | | | 2.1.3) finally agree on when the epoch is, so the code to convert epochs has been disabled.
* Add URL with info for PIL.Guido van Rossum2000-12-121-0/+1
|
* SF bug 110843: Low FD_SETSIZE limit on Win32 (PR#41). Boosted to 512.Tim Peters2000-12-121-1/+10
|
* Trivial typo fix, submitted by Charles Waldman (SF patch #102794).Guido van Rossum2000-12-121-1/+1
|
* validate_varargslist(): Fix two bugs in this function, one that affectedFred Drake2000-12-111-11/+20
| | | | | | | it when *args and/or **kw are used, and one when they are not. This closes bug #125375: "parser.tuple2ast() failure on valid parse tree".
* The C+ compiler is called $(CXX) these days, not CCC.Guido van Rossum2000-12-061-5/+5
| | | | This fixes SF Bug #124478.
* posix_getlogin(): Be more cautious about interpreting a NULL fromFred Drake2000-12-061-1/+1
| | | | | getlogin() -- it is not clear that a NULL is always an error.
* posix_getlogin(): Handle the possibility that getlogin() can returnFred Drake2000-12-061-3/+12
| | | | | | | NULL without setting errno; observed on Linux Mandrake 7.2 by an anonymous user. This closes bug #124758.
* Patch by Michael Hudson to clarify the error message fromGuido van Rossum2000-12-011-1/+7
| | | | getsockaddrarg when the address is not a tuple.
* Clarify two commentsAndrew M. Kuchling2000-11-301-2/+2
|
* Update dependencies per /F.Guido van Rossum2000-11-281-1/+1
|
* Patch #102412 from mwh: Add support for the setupterm() function, toAndrew M. Kuchling2000-11-181-15/+76
| | | | initialize the terminal without necessarily calling initscr()
* Allow new.function() called with explicit 3rd arg of None, asGuido van Rossum2000-11-131-1/+6
| | | | | | documented, and as is reasonable (since it is optional, but there's another argument following it that may require you to specify a value). This solves SF bug 121887.
* Fix for SF bug 117402, crashes on str(array) and repr(array). This was anTim Peters2000-11-101-3/+5
| | | | | unfortunate consequence of somebody switching from PyArg_Parse to PyArg_ParseTuple but without changing the argument from a NULL to a tuple.
* 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
|