summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Disable the ZEROTRAP code -- this turns a 0 byte into a 2 byte and IGuido van Rossum2000-05-021-1/+1
| | | | | don't think that's what we want. There was some brief discussion of this somewhere but I don't recall where.
* Added an unused Unicode string for testing.Barry Warsaw2000-05-021-0/+2
|
* PyErr_GivenExceptionMatches(): Check for err==NULL and exc==NULL andBarry Warsaw2000-05-021-2/+6
| | | | | | | | | | return 0 (exceptions don't match). This means that if an ImportError is raised because exceptions.py can't be imported, the interpreter will exit "cleanly" with an error message instead of just core dumping. PyErr_SetFromErrnoWithFilename(), PyErr_SetFromWindowsErrWithFilename(): Don't test on Py_UseClassExceptionsFlag.
* _PyBuiltin_Init_2(): Remove the misleading comment.Barry Warsaw2000-05-021-1/+0
|
* initerrors(): Remove this function. String-based standard exceptionsBarry Warsaw2000-05-021-96/+4
| | | | | | | | | | | | | are no longer supported (i.e. -X option is removed). _PyBuiltin_Init_1(): Don't call initerrors(). This does mean that it is possible to raise an ImportError before that exception has been initialized, say because exceptions.py can't be found, or contains bogosity. See changes to errors.c for how this is handled. _PyBuiltin_Init_2(): Don't test Py_UseClassExceptionsFlag, just go ahead and initialize the class-based standard exceptions. If this fails, we throw a Py_FatalError.
* usage_mid: Remove the description of the -X flag; it's gone now.Barry Warsaw2000-05-021-5/+0
| | | | Py_Main(): Remove the 'X' case.
* Py_UseClassExceptionsFlag is deprecated. We keep the C variable for CBarry Warsaw2000-05-021-1/+1
| | | | API consistency, but nothing sets it or checks it now.
* At last, this backward compatibility file bites the dust.Guido van Rossum2000-05-021-434/+0
| | | | | If you still haven't updated your extension since the Grand Renaming, you don't deserve Python 1.6. :-)
* Ignore a bunch of generated files.Barry Warsaw2000-05-025-0/+23
|
* Added descriptions of \versionadded and \versionchanged.Fred Drake2000-05-021-0/+20
|
* do_cmd_versionchanged():Fred Drake2000-05-021-1/+6
| | | | | Added support for optional parameter explaining the change that was made in the specified version.
* Use \versionchanged to indicate when the second parameter to utime()Fred Drake2000-05-021-2/+3
| | | | was allowed to be None.
* \versionchanged: Added optional parameter for explanation of change.Fred Drake2000-05-021-2/+8
|
* I know this is only a temporary stop-gap measure, but the match() andGuido van Rossum2000-05-021-2/+1
| | | | | | search() functions didn't even work because _fixflags() isn't idempotent. I'm adding another stop-gap measure so that you can at least use sre.search() and sre.match() with a zero flags arg.
* Caolan McNamara:Guido van Rossum2000-05-021-0/+1
| | | | | | | telnetlib is unable to connect to a few telnet daemons because of improper IAC handling, heres an attached oneliner to reject WILL messages which will allow many more telnet daemons to work with it, namely FreeBSD.
* Sjoerd Mullender:Guido van Rossum2000-05-021-1/+1
| | | | Bad % formatting.
* The debug settings for zlib contained a bogus reference to msvcrt inGuido van Rossum2000-05-021-1/+1
| | | | the /nodefaultlib: option.
* Marc-Andre Lemburg:Guido van Rossum2000-05-011-4/+4
| | | | | Fixed \OOO interpretation for Unicode objects. \777 now correctly produces the Unicode character with ordinal 511.
* Marc-Andre Lemburg:Guido van Rossum2000-05-011-8/+20
| | | | | | | | | | | Changed all references to the MAGIC constant to use a global pyc_magic instead. This global is initially set to MAGIC, but can be changed by the _PyImport_Init() function to provide for special features implemented in the compiler which are settable using command line switches and affect the way PYC files are generated. Currently this change is only done for the -U flag.
* Eric Raymond:Guido van Rossum2000-05-011-2/+64
| | | | | | | | | | | (1) Added and documented the capability for shlex to handle lexical-level inclusion and a stack of input sources. Also, the input stream member is now documented, and the constructor takes an optional source-filename. The class provides facilities to generate error messages that track file and line number. (2) Add a convenience function to generate C-compiler style error leaders.
* Eric Raymond:Guido van Rossum2000-05-011-0/+8
| | | | Add a convenience function to generate C-compiler style error leaders.
* Eric Raymond:Guido van Rossum2000-05-011-17/+66
| | | | | | | | | | | | Added and documented the capability for shlex to handle lexical-level inclusion and a stack of input sources. Also, the input stream member is now documented, and the constructor takes an optional source-filename. The class provides facilities to generate error messages that track file and line number. [GvR: I changed the __main__ code so that it actually stops at EOF, as Eric surely intended -- however it returned '' instead of the None he was testing for.]
* Marc-Andre Lemburg:Guido van Rossum2000-05-012-0/+2
| | | | Added Py_UnicodeFlag for use by the -U command line option.
* Marc-Andre Lemburg:Guido van Rossum2000-05-011-1/+1
| | | | | | | Support for the new -U command line option option: with the option enabled the Python compiler interprets all "..." strings as u"..." (same with r"..." and ur"...").
* Marc-Andre Lemburg:Guido van Rossum2000-05-011-1/+6
| | | | | | | Added -U command line option. With the option enabled the Python compiler interprets all "..." strings as u"..." (same with r"..." and ur"...").
* Robin Becker: The following patch seems to fix a module case bug inGuido van Rossum2000-05-011-4/+4
| | | | | 1.6a2 caused by wrong return values in routine allcaps83. [GvR: I also changed the case for end-s>8 to return 0.]
* Document the new additional signature for utime(). In addition to theBarry Warsaw2000-05-011-3/+6
| | | | | previous functionality utime(path, (atime, mtime)), now allowed is utime(path, None) which sets the file's times to the current time.
* Marc-Andre Lemburg:Guido van Rossum2000-05-011-2/+2
| | | | | The two methods .readline() and .readlines() in StreamReaderWriter didn't define the self argument. Found by Tom Emerson.
* posix_utime(): Allow the second argument to be None, which invokes theBarry Warsaw2000-05-011-7/+23
| | | | | | utime(path, NULL) call, setting the atime and mtime of the file to the current time. The previous signature utime(path, (atime, mtime)) is of course still allowed.
* Get rid of memory leak caused by assingning sys.exc_info() to a local.Guido van Rossum2000-04-281-2/+2
| | | | Store sys.exc_info()[:2] instead.
* As Marc-Andre Lemburg points out, the magic number needs to changeGuido van Rossum2000-04-281-1/+1
| | | | because we've added Unicode marshalling to the repertoire.
* \file and \filenq should not be used in section titles; they are notFred Drake2000-04-281-1/+1
| | | | | sufficiently robust to survive the creation of bookmarks in the PDF format.
* Don't worry about the output dirs for the distutils manuals.Fred Drake2000-04-281-0/+2
|
* Added distutils manuals.Fred Drake2000-04-281-22/+31
| | | | Made the attributes more XHTML-friendly.
* Stripped leading 'sec:' from all section labels -- generates bad filenames,Greg Ward2000-04-282-57/+57
| | | | bad link URLs in HTML, etc.
* When building HTML releases, refer to */*.css and */*.html instead ofGreg Ward2000-04-281-3/+3
| | | | ???/*.css and ???/*.html -- need to pick up the Distutils manuals!
* Added the Distutils manuals.Greg Ward2000-04-281-0/+2
|
* Added the Distutils manuals: inst and dist.Greg Ward2000-04-281-3/+17
|
* Added 'inst' and 'dist' -- the two Distutils manuals.Greg Ward2000-04-284-4/+50
|
* Charles G Waldman:Guido van Rossum2000-04-281-36/+49
| | | | | | | | Follow a suggestion in an /*XXX*/ comment [in com_add()] to speed up compilation by using supplemental dictionaries to keep track of names and constants, eliminating quadratic behavior. With this patch in place, the time to import a 5000-line file with lots of constants [at the global level] is reduced from 20 seconds to under 3 on my system.
* Documentation patch describing the 'u' and 'u#' format specifiers,Fred Drake2000-04-281-0/+10
| | | | from Brian Hooper <brian_takashi@hotmail.com>.
* Brian Hooper <brian_takashi@hotmail.com>:Fred Drake2000-04-281-1/+31
| | | | | | | | | | | Here's a patch which changes modsupport to add 'u' and 'u#', to support building Unicode objects from a null-terminated Py_UNICODE *, and a Py_UNICODE * with length, respectively. [Conversion from 'U' to 'u' by Fred, based on python-dev comments.] Note that the use of None for NULL values of the Py_UNICODE* value is still in; I'm not sure of the conclusion on that issue.
* Sjoerd Mullender: cmp.py is obsolete...Guido van Rossum2000-04-281-5/+2
|
* Mark Hammond: For Windows debug builds, we now only offer to dumpGuido van Rossum2000-04-271-1/+5
| | | | | | remaining object references if the environment variable PYTHONDUMPREFS exists. The default behaviour caused problems for background or otherwise invisible processes that use the debug build of Python.
* Deviant1 didn't work as advertisedJeremy Hylton2000-04-271-4/+4
|
* add list_contains and tuplecontains: efficient implementations of tp_containsJeremy Hylton2000-04-272-0/+39
|
* add some more contains tests on the builtin typesJeremy Hylton2000-04-271-0/+47
|
* Support for the special macros used by the distutils documentation.Fred Drake2000-04-271-0/+21
|
* Marc-Andre Lemburg:Guido van Rossum2000-04-271-1/+3
| | | | Fixes a memory leak found by Fredrik Lundh.
* Marc-Andre Lemburg:Guido van Rossum2000-04-271-1/+1
| | | | Doc strings can now be given as Unicode strings.