Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
e40afcf Fix up include directories for compiling the resources. 02 October 1997, 20:23:52 UTC
f1b0009 Fix path search for test data file so it works under more circumstances. 01 October 1997, 22:10:32 UTC
88d8bee Oops, forgot one. 01 October 1997, 04:43:39 UTC
ae631f7 There was actually a test that ensured that raising an exception A with an instance of a derived class B would really raise an A, not a B. Since Barry fixed this anomalous behaviour, I though I might as well fix the test! (Hmm, Barry, did you not run the tests or did you miss that test_opcodes failed?) 01 October 1997, 04:41:05 UTC
a008fa5 Fixed test for socket.error to work when it's a class exception. 01 October 1997, 04:39:05 UTC
0cb96de Apply two changes, systematically: (1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code! 01 October 1997, 04:29:29 UTC
ccf0a44 Fix PYTHONPATH for new names; rename tkinter to lib-tk, rename win to plat-win, get rid of test (which is now a package). 30 September 1997, 22:14:39 UTC
b74eca9 Change PyEval_SaveThread() and PyEval_RestoreThread() to always do the tstate swapping. Only the acquiring and releasing of the lock is conditional (twice, under ``#ifdef WITH_THREAD'' and inside ``if (interpreter_lock)''). 30 September 1997, 22:03:16 UTC
b4102bf Fix a bug in this code that made it do the wrong thing when an option was a single '-'. Thanks to Andrew Kuchling. 30 September 1997, 22:00:13 UTC
b55e07f Fixed up formatting. 30 September 1997, 21:59:27 UTC
1b914b3 Fixed up formatting, added descriptions for previously undocumented functions. 30 September 1997, 20:14:50 UTC
fd9ef4a Removed extern declaration of strdup(). Doesn't appear to be important and causes ugly noises under Windows. 30 September 1997, 19:20:01 UTC
228776c PyExc_NumberError -> PyExc_ArithmeticError 30 September 1997, 19:12:33 UTC
ac8a9f3 Handy utility to guess MIME type from extension. 30 September 1997, 19:05:50 UTC
3a74993 PyErr_NormalizeException(): If the exception's type is a class and the instance's class is a subclass of this, then use the instance's class as the exception type. 30 September 1997, 15:00:18 UTC
22ecb71 Added PyExc_Exception and PyErr_NewException. 29 September 1997, 23:40:07 UTC
271f977 Seem to be some changes related to DLL version from string resource, again (Mark Hammond is the cause of all this). 29 September 1997, 23:39:31 UTC
ec68092 DLL version is now loaded from a string resource. 29 September 1997, 23:37:12 UTC
f57c170 Remove #ifdef __cplusplus. 29 September 1997, 23:36:42 UTC
ff8c9da Bump version and store DLL version in a string variable (for branding). 29 September 1997, 23:36:17 UTC
6c1e5f2 Get DLL version from a variable. 29 September 1997, 23:34:23 UTC
4f3bf1e Don't intern the key string for getitem and delitem. 29 September 1997, 23:31:11 UTC
b4cfdfa Removed special Windows defines, at Mark Hammond's request. 29 September 1997, 23:29:08 UTC
83bd9a9 Move Widget.config() c.s. to Misc class, so the Tk class also inherits them. 29 September 1997, 23:24:52 UTC
332e144 Use sys.exc_info() where needed. Use "re" module, making it threadsafe. 29 September 1997, 23:23:46 UTC
f15d159 Use sys.exc_info() where needed. 29 September 1997, 23:22:12 UTC
c90ad21 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. 29 September 1997, 23:17:48 UTC
a3beb63 Removing emacs.py, which is obsolete. 29 September 1997, 13:19:53 UTC
da28666 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. 29 September 1997, 04:04:39 UTC
54e2091 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. 28 September 1997, 05:52:41 UTC
a9f02b8 Add plat- prefix to MACHDEPPATH, now that it's been removed from MACHDEP. 28 September 1997, 05:45:40 UTC
b97ef17 Remove plat- prefix from MACHDEP macro; instead it is added to MACHDEPPATH in Modules/Setup.in 28 September 1997, 05:44:03 UTC
49f9d8e 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...) 28 September 1997, 05:41:56 UTC
4518823 In whichmodule(), use __module__ if set. 28 September 1997, 05:38:51 UTC
b6c935a Set the completer's word break characters appropriate for Python. 26 September 1997, 23:00:37 UTC
4752966 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. 26 September 1997, 22:43:02 UTC
2781fbe 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") 26 September 1997, 22:04:56 UTC
290900a 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! 26 September 1997, 21:51:21 UTC
ee81af8 Release interpreter lock around readline call in [raw_]input(). 26 September 1997, 21:47:43 UTC
5edcf34 Change bind() to tag_bind() so it works again. 24 September 1997, 13:39:51 UTC
3bbeb7a Fix by Sjoerd: don't want to resize to zero length. 22 September 1997, 16:14:27 UTC
03be7f5 Changes by jack so the generated modules export their types to Python. 22 September 1997, 16:13:19 UTC
a755e68 Export type objects to Python 20 September 1997, 17:40:22 UTC
6dd4868 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). 18 September 1997, 20:00:39 UTC
963b871 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. 18 September 1997, 16:42:02 UTC
b01a7fa 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! :-) 18 September 1997, 03:44:38 UTC
412cdc2 [Py_Exc]NumberError => [Py_Exc]ArithmeticError 16 September 1997, 21:51:14 UTC
25131fa NumberError => ArithmeticError 16 September 1997, 21:50:59 UTC
2d2c344 New API PyErr_NewException(name, base, dict) to create simple new exceptions. 16 September 1997, 21:50:37 UTC
65349a3 [Py_Exc]NumberError => [Py_Exc]ArithmeticError 16 September 1997, 21:50:36 UTC
2f5f6a2 PyErr_Print(): When printing a class exception, try to dig out the __module__ string and if found, print <module>.<class>, unless <module> == "exceptions". 16 September 1997, 21:42:03 UTC
b81b5c7 Moved pystone to Lib/test. Use import test.pystone to run it. 16 September 1997, 18:57:42 UTC
d2ba369 Skip symlinks; don't bother keeping a list of files that is never used. 16 September 1997, 18:57:14 UTC
7617e05 New API PyErr_NewException(name, base, dict) to create simple new exceptions. 16 September 1997, 18:43:50 UTC
0474832 Introduce PyExc_Exception as the conceptual root class for all exceptions. 16 September 1997, 18:43:15 UTC
c56ba38 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). 16 September 1997, 18:42:04 UTC
3d26cc9 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 :-) 16 September 1997, 16:11:28 UTC
b6a4716 Add strerror() interface. 15 September 1997, 22:54:34 UTC
a2f626f 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!) 15 September 1997, 15:39:11 UTC
7883e1d Entirely rewritten parseaddr() function by Sjoerd Mullender. (Includes a patch he sent me a few days later.) 15 September 1997, 14:12:54 UTC
a1dbe50 Added code to emit trailing ',' for singleton tuples in two places. 14 September 1997, 23:21:51 UTC
83551bf Export names for the types defined by this module: TkappType and TkttType. 13 September 1997, 00:44:23 UTC
4fb5b28 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. 12 September 1997, 20:07:24 UTC
7cc56eb 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. 12 September 1997, 20:04:46 UTC
626a8d0 Added hint to skip the heavy stuff on first reading. 11 September 1997, 23:01:04 UTC
7ade6da 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. 11 September 1997, 22:54:49 UTC
abffd00 Install config.h under $exec_prefix/include rather than $exec_prefix/lib. 11 September 1997, 14:37:59 UTC
0207e6d Added docstrings. Not for the obsolete functions though. 09 September 1997, 22:04:42 UTC
c172f26 Deleted find_module_in_package and find_module_in_directory -- they aren't needed and it was a mistake to add them. 09 September 1997, 20:54:35 UTC
3cdb8f3 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. 09 September 1997, 20:53:37 UTC
4ece95d #Added doc string. 09 September 1997, 20:44:04 UTC
4f9f8e3 Make functionality more closely the same as what's implemented by default. 09 September 1997, 20:39:58 UTC
501d0bb *** empty log message *** 09 September 1997, 20:35:20 UTC
a86f77d 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. 09 September 1997, 18:53:47 UTC
b95901e Implemented balloon help for EditPythonPrefs 09 September 1997, 13:58:19 UTC
80b5329 Added Help module 09 September 1997, 13:57:59 UTC
675cda0 Added a button to increment buildno, so it doesn't happen automatically all the time. 09 September 1997, 13:57:15 UTC
37b4b49 Added balloon help for options dialog. Added Help module. Checked in PythonCore.prj.hqx (which had somehow slipped through until now) 09 September 1997, 13:56:34 UTC
01cfe36 Added no-site-python and old-exceptions preferences. Implemented balloon help for options dialog. 09 September 1997, 13:54:25 UTC
36b983c Added old-exception and no-site-python options and balloon help 09 September 1997, 13:53:21 UTC
bf2f602 Added interface to the Balloon Help Manager 09 September 1997, 13:52:47 UTC
6954e34 Added old-exceptions and no-site-python preferences and upped version to 4. 09 September 1997, 13:51:17 UTC
c6bb281 Added old-exceptions and no-site-python options and upped preference version to 4. Added balloon-help item to options dialog. 09 September 1997, 13:50:40 UTC
1c0d851 Renamed platform specific subdirectories to plat-*. 09 September 1997, 03:50:59 UTC
5c1f5bd Renamed dos_8x3 to dos-8x3. 09 September 1997, 03:42:09 UTC
d7500fc These directories renamed: tkinter -> lib-tk, stdwin -> lib-stdwin. 09 September 1997, 03:39:21 UTC
045e688 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. 08 September 1997, 18:30:11 UTC
9905ef9 Added support for __all__, which should be a list of modules to be imported when the user says "from package import *". 08 September 1997, 16:07:11 UTC
c8bf884 Added test for __all__. 08 September 1997, 16:06:20 UTC
e632380 Dunno, rebinhexed? 08 September 1997, 13:26:55 UTC
8a99a8a 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. 08 September 1997, 13:26:36 UTC
447e01b Preference resource now has a version number 08 September 1997, 13:24:54 UTC
222c34e Moved the include of macbuildno.h to getbuildinfo.c. Putting it here resulted in full recompilation every time. 08 September 1997, 13:24:23 UTC
2e871e4 Added SysBeep 08 September 1997, 13:23:19 UTC
5b3c971 The preference resource now has a version number 08 September 1997, 13:22:49 UTC
ac62569 sys.prefix and sys.exec_prefix are now set correctly. 08 September 1997, 13:22:22 UTC
80cf5a8 The python preference resource now has a version number, and "optimize" has replaced "don't print". 08 September 1997, 13:21:37 UTC
3b3a287 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. 08 September 1997, 13:19:42 UTC
d024083 Run NumPy installer, if present. Added a couple of splash screens to show what we're doing 08 September 1997, 13:16:29 UTC
4cf4de5 Brought up to date with new options and env vars. 08 September 1997, 04:06:15 UTC
back to top