Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | No longer need to be very careful with saving the exception state | Guido van Rossum | 1997-09-29 | 1 | -2/+1 |
| | | | | | first. Don't store the traceback as a local variable, to avoid circular references. | ||||
* | Removing emacs.py, which is obsolete. | Guido van Rossum | 1997-09-29 | 1 | -18/+0 |
| | |||||
* | Add optional bufsize argument to various calls so we can make the | Guido van Rossum | 1997-09-29 | 1 | -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 Rossum | 1997-09-28 | 3 | -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 Rossum | 1997-09-28 | 1 | -1/+1 |
| | |||||
* | Remove plat- prefix from MACHDEP macro; | Guido van Rossum | 1997-09-28 | 2 | -7/+7 |
| | | | | instead it is added to MACHDEPPATH in Modules/Setup.in | ||||
* | Changes submitted by Marc-Andre Lemburg to add two tables: errorcode | Guido van Rossum | 1997-09-28 | 1 | -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 Rossum | 1997-09-28 | 1 | -0/+4 |
| | |||||
* | Set the completer's word break characters appropriate for Python. | Guido van Rossum | 1997-09-26 | 1 | -0/+4 |
| | |||||
* | Use Marc Lemburg's tb_lineno() to calculate the correct line number. | Guido van Rossum | 1997-09-26 | 1 | -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 Rossum | 1997-09-26 | 1 | -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 Rossum | 1997-09-26 | 1 | -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 Rossum | 1997-09-26 | 1 | -0/+2 |
| | |||||
* | Change bind() to tag_bind() so it works again. | Guido van Rossum | 1997-09-24 | 1 | -2/+2 |
| | |||||
* | Fix by Sjoerd: don't want to resize to zero length. | Guido van Rossum | 1997-09-22 | 1 | -2/+7 |
| | |||||
* | Changes by jack so the generated modules export their types | Guido van Rossum | 1997-09-22 | 3 | -2/+18 |
| | | | | to Python. | ||||
* | Export type objects to Python | Jack Jansen | 1997-09-20 | 19 | -7/+111 |
| | |||||
* | The command can now either be a string (as before) or a list of | Guido van Rossum | 1997-09-18 | 1 | -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 after | Barry Warsaw | 1997-09-18 | 1 | -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 small | Barry Warsaw | 1997-09-18 | 1 | -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]ArithmeticError | Barry Warsaw | 1997-09-16 | 1 | -7/+7 |
| | |||||
* | NumberError => ArithmeticError | Barry Warsaw | 1997-09-16 | 1 | -5/+5 |
| | |||||
* | New API PyErr_NewException(name, base, dict) to create simple new exceptions. | Guido van Rossum | 1997-09-16 | 1 | -0/+4 |
| | |||||
* | [Py_Exc]NumberError => [Py_Exc]ArithmeticError | Barry Warsaw | 1997-09-16 | 1 | -1/+1 |
| | |||||
* | PyErr_Print(): When printing a class exception, try to dig out the | Barry Warsaw | 1997-09-16 | 1 | -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 Rossum | 1997-09-16 | 2 | -249/+0 |
| | |||||
* | Skip symlinks; don't bother keeping a list of files that is never used. | Guido van Rossum | 1997-09-16 | 1 | -5/+2 |
| | |||||
* | New API PyErr_NewException(name, base, dict) to create simple new exceptions. | Guido van Rossum | 1997-09-16 | 1 | -0/+31 |
| | |||||
* | Introduce PyExc_Exception as the conceptual root class for all exceptions. | Guido van Rossum | 1997-09-16 | 2 | -0/+8 |
| | |||||
* | Two subtle changes: | Guido van Rossum | 1997-09-16 | 1 | -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 when | Guido van Rossum | 1997-09-16 | 1 | -8/+10 |
| | | | | | "-i" is given. (Yes, I know, giving in to Marc Lemburg who wanted this :-) | ||||
* | Add strerror() interface. | Guido van Rossum | 1997-09-15 | 1 | -2/+30 |
| | |||||
* | Patch by Case Roole <cjr@bound.xs4all.nl> to fail with a more | Guido van Rossum | 1997-09-15 | 1 | -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 Rossum | 1997-09-15 | 1 | -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 Rossum | 1997-09-14 | 1 | -1/+7 |
| | |||||
* | Export names for the types defined by this module: TkappType and TkttType. | Guido van Rossum | 1997-09-13 | 1 | -0/+3 |
| | |||||
* | Three independent changes: | Guido van Rossum | 1997-09-12 | 1 | -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 module | Guido van Rossum | 1997-09-12 | 1 | -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 Rossum | 1997-09-11 | 1 | -0/+15 |
| | |||||
* | As Paul Prescod pointed out, metaprogramming is really something | Guido van Rossum | 1997-09-11 | 1 | -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 Rossum | 1997-09-11 | 1 | -2/+5 |
| | |||||
* | Added docstrings. Not for the obsolete functions though. | Guido van Rossum | 1997-09-09 | 1 | -6/+46 |
| | |||||
* | Deleted find_module_in_package and find_module_in_directory -- they | Guido van Rossum | 1997-09-09 | 1 | -53/+0 |
| | | | | aren't needed and it was a mistake to add them. | ||||
* | Update the description and the example to the new functionality, which | Guido van Rossum | 1997-09-09 | 2 | -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 Rossum | 1997-09-09 | 1 | -1/+8 |
| | |||||
* | Make functionality more closely the same as what's implemented by default. | Guido van Rossum | 1997-09-09 | 1 | -8/+12 |
| | |||||
* | *** empty log message *** | Guido van Rossum | 1997-09-09 | 1 | -0/+115 |
| | |||||
* | Crrected a flow control error that caused the wrong error message when | Guido van Rossum | 1997-09-09 | 1 | -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 EditPythonPrefs | Jack Jansen | 1997-09-09 | 4 | -30/+250 |
| | |||||
* | Added Help module | Jack Jansen | 1997-09-09 | 1 | -0/+2 |
| |