summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix PYTHONPATH for new names; rename tkinter to lib-tk, rename win toGuido van Rossum1997-09-301-1/+1
| | | | plat-win, get rid of test (which is now a package).
* Change PyEval_SaveThread() and PyEval_RestoreThread() to always do theGuido van Rossum1997-09-301-12/+9
| | | | | | tstate swapping. Only the acquiring and releasing of the lock is conditional (twice, under ``#ifdef WITH_THREAD'' and inside ``if (interpreter_lock)'').
* Fix a bug in this code that made it do the wrong thing when an optionGuido van Rossum1997-09-301-1/+4
| | | | was a single '-'. Thanks to Andrew Kuchling.
* Fixed up formatting.Fred Drake1997-09-302-114/+184
|
* Fixed up formatting, added descriptions for previously undocumented functions.Fred Drake1997-09-302-74/+138
|
* Removed extern declaration of strdup(). Doesn't appear to be important andFred Drake1997-09-301-10/+0
| | | | causes ugly noises under Windows.
* PyExc_NumberError -> PyExc_ArithmeticErrorFred Drake1997-09-301-1/+1
|
* Handy utility to guess MIME type from extension.Guido van Rossum1997-09-301-0/+190
|
* PyErr_NormalizeException(): If the exception's type is a class and theBarry Warsaw1997-09-301-0/+8
| | | | | instance's class is a subclass of this, then use the instance's class as the exception type.
* Added PyExc_Exception and PyErr_NewException.Guido van Rossum1997-09-291-0/+2
|
* Seem to be some changes related to DLL version from string resource,Guido van Rossum1997-09-292-5/+44
| | | | again (Mark Hammond is the cause of all this).
* DLL version is now loaded from a string resource.Guido van Rossum1997-09-291-0/+7
|
* Remove #ifdef __cplusplus.Guido van Rossum1997-09-291-6/+6
|
* Bump version and store DLL version in a string variable (for branding).Guido van Rossum1997-09-291-1/+9
|
* Get DLL version from a variable.Guido van Rossum1997-09-291-1/+3
|
* Don't intern the key string for getitem and delitem.Guido van Rossum1997-09-291-3/+1
|
* Removed special Windows defines, at Mark Hammond's request.Guido van Rossum1997-09-291-8/+4
|
* Move Widget.config() c.s. to Misc class, so the Tk class also inherits them.Guido van Rossum1997-09-291-31/+30
|
* Use sys.exc_info() where needed.Guido van Rossum1997-09-291-44/+106
| | | | Use "re" module, making it threadsafe.
* Use sys.exc_info() where needed.Guido van Rossum1997-09-299-32/+38
|
* 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).