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

sort by:
Revision Author Date Message Commit Date
d6449a2 Be more careful with closing fd's 0,1,2. 07 October 1997, 14:37:31 UTC
ef31b24 Add note about condition.py. 07 October 1997, 14:37:00 UTC
92664b8 Completed the changes between 1.5a3 and now. Not yet sorted though. 07 October 1997, 00:12:43 UTC
6f2a26d And "ni" has been documented... 06 October 1997, 21:53:50 UTC
2df7583 Oops; don't know if this was my typo or not: There was a "p" on a line that should have been blank. 06 October 1997, 21:52:31 UTC
c211254 Updated the section "Parsing Python". 06 October 1997, 21:41:30 UTC
14bf341 Added keyword module entry. 06 October 1997, 21:40:48 UTC
e061a51 Minor nits (Lib/token.py is a file, token is a module...). Added docs for symbol and token modules at the end. 06 October 1997, 21:40:20 UTC
db12f34 Documentation for the keyword module. 06 October 1997, 21:39:16 UTC
e3dbc7e Reduced number of temporary names used at module scope. Use underscores in front of temporary names in the module namespace. 06 October 1997, 21:28:04 UTC
00eb96a Move the pprint docs after the code docs, so that all parser/codegen type things come together. 06 October 1997, 21:26:03 UTC
9971f68 Fix comment to add the all-important trailing colon to the example. Print the author with the revision date and filename. 06 October 1997, 21:09:32 UTC
dc1a072 Reduced number of temporary names used at module scope. Use underscores in front of temporary names in the module namespace. 06 October 1997, 21:06:29 UTC
1f83cce Done with adding changes from 1.4 till 1.5a3. 06 October 1997, 21:04:35 UTC
923c4ee Don't do weird things with the "import parser"; just do it. Sheesh... 06 October 1997, 20:56:43 UTC
a11cccc The usual (and some new modules). 06 October 1997, 20:19:59 UTC
d575480 A variant on webchecker that creates a mirror copy of a remote site. 06 October 1997, 18:54:25 UTC
2237b73 Several changes: - Change the code that looks for robots.txt to always look in /, even if the "root" path is somewhere deep down below. - Add link processing in <AREA> tags. - Change safeclose() to avoid crashing when the file has no geturl() method. 06 October 1997, 18:54:01 UTC
dc0f00a Document the mapping object's new get() method. 06 October 1997, 17:50:48 UTC
fc3e61c UserDict.get(): New method to mirror built-in dictionaries' get() method. 06 October 1997, 17:50:04 UTC
c38c5da dict_get(): New method for item access with different semantics than __getitem__(). This method never raises an exception; if the key is not in the dictionary, the second (optional) argument is returned. If the second argument is not provided and the key is missing, None is returned. mapp_methods: added "get" method. 06 October 1997, 17:49:20 UTC
596db31 Move the __getitem__() definition from StandardException to Exception. This allows stuff like this out of the box: try: ... except socket.error, (code, msg): ... 06 October 1997, 15:48:20 UTC
bf9d353 New "re" regular expression support. The new re module was written by Andrew Kuchling and uses the pcre code in ../Modules/. The old re module has been renamed to re1, just in case you need it for comparison. 06 October 1997, 14:45:17 UTC
51b3aa3 New "re" regular expression support. This code is written by Philip Hazel and Andrew Kuchling. It requires a new "re.py" module, too. 06 October 1997, 14:43:11 UTC
04ac894 Add the four latex2html output directories: api, ext, lib, tut. 06 October 1997, 13:20:17 UTC
c44d3d6 Done with tread state descriptions. Sigh! 06 October 1997, 05:10:47 UTC
86b7db3 Oops -- needed to fix another place affected by the change back to $(MACHDEP) being just the platform name, without "plat-" prefix... (To be precise, the libainstall target was totally broken.) 06 October 1997, 00:15:31 UTC
0bfd146 Added strerror() 05 October 1997, 18:54:52 UTC
bc3b136 Removed emacs.py 05 October 1997, 18:54:36 UTC
eb53ae4 Fixed some stuff that was incorrectly copied from regex. 05 October 1997, 18:54:07 UTC
7974b0f Documented __import__, callable, isinstance, issubclass, and slice. 05 October 1997, 18:53:00 UTC
df3dba0 Documented new exceptions and exception classes. 05 October 1997, 18:51:26 UTC
5344d4f Add -N0 to dvips flags to generate page structure comments. 05 October 1997, 18:51:02 UTC
42cefd0 Checkpoint. Added docs for the new exception handling APIs and for the interfaces defined in import.h. 05 October 1997, 15:27:29 UTC
474ba3b The directory containing config.h has changed. 05 October 1997, 03:01:28 UTC
6af6d35 Turns out whatsound.py and sndhdr.py were identical modules. Since there's also an imghdr.py file, I propose to make sndhdr.py the official one. For compatibility, whatsound.py imports * from sndhdr.py. 04 October 1997, 20:29:17 UTC
bfeb74d install: New target that installs shared modules in $exec_prefix/lib/python$VERSION/site-packages by default. 04 October 1997, 04:56:40 UTC
d99d714 Install install-sh with the other config files. Could be useful for an install target in Misc/Makefile.pre.in. 04 October 1997, 04:35:24 UTC
2ac650f New version of PyErr_NewException() that is compatible with -X option. 03 October 1997, 19:50:55 UTC
999e5e9 Initialize Py_UseClassExceptionsFlag to 1. 03 October 1997, 19:46:02 UTC
a7f2e81 Remove unreachable "return 1" at end of ensure_fromlist(). 03 October 1997, 15:33:32 UTC
aa9606f Fix small omission: with all the new code, sys.exit(None) would print "None"; this should be equivalent to sys.exit(0). 03 October 1997, 13:53:28 UTC
d80b3bd Argh; do the same for the "Release" version of the config. 02 October 1997, 20:36:45 UTC
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
back to top