summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* A bit of cleanup:Guido van Rossum2000-05-031-34/+5
| | | | | | | | | - When 'import exceptions' fails, don't suggest to use -v to print the traceback; this doesn't actually work. - Remove comment about fallback to string exceptions. - Remove a PyErr_Occurred() check after all is said and done that can never trigger. - Remove static function newstdexception() which is no longer called.
* Someone found the examples of poor practice on socket addresses!Fred Drake2000-05-031-3/+3
| | | | Spotted by Greg Kochanski <gpk@bell-labs.com>.
* Brian Hooper <brian_takashi@hotmail.com>:Fred Drake2000-05-032-0/+60
| | | | | | | Added 'u' and 'u#' tags for PyArg_ParseTuple - these turn a PyUnicodeObject argument into a Py_UNICODE * buffer, or a Py_UNICODE * buffer plus a length with the '#'. Also added an analog to 'U' for Py_BuildValue.
* Clarify status of connection of a new instance; it *is* connected ifFred Drake2000-05-031-3/+5
| | | | | you pass server information to the constructor. Error noted by Pedro Diaz Jimenez <diazjimenez@ctv.es>.
* Mark Hammond withdraws his fix -- the size includes the trailing 0 soGuido van Rossum2000-05-031-7/+2
| | | | a size of 0 *is* illegal.
* Mark Hammond:Guido van Rossum2000-05-031-2/+7
| | | | Fixes the MBCS codec to work correctly with zero length strings.
* Moved to the Compat folder (in case anyone still wants to try MPW building), ↵Jack Jansen2000-05-031-1/+0
| | | | it hasn't been used for years.
* Removed, the core-python getmtime works fine with GUSI2.Jack Jansen2000-05-031-57/+0
|
* Mark Hammond to the rescue:Guido van Rossum2000-05-031-3/+4
| | | | | | | | | | | | Checkin 2.131 of posixmodule.c changed os.stat on Windows, so that "/bin/" type notation (trailing backslash) would work on Windows to be consistent with Unix. However, the patch broke the simple case of: os.stat("\\") This did work in 1.5.2, and obviously should! This patch addresses this, and restores the correct behaviour.
* patches from Mark HammondJeremy Hylton2000-05-028-28/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attached is a set of diffs for the .py compiler that adds support for the new extended call syntax. compiler/ast.py: CallFunc node gets 2 new children to support extended call syntax - "star_args" (for "*args") and "dstar_args" (for "**args") compiler/pyassem.py It appear that self.lnotab is supposed to be responsible for tracking line numbers, but self.firstlineno was still hanging around. Removed self.firstlineno completely. NOTE - I didnt actually test that the generated code has the correct line numbers!! Stack depth tracking appeared a little broken - the checks never made it beyond the "self.patterns" check - thus, the custom methods were never called! Fixed this. (XXX Jeremy notes: I think this code is still broken because it doesn't track stack effects across block bounaries.) Added support for the new extended call syntax opcodes for depth calculations. compiler/pycodegen.py Added support for the new extended call syntax opcodes. compiler/transformer.py Added support for the new extended call syntax.
* patches from Mark HammondJeremy Hylton2000-05-021-1/+4
| | | | | | | | | compile.py: On Windows, use 'nul' instead of '/dev/null'. test.py: Use double-quotes for the command-line, as Windows doesnt recognise singles.
* 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
|