summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allowGuido van Rossum1998-02-061-0/+4
| | | | | | | | embedders to force a different PYTHONHOME. - Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but flag determines whether sys.last_* are set or not. PyErr_Print() now simply calls PyErr_PrintEx(1).
* - Add Py_FrozenFlag, intended to suppress error messages fronGuido van Rossum1998-02-061-0/+1
| | | | getpath.c in frozen binaries.
* Ehm, three unrelated changes.Guido van Rossum1998-02-061-3/+31
| | | | | | | | | | | | - Add Py_FrozenFlag, intended to suppress error messages fron getpath.c in frozen binaries. - Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow embedders to force a different PYTHONHOME. - Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but flag determines whether sys.last_* are set or not. PyErr_Print() now simply calls PyErr_PrintEx(1).
* Remove commented-out \itembreak.Fred Drake1998-02-062-2/+0
|
* Update two of the \indexsubitem values to use singular rather than plural formFred Drake1998-02-062-4/+4
| | | | | of "variable": each individual variable should be identified as a single variable and not a collection in the index.
* Added rmtree(), to recursively remove a directory tree.Guido van Rossum1998-02-061-0/+32
| | | | Code by David Ascher (docstring by me).
* Two more refinements of the cleanup process.Guido van Rossum1998-02-061-3/+52
| | | | | | | | | | | | (1) Explicitly clear __builtin__._ and sys.{last,exc}_* before clearing anything else. These are common places where user values hide and people complain when their destructors fail. Since the modules containing them are deleted *last* of all, they would come too late in the normal destruction order. Sigh. (2) Add some debugging aid to cleanup (after a suggestion by Marc Lemburg) -- print the names of the modules being cleaned, and (when -vv is used) print the names of the variables being cleared.
* (py-scroll-process-buffer): Default value changed to nil to act moreBarry Warsaw1998-02-061-1/+1
| | | | like default shell-mode behavior.
* Add ref to errno module, and change ref to posix.error to os.error.Guido van Rossum1998-02-062-2/+6
|
* Add ref to errno module.Guido van Rossum1998-02-062-0/+4
|
* (py-parse-state): When looking for landing inside triple-quotedBarry Warsaw1998-02-051-1/+1
| | | | | | string, don't check for indentation at column zero. This will falsely hit a line inside a docstring that starts at column zero but ends in a colon.
* (py-python-command-args): New variable, allows user to customize theBarry Warsaw1998-02-051-1/+6
| | | | arguments past to py-python-command when invoking the Python shell.
* Retract the statement that all functions called by Python (even methodGuido van Rossum1998-02-052-8/+6
| | | | | defs) need to be declared extern "C" -- it seems to have no basis in truth (any more?).
* Two suggested features by Sjoerd:Guido van Rossum1998-02-051-6/+7
| | | | | | - use the tempcache in the open() method, too. - use the "unwrap"ped url as key for the tempcache.
* (1) Use matchobj.groups(), not matchbj.group() to get all groups.Guido van Rossum1998-02-051-4/+8
| | | | | (2) Provisional hack to avoid dying when trying to turn echo on or off on Macs, where os.system() doesn't exist.
* Fixed bitmaps; added include files and libs;Guido van Rossum1998-02-051-19/+37
| | | | | moved DLLs into their own directory (and added it to default path); install zlib.dll in SYS32; fixed location of help root.
* Add *.pdf files to the clobber target (same target as *.ps).Fred Drake1998-02-041-1/+1
|
* Tell CVS to ignore PDF files.Fred Drake1998-02-041-0/+1
|
* Added description of "D" format for PyArg_ParseTuple(), including exampleFred Drake1998-02-042-6/+172
| | | | | | | use with function name provided as well. Wrapped up PyArg_ParseTupleAndKeywords() description and provided example based on Geoff Philbrick's example to the mailing list.
* Use implicit rules to perform DVI->PS and PS->PDF conversions. PDF conversionFred Drake1998-02-041-12/+11
| | | | | requires "distill" from a FrameMaker installation. ;-) Would probably need to be different for Windows/Mac.
* \modindex{}: New macro; index module without declaring it "built-in" orFred Drake1998-02-041-0/+1
| | | | | "standard". This is mostly for documentation of modules outside the standard library.
* Added missing "{" for "\code <?stuff?>}".Fred Drake1998-02-032-2/+2
|
* Fix typo in format for strftime() used by cookie code.Guido van Rossum1998-02-021-1/+1
|
* Clarify that capwords() removes leading/trailing whitespace.Guido van Rossum1998-02-022-10/+2
| | | | Remove references to regsub, which is obsolescent.
* Moved toplevel widget to PyncheWidget.pyBarry Warsaw1998-01-311-1/+92
|
* Initial revisionBarry Warsaw1998-01-311-0/+51
|
* BadColor: new exception classBarry Warsaw1998-01-311-3/+43
| | | | rrggbb_to_triplet(): New utility function
* Better implementation of nearest(). Not faster, but betterBarry Warsaw1998-01-311-1/+2
|
* Initial revisionBarry Warsaw1998-01-311-0/+151
|
* mered Greg's suggestions, added docstringBarry Warsaw1998-01-301-18/+26
|
* Initial revisionBarry Warsaw1998-01-291-0/+71
|
* Add S_ISBLK().Guido van Rossum1998-01-292-2/+10
|
* Make this test work when imported from the interpreter instead of runGuido van Rossum1998-01-291-1/+6
| | | | from regrtest.py (it still works there too, of course).
* Sez The Dragon:Guido van Rossum1998-01-291-24/+25
| | | | | Ok, I fixed the quotes, along with a bug or two. Also added another exception.
* SMTP client by The Dragon De Monsyne <dragondm@integral.org>.Guido van Rossum1998-01-291-0/+278
|
* New version of xmllib from Sjoerd.Guido van Rossum1998-01-294-81/+283
| | | | | | | | | | | | | The main incompatibility is that the error reporting method is now called as parser.syntax_error(msg) instead of parser.syntax_error(lineno, msg) This new version also has some code to deal with the <?xml?> and <!DOCTYPE> tags at the start of an XML document. The documentation has been updated, and a small test module has been created.
* Add Piet van Oostrum's name to the comments.Guido van Rossum1998-01-291-1/+2
|
* Add simple Unix socket example by Piet van Oostrum.Guido van Rossum1998-01-283-1/+27
|
* Fixed typo reported by Grzegorz Makarewicz <mak@mikroplan.com.pl>.Fred Drake1998-01-281-1/+1
|
* (This fix is really by Jeremy)Guido van Rossum1998-01-271-22/+29
| | | | | | | | | | | Here's my suggested replacement for gzip.py for 1.5.1. I've re-implemeted methods readline and readlines, added an _unread, and tweaked read and _read. I tried a more complicated buffer scheme for unread (using a list of strings and string.join), but it was more complicated and slower. This version is a lot faster than the current version and is still pretty simple.
* Add a note explaining that multiplying a sequence with a negativeGuido van Rossum1998-01-272-2/+10
| | | | | number is the same as multiplying it with zero, and yields an empty sequence.
* Initial revisionBarry Warsaw1998-01-271-0/+23
|
* Unpickler.load_inst(), Unpickler.load_obj(), Unpickler.load_build():Barry Warsaw1998-01-261-7/+28
| | | | | | | | | | | | Fixed problems when unpickling in restricted execution environments. These methods try to assign to an instance's __class__ attribute, or access the instances __dict__, which are prohibited in REE. For the first two methods, I re-implemented the old behavior when assignment to value.__class__ fails. For the load_build() I also re-implemented the old behavior when inst.__dict__.update() fails but this means that unpickling in REE is semantically different than unpickling in unrestricted mode.
* get(): Fixed a bug in the merge order of the dictionaries. This makesBarry Warsaw1998-01-261-3/+4
| | | | | a copy of the defaults dictionary and merges the section's dictionary into it so that sections can override the defaults.
* Py_AtExit(): Added brief note about the constraint on cleanup functions notFred Drake1998-01-262-12/+18
| | | | calling the Python API.
* Paint demo by Dave Mitchell. There's clearly a demand for such aGuido van Rossum1998-01-261-0/+60
| | | | demo, so here it is.
* Use \url{} to mark a URL.Fred Drake1998-01-224-10/+10
|
* Use \url{} to mark URLs, \email{} to mark an email address.Fred Drake1998-01-222-4/+4
|
* Use \url{} to mark URLs.Fred Drake1998-01-224-20/+20
|
* Fixed indexing of {datadesc} environments.Fred Drake1998-01-221-21/+5
| | | | | | | | | Removed " (byte code instruction)" from the output of the {opcodedesc} environment; this should only appear in the index (which it now does). Removed some really old cruft related to otherwise removed debugging code. (I *think* assignments to $* set & clear auto-flush of <STDOUT>, but don't really remember. Removing them seems to not change anything!)