- 26 Sep, 1997 4 commits
-
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
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")
-
Guido van Rossum authored
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!
-
Guido van Rossum authored
-
- 24 Sep, 1997 1 commit
-
-
Guido van Rossum authored
-
- 22 Sep, 1997 2 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
to Python.
-
- 20 Sep, 1997 1 commit
-
-
Jack Jansen authored
-
- 18 Sep, 1997 3 commits
-
-
Guido van Rossum authored
arguments for execvp (for those who don't want the shell's argument parsing).
-
Barry Warsaw authored
the phase 2 init of the __builtin__ module, so that multiple interpreters will get the right exceptions.
-
Barry Warsaw authored
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! :-)
-
- 16 Sep, 1997 11 commits
-
-
Barry Warsaw authored
-
Barry Warsaw authored
-
Guido van Rossum authored
-
Barry Warsaw authored
-
Barry Warsaw authored
__module__ string and if found, print <module>.<class>, unless <module> == "exceptions".
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
(1) Introduce Exception as the conceptual root class for all exceptions. (2) Do less work in __init__(), and more in __str__ (store args unchanged).
-
Guido van Rossum authored
"-i" is given. (Yes, I know, giving in to Marc Lemburg who wanted this :-)
-
- 15 Sep, 1997 3 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
explanatory message when the manual directories aren't found. (I have to say I'm surprised that it actually still works!)
-
Guido van Rossum authored
(Includes a patch he sent me a few days later.)
-
- 14 Sep, 1997 1 commit
-
-
Guido van Rossum authored
-
- 13 Sep, 1997 1 commit
-
-
Guido van Rossum authored
-
- 12 Sep, 1997 2 commits
-
-
Guido van Rossum authored
- 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.
-
Guido van Rossum authored
whose name is in the current globals' __name__ variable. If __name__ is not set, ignore this.
-
- 11 Sep, 1997 3 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
different (programs that write programs). We are dealing with metaclasses here. So change the words slightly.
-
Guido van Rossum authored
-
- 09 Sep, 1997 8 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
aren't needed and it was a mistake to add them.
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
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.
-
Jack Jansen authored
-