summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* No longer need to be very careful with saving the exception stateGuido van Rossum1997-09-291-2/+1
| | | | | first. Don't store the traceback as a local variable, to avoid circular references.
* Removing emacs.py, which is obsolete.Guido van Rossum1997-09-291-18/+0
|
* Add optional bufsize argument to various calls so we can make theGuido van Rossum1997-09-291-8/+8
| | | | | | | os.fdopen() calls unbuffered. I presume that it's enough if we can make all three of them (for stdin, stdout, and stderr) unbuffered and don't need to specify different buffer sizes per file -- that would complicate the interface more than I care for.
* Add an optional hack for threads in Tkinter.Guido van Rossum1997-09-283-2/+1005
| | | | | | | | | | | | | | | | This one works! However it requires using a modified version of tclNotify.c (provided), which requires access to the Tcl source to compile it. In order to enable this hack, add the following to the Setup line for _tkinter: tclNotify.c -DHAVE_PYTCL_WAITUNTILEVENT -I$(TCL)/generic where TCL points to the source tree of Tcl 8.0. Other versions of Tcl are not supported. The tclNotify.c file is copyrighted by Sun Microsystems; the licensing terms are in the file license.terms. According to this file, no further permission to distribute this is required, provided the file license.terms is included. Hence, I am checking that in, too.
* Add plat- prefix to MACHDEPPATH, now that it's been removed from MACHDEP.Guido van Rossum1997-09-281-1/+1
|
* Remove plat- prefix from MACHDEP macro;Guido van Rossum1997-09-282-7/+7
| | | | instead it is added to MACHDEPPATH in Modules/Setup.in
* Changes submitted by Marc-Andre Lemburg to add two tables: errorcodeGuido van Rossum1997-09-281-368/+622
| | | | | | maps errno numbers to errno names (e.g. EINTR), and errorcode maps them to message strings. (The latter is redundant because the new call posix.strerror() now does the same, but alla...)
* In whichmodule(), use __module__ if set.Guido van Rossum1997-09-281-0/+4
|
* Set the completer's word break characters appropriate for Python.Guido van Rossum1997-09-261-0/+4
|
* Use Marc Lemburg's tb_lineno() to calculate the correct line number.Guido van Rossum1997-09-261-3/+21
| | | | | | Apparently the traceback object doesn't contains the right linenumber when -O is used. Rather than guessing whether -O is on or off, use tb_lineno() unconditionally.
* Word completion for the new readline.set_completer() function.Guido van Rossum1997-09-261-0/+108
| | | | | | | | | | | | | | When completing a simple identifier, it completes keywords, built-ins and globals in __main__; when completing NAME.NAME..., it evaluates (!) the expression up to the last dot and completes its attributes. It's very cool to do "import string" type "string.", hit the completion key (twice), and see the list of names defined by the string module! Tip: to use the tab key as the completion key, call readline.parse_and_bind("tab: complete")
* Reordered and reformatted, and added some cool new features:Guido van Rossum1997-09-261-62/+183
| | | | | | | | | | set_completer(function) parse_and_bind(string) read_init_file(filename) The first is the most exciting feature: with an appropriate Python completer function, it can do dynamic completion based on the contents of your namespace!
* Release interpreter lock around readline call in [raw_]input().Guido van Rossum1997-09-261-0/+2
|
* Change bind() to tag_bind() so it works again.Guido van Rossum1997-09-241-2/+2
|
* Fix by Sjoerd: don't want to resize to zero length.Guido van Rossum1997-09-221-2/+7
|
* Changes by jack so the generated modules export their typesGuido van Rossum1997-09-223-2/+18
| | | | to Python.
* Export type objects to PythonJack Jansen1997-09-2019-7/+111
|
* The command can now either be a string (as before) or a list ofGuido van Rossum1997-09-181-3/+4
| | | | | arguments for execvp (for those who don't want the shell's argument parsing).
* Py_Initialize(): move the call to _PyImport_FixupExtension() to afterBarry Warsaw1997-09-181-1/+1
| | | | | the phase 2 init of the __builtin__ module, so that multiple interpreters will get the right exceptions.
* initerrors(): Eliminate circular reference which was causing a smallBarry Warsaw1997-09-181-3/+3
| | | | | | | | | | | | but annoying memory leak. This was introduced when PyExc_Exception was added; the loop above populating the PyExc_StandardError exception tuple started at index 1 in bltin_exc, but PyExc_Exception was added at index 0, so PyExc_StandardError was getting inserted in itself! How else can a tuple include itself?! Change the loop to start at index 2. This was a *fun* one! :-)
* [Py_Exc]NumberError => [Py_Exc]ArithmeticErrorBarry Warsaw1997-09-161-7/+7
|
* NumberError => ArithmeticErrorBarry Warsaw1997-09-161-5/+5
|
* New API PyErr_NewException(name, base, dict) to create simple new exceptions.Guido van Rossum1997-09-161-0/+4
|
* [Py_Exc]NumberError => [Py_Exc]ArithmeticErrorBarry Warsaw1997-09-161-1/+1
|
* PyErr_Print(): When printing a class exception, try to dig out theBarry Warsaw1997-09-161-6/+21
| | | | | __module__ string and if found, print <module>.<class>, unless <module> == "exceptions".
* Moved pystone to Lib/test. Use import test.pystone to run it.Guido van Rossum1997-09-162-249/+0
|
* Skip symlinks; don't bother keeping a list of files that is never used.Guido van Rossum1997-09-161-5/+2
|
* New API PyErr_NewException(name, base, dict) to create simple new exceptions.Guido van Rossum1997-09-161-0/+31
|
* Introduce PyExc_Exception as the conceptual root class for all exceptions.Guido van Rossum1997-09-162-0/+8
|
* Two subtle changes:Guido van Rossum1997-09-161-69/+56
| | | | | | | (1) Introduce Exception as the conceptual root class for all exceptions. (2) Do less work in __init__(), and more in __str__ (store args unchanged).
* Move the "import readline" to an earlier place so it is also done whenGuido van Rossum1997-09-161-8/+10
| | | | | "-i" is given. (Yes, I know, giving in to Marc Lemburg who wanted this :-)
* Add strerror() interface.Guido van Rossum1997-09-151-2/+30
|
* Patch by Case Roole <cjr@bound.xs4all.nl> to fail with a moreGuido van Rossum1997-09-151-7/+35
| | | | | explanatory message when the manual directories aren't found. (I have to say I'm surprised that it actually still works!)
* Entirely rewritten parseaddr() function by Sjoerd Mullender.Guido van Rossum1997-09-151-53/+92
| | | | (Includes a patch he sent me a few days later.)
* Added code to emit trailing ',' for singleton tuples in two places.Guido van Rossum1997-09-141-1/+7
|
* Export names for the types defined by this module: TkappType and TkttType.Guido van Rossum1997-09-131-0/+3
|
* Three independent changes:Guido van Rossum1997-09-121-5/+10
| | | | | | | | | - Don't use "from copy_reg import *". - Use cls.__module__ instead of calling whichobject(cls, cls.__name__); also try __module__ in whichmodule(), just in case. - After calling save_reduce(), add the object to the memo.
* When creating a class, set its __module__ attribute to the moduleGuido van Rossum1997-09-121-1/+22
| | | | | whose name is in the current globals' __name__ variable. If __name__ is not set, ignore this.
* Added hint to skip the heavy stuff on first reading.Guido van Rossum1997-09-111-0/+15
|
* As Paul Prescod pointed out, metaprogramming is really somethingGuido van Rossum1997-09-111-13/+11
| | | | | different (programs that write programs). We are dealing with metaclasses here. So change the words slightly.
* Install config.h under $exec_prefix/include rather than $exec_prefix/lib.Guido van Rossum1997-09-111-2/+5
|
* Added docstrings. Not for the obsolete functions though.Guido van Rossum1997-09-091-6/+46
|
* Deleted find_module_in_package and find_module_in_directory -- theyGuido van Rossum1997-09-091-53/+0
| | | | aren't needed and it was a mistake to add them.
* Update the description and the example to the new functionality, whichGuido van Rossum1997-09-092-118/+238
| | | | | | | is mostly concentrated in a generalized find_module() and the new load_module(). Added the new module type constants. Declare that SEARCH_ERROR and a whole bunch of module-type-specific functions are obsolete.
* #Added doc string.Guido van Rossum1997-09-091-1/+8
|
* Make functionality more closely the same as what's implemented by default.Guido van Rossum1997-09-091-8/+12
|
* *** empty log message ***Guido van Rossum1997-09-091-0/+115
|
* Crrected a flow control error that caused the wrong error message whenGuido van Rossum1997-09-091-22/+6
| | | | | | load-module() didn't find a built-in or frozen module. Also got rid of is_frozen(), which duplicated the functionality of find_frozen()!=NULL.
* Implemented balloon help for EditPythonPrefsJack Jansen1997-09-094-30/+250
|
* Added Help moduleJack Jansen1997-09-091-0/+2
|