Guido van Rossum [Mon, 29 Sep 1997 23:36:17 +0000 (23:36 +0000)]
Bump version and store DLL version in a string variable (for branding).
Guido van Rossum [Mon, 29 Sep 1997 23:34:23 +0000 (23:34 +0000)]
Get DLL version from a variable.
Guido van Rossum [Mon, 29 Sep 1997 23:31:11 +0000 (23:31 +0000)]
Don't intern the key string for getitem and delitem.
Guido van Rossum [Mon, 29 Sep 1997 23:29:08 +0000 (23:29 +0000)]
Removed special Windows defines, at Mark Hammond's request.
Guido van Rossum [Mon, 29 Sep 1997 23:24:52 +0000 (23:24 +0000)]
Move Widget.config() c.s. to Misc class, so the Tk class also inherits them.
Guido van Rossum [Mon, 29 Sep 1997 23:23:46 +0000 (23:23 +0000)]
Use sys.exc_info() where needed.
Use "re" module, making it threadsafe.
Guido van Rossum [Mon, 29 Sep 1997 23:22:12 +0000 (23:22 +0000)]
Use sys.exc_info() where needed.
Guido van Rossum [Mon, 29 Sep 1997 23:17:48 +0000 (23:17 +0000)]
No longer need to be very careful with saving the exception state
first. Don't store the traceback as a local variable, to avoid
circular references.
Guido van Rossum [Mon, 29 Sep 1997 13:19:53 +0000 (13:19 +0000)]
Removing emacs.py, which is obsolete.
Guido van Rossum [Mon, 29 Sep 1997 04:04:39 +0000 (04:04 +0000)]
Add optional bufsize argument to various calls so we can make the
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.
Guido van Rossum [Sun, 28 Sep 1997 05:52:41 +0000 (05:52 +0000)]
Add an optional hack for threads in Tkinter.
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.
Guido van Rossum [Sun, 28 Sep 1997 05:45:40 +0000 (05:45 +0000)]
Add plat- prefix to MACHDEPPATH, now that it's been removed from MACHDEP.
Guido van Rossum [Sun, 28 Sep 1997 05:44:03 +0000 (05:44 +0000)]
Remove plat- prefix from MACHDEP macro;
instead it is added to MACHDEPPATH in Modules/Setup.in
Guido van Rossum [Sun, 28 Sep 1997 05:41:56 +0000 (05:41 +0000)]
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
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...)
Guido van Rossum [Sun, 28 Sep 1997 05:38:51 +0000 (05:38 +0000)]
In whichmodule(), use __module__ if set.
Guido van Rossum [Fri, 26 Sep 1997 23:00:37 +0000 (23:00 +0000)]
Set the completer's word break characters appropriate for Python.
Guido van Rossum [Fri, 26 Sep 1997 22:43:02 +0000 (22:43 +0000)]
Use Marc Lemburg's tb_lineno() to calculate the correct line number.
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 [Fri, 26 Sep 1997 22:04:56 +0000 (22:04 +0000)]
Word completion for the new readline.set_completer() function.
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 [Fri, 26 Sep 1997 21:51:21 +0000 (21:51 +0000)]
Reordered and reformatted, and added some cool new features:
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 [Fri, 26 Sep 1997 21:47:43 +0000 (21:47 +0000)]
Release interpreter lock around readline call in [raw_]input().
Guido van Rossum [Wed, 24 Sep 1997 13:39:51 +0000 (13:39 +0000)]
Change bind() to tag_bind() so it works again.
Guido van Rossum [Mon, 22 Sep 1997 16:14:27 +0000 (16:14 +0000)]
Fix by Sjoerd: don't want to resize to zero length.
Guido van Rossum [Mon, 22 Sep 1997 16:13:19 +0000 (16:13 +0000)]
Changes by jack so the generated modules export their types
to Python.
Jack Jansen [Sat, 20 Sep 1997 17:40:22 +0000 (17:40 +0000)]
Export type objects to Python
Guido van Rossum [Thu, 18 Sep 1997 20:00:39 +0000 (20:00 +0000)]
The command can now either be a string (as before) or a list of
arguments for execvp (for those who don't want the shell's argument
parsing).
Barry Warsaw [Thu, 18 Sep 1997 16:42:02 +0000 (16:42 +0000)]
Py_Initialize(): move the call to _PyImport_FixupExtension() to after
the phase 2 init of the __builtin__ module, so that multiple
interpreters will get the right exceptions.
Barry Warsaw [Thu, 18 Sep 1997 03:44:38 +0000 (03:44 +0000)]
initerrors(): Eliminate circular reference which was causing a small
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! :-)
Barry Warsaw [Tue, 16 Sep 1997 21:51:14 +0000 (21:51 +0000)]
[Py_Exc]NumberError => [Py_Exc]ArithmeticError
Barry Warsaw [Tue, 16 Sep 1997 21:50:59 +0000 (21:50 +0000)]
NumberError => ArithmeticError
Guido van Rossum [Tue, 16 Sep 1997 21:50:37 +0000 (21:50 +0000)]
New API PyErr_NewException(name, base, dict) to create simple new exceptions.
Barry Warsaw [Tue, 16 Sep 1997 21:50:36 +0000 (21:50 +0000)]
[Py_Exc]NumberError => [Py_Exc]ArithmeticError
Barry Warsaw [Tue, 16 Sep 1997 21:42:03 +0000 (21:42 +0000)]
PyErr_Print(): When printing a class exception, try to dig out the
__module__ string and if found, print <module>.<class>, unless
<module> == "exceptions".
Guido van Rossum [Tue, 16 Sep 1997 18:57:42 +0000 (18:57 +0000)]
Moved pystone to Lib/test. Use import test.pystone to run it.
Guido van Rossum [Tue, 16 Sep 1997 18:57:14 +0000 (18:57 +0000)]
Skip symlinks; don't bother keeping a list of files that is never used.
Guido van Rossum [Tue, 16 Sep 1997 18:43:50 +0000 (18:43 +0000)]
New API PyErr_NewException(name, base, dict) to create simple new exceptions.
Guido van Rossum [Tue, 16 Sep 1997 18:43:15 +0000 (18:43 +0000)]
Introduce PyExc_Exception as the conceptual root class for all exceptions.
Guido van Rossum [Tue, 16 Sep 1997 18:42:04 +0000 (18:42 +0000)]
Two subtle changes:
(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 [Tue, 16 Sep 1997 16:11:28 +0000 (16:11 +0000)]
Move the "import readline" to an earlier place so it is also done when
"-i" is given. (Yes, I know, giving in to Marc Lemburg who wanted
this :-)
Guido van Rossum [Mon, 15 Sep 1997 22:54:34 +0000 (22:54 +0000)]
Add strerror() interface.
Guido van Rossum [Mon, 15 Sep 1997 15:39:11 +0000 (15:39 +0000)]
Patch by Case Roole <cjr@bound.xs4all.nl> to fail with a more
explanatory message when the manual directories aren't found.
(I have to say I'm surprised that it actually still works!)
Guido van Rossum [Mon, 15 Sep 1997 14:12:54 +0000 (14:12 +0000)]
Entirely rewritten parseaddr() function by Sjoerd Mullender.
(Includes a patch he sent me a few days later.)
Guido van Rossum [Sun, 14 Sep 1997 23:21:51 +0000 (23:21 +0000)]
Added code to emit trailing ',' for singleton tuples in two places.
Guido van Rossum [Sat, 13 Sep 1997 00:44:23 +0000 (00:44 +0000)]
Export names for the types defined by this module: TkappType and TkttType.
Guido van Rossum [Fri, 12 Sep 1997 20:07:24 +0000 (20:07 +0000)]
Three independent changes:
- 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 [Fri, 12 Sep 1997 20:04:46 +0000 (20:04 +0000)]
When creating a class, set its __module__ attribute to the module
whose name is in the current globals' __name__ variable. If __name__
is not set, ignore this.
Guido van Rossum [Thu, 11 Sep 1997 23:01:04 +0000 (23:01 +0000)]
Added hint to skip the heavy stuff on first reading.
Guido van Rossum [Thu, 11 Sep 1997 22:54:49 +0000 (22:54 +0000)]
As Paul Prescod pointed out, metaprogramming is really something
different (programs that write programs). We are dealing with
metaclasses here. So change the words slightly.
Guido van Rossum [Thu, 11 Sep 1997 14:37:59 +0000 (14:37 +0000)]
Install config.h under $exec_prefix/include rather than $exec_prefix/lib.
Guido van Rossum [Tue, 9 Sep 1997 22:04:42 +0000 (22:04 +0000)]
Added docstrings. Not for the obsolete functions though.
Guido van Rossum [Tue, 9 Sep 1997 20:54:35 +0000 (20:54 +0000)]
Deleted find_module_in_package and find_module_in_directory -- they
aren't needed and it was a mistake to add them.
Guido van Rossum [Tue, 9 Sep 1997 20:53:37 +0000 (20:53 +0000)]
Update the description and the example to the new functionality, which
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 [Tue, 9 Sep 1997 20:44:04 +0000 (20:44 +0000)]
#Added doc string.
Guido van Rossum [Tue, 9 Sep 1997 20:39:58 +0000 (20:39 +0000)]
Make functionality more closely the same as what's implemented by default.
Guido van Rossum [Tue, 9 Sep 1997 20:35:20 +0000 (20:35 +0000)]
*** empty log message ***
Guido van Rossum [Tue, 9 Sep 1997 18:53:47 +0000 (18:53 +0000)]
Crrected a flow control error that caused the wrong error message when
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 [Tue, 9 Sep 1997 13:58:19 +0000 (13:58 +0000)]
Implemented balloon help for EditPythonPrefs
Jack Jansen [Tue, 9 Sep 1997 13:57:59 +0000 (13:57 +0000)]
Added Help module
Jack Jansen [Tue, 9 Sep 1997 13:57:15 +0000 (13:57 +0000)]
Added a button to increment buildno, so it doesn't happen
automatically all the time.
Jack Jansen [Tue, 9 Sep 1997 13:56:34 +0000 (13:56 +0000)]
Added balloon help for options dialog.
Added Help module.
Checked in PythonCore.prj.hqx (which had somehow slipped through until
now)
Jack Jansen [Tue, 9 Sep 1997 13:54:25 +0000 (13:54 +0000)]
Added no-site-python and old-exceptions preferences.
Implemented balloon help for options dialog.
Jack Jansen [Tue, 9 Sep 1997 13:53:21 +0000 (13:53 +0000)]
Added old-exception and no-site-python options and balloon help
Jack Jansen [Tue, 9 Sep 1997 13:52:47 +0000 (13:52 +0000)]
Added interface to the Balloon Help Manager
Jack Jansen [Tue, 9 Sep 1997 13:51:17 +0000 (13:51 +0000)]
Added old-exceptions and no-site-python preferences and upped version
to 4.
Jack Jansen [Tue, 9 Sep 1997 13:50:40 +0000 (13:50 +0000)]
Added old-exceptions and no-site-python options and upped preference
version to 4.
Added balloon-help item to options dialog.
Guido van Rossum [Tue, 9 Sep 1997 03:50:59 +0000 (03:50 +0000)]
Renamed platform specific subdirectories to plat-*.
Guido van Rossum [Tue, 9 Sep 1997 03:42:09 +0000 (03:42 +0000)]
Renamed dos_8x3 to dos-8x3.
Guido van Rossum [Tue, 9 Sep 1997 03:39:21 +0000 (03:39 +0000)]
These directories renamed: tkinter -> lib-tk, stdwin -> lib-stdwin.
Guido van Rossum [Mon, 8 Sep 1997 18:30:11 +0000 (18:30 +0000)]
Patch submitted by Brad Howes (with one bug fixed by me): allow
arbitrary nested parens in a %(...)X style format.
#Also folded two lines and added more detail to the error message for
#unsupported format character.
Guido van Rossum [Mon, 8 Sep 1997 16:07:11 +0000 (16:07 +0000)]
Added support for __all__, which should be a list of modules to be
imported when the user says "from package import *".
Guido van Rossum [Mon, 8 Sep 1997 16:06:20 +0000 (16:06 +0000)]
Added test for __all__.
Jack Jansen [Mon, 8 Sep 1997 13:26:55 +0000 (13:26 +0000)]
Dunno, rebinhexed?
Jack Jansen [Mon, 8 Sep 1997 13:26:36 +0000 (13:26 +0000)]
Preferences is a general module to get (and set) preferences in
resource files with various inheritence rules, parsers, etc.
pythonprefs uses this to create a single uniform interface to all
relevant python preferences.
Jack Jansen [Mon, 8 Sep 1997 13:24:54 +0000 (13:24 +0000)]
Preference resource now has a version number
Jack Jansen [Mon, 8 Sep 1997 13:24:23 +0000 (13:24 +0000)]
Moved the include of macbuildno.h to getbuildinfo.c. Putting it here
resulted in full recompilation every time.
Jack Jansen [Mon, 8 Sep 1997 13:23:19 +0000 (13:23 +0000)]
Added SysBeep
Jack Jansen [Mon, 8 Sep 1997 13:22:49 +0000 (13:22 +0000)]
The preference resource now has a version number
Jack Jansen [Mon, 8 Sep 1997 13:22:22 +0000 (13:22 +0000)]
sys.prefix and sys.exec_prefix are now set correctly.
Jack Jansen [Mon, 8 Sep 1997 13:21:37 +0000 (13:21 +0000)]
The python preference resource now has a version number, and
"optimize" has replaced "don't print".
Jack Jansen [Mon, 8 Sep 1997 13:19:42 +0000 (13:19 +0000)]
Major overhaul: this is now little more than a user interface, the
preference handling code is in modules pythonprefs and preferences.
This should finally make it easier for someone (Just?) to write a
decent interface to preference setting, and it'll allow setting
initial sys.path and such from ConfigurePython.
Jack Jansen [Mon, 8 Sep 1997 13:16:29 +0000 (13:16 +0000)]
Run NumPy installer, if present.
Added a couple of splash screens to show what we're doing
Guido van Rossum [Mon, 8 Sep 1997 04:06:15 +0000 (04:06 +0000)]
Brought up to date with new options and env vars.
Guido van Rossum [Mon, 8 Sep 1997 02:47:46 +0000 (02:47 +0000)]
#Adapt the doc string to reality.
Guido van Rossum [Mon, 8 Sep 1997 02:31:17 +0000 (02:31 +0000)]
#Oops, missed a plat- prefix (for Lib/generic).
Guido van Rossum [Mon, 8 Sep 1997 02:20:57 +0000 (02:20 +0000)]
Some nits, added a whole section on what you could do with
metaclasses, and acks.
Guido van Rossum [Mon, 8 Sep 1997 02:17:31 +0000 (02:17 +0000)]
Set it to 1.5a4, now we have dotted-name import...
Guido van Rossum [Mon, 8 Sep 1997 02:16:33 +0000 (02:16 +0000)]
Initialize self.__tempfiles to [] in the constructor (else it remains
a shared class variable -- but each instance will attempt to clean it
up entirely ob cleanup).
Guido van Rossum [Mon, 8 Sep 1997 02:14:09 +0000 (02:14 +0000)]
Change packages -> site-packages
Guido van Rossum [Mon, 8 Sep 1997 02:08:11 +0000 (02:08 +0000)]
*Semantic change*: when unpickling the instance variables of an
instance, use inst.__dict__.update(value) instead of a for loop with
setattr() over the value.keys(). This is more consistent (the
pickling doesn't use getattr() either but pickles inst.__dict__) and
avoids problems with instances that have a __setattr__ hook.
But it *is* a semantic change (because the setattr hook is no longer
used). So beware!
Guido van Rossum [Mon, 8 Sep 1997 02:04:00 +0000 (02:04 +0000)]
Indent the #error so that a strict K&R cpp doesn't complain.
Guido van Rossum [Mon, 8 Sep 1997 02:02:37 +0000 (02:02 +0000)]
Change packages to site-packages (so it's clearly not a package itself).
Guido van Rossum [Mon, 8 Sep 1997 01:56:35 +0000 (01:56 +0000)]
Prefix MACHDEP directory with 'plat-'.
Guido van Rossum [Mon, 8 Sep 1997 01:54:43 +0000 (01:54 +0000)]
Change the names of the subdirectories tkinter and stdwin to
lib-tk and lib-stdwin. (BTW this was also done in the previous
checkin of (toplevel)/Makefile.in, though not noted in the checkin
message.)
Guido van Rossum [Mon, 8 Sep 1997 01:51:23 +0000 (01:51 +0000)]
Forgot to install the test/output directory!
Guido van Rossum [Sun, 7 Sep 1997 16:54:34 +0000 (16:54 +0000)]
Look for uuencoded test files in the directory containing this module, too.
(This is necessary because when imported as test.test_rgbimg, the test
directory is not on sys.path.)
Guido van Rossum [Sun, 7 Sep 1997 16:50:45 +0000 (16:50 +0000)]
Look for uuencoded test files in the directory containing this module, too.
(This is necessary because when imported as test.test_rgbimg, the test
directory is not on sys.path.)
Guido van Rossum [Sun, 7 Sep 1997 16:44:37 +0000 (16:44 +0000)]
Reverse the order in which Setup and Setup.local are passed to the
makesetup script. (Sorry Sjoerd -- I know you proposed this a while
ago and I didn't think it would work then. I looked again and it
does work.)
Guido van Rossum [Sun, 7 Sep 1997 16:42:34 +0000 (16:42 +0000)]
Pass optional arguments (globals(), locals(), []) to __import__() so
it will run as package test, e.g. this will run the test suite:
import test.regrtest
test.regrtest.main()
Guido van Rossum [Sun, 7 Sep 1997 06:16:57 +0000 (06:16 +0000)]
Bugfix: import A.B from inside package was busted by mark_miss optimization.
Guido van Rossum [Sun, 7 Sep 1997 06:12:11 +0000 (06:12 +0000)]
Fix details in the test:
- traceback should go to stdout!
- don't import ni, import t1!
- nicer support for command line options, only if run as __main__
Guido van Rossum [Sun, 7 Sep 1997 03:02:39 +0000 (03:02 +0000)]
Added warning about ni's obsolescence. Retracted semantic changes
(i.e. when using ni, the old __init__.py semantics prevail!)