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

sort by:
Revision Author Date Message Commit Date
00b299a removed getpath_nt.c in favor of revamped getpathp.c 13 August 1997, 21:38:04 UTC
eea1449 Much rewritten. Added Win32 registry stuff (from getpath_nt.c, which is now obsolete), and changed the default path calculations. $PYTHONPATH is now added as a prefix (like it's always been on Unix); $PYTHONHOME takes precedence over the program pathname; and only one landmark is needed. 13 August 1997, 21:30:44 UTC
407a22d Made it real. Changed locking() to work with file descriptors instead of Python file objects. Added open_osfhandle() (Mark had done some work for that), get_osfhandle(), setmode(), and the console I/O functions kbhit(), getch(), getche(), ungetch(), and putch(). 13 August 1997, 19:57:53 UTC
8f1b651 Some changes to make it work on NT; add the directory where the binary lives to the end of the path. (Still to do: add $PYTHONPATH to the front instead of using it as is; add the Win32 registry paths as in getpath_nt.c (which can then retire).) 13 August 1997, 19:55:43 UTC
0e6ae93 Moved PyWin_IsWin32s() here. 13 August 1997, 19:53:11 UTC
5137ea9 Remove #define main; remove vc40 from PYTHONPATH. 13 August 1997, 19:52:26 UTC
abed54a Fix bug with \< (AMK). 13 August 1997, 16:35:04 UTC
6dc61b1 Add try-finally to close the file after loading it in ModuleLoader.load_module! (Thanks to Daniel Larsson who complained about this.) 13 August 1997, 14:48:36 UTC
6af4abd Various changes by AMK, e.g. remove \e, \cX, add \v 13 August 1997, 03:25:34 UTC
c24f038 Changes by AMK: Removed handling of \e, \cX escapes, following a string-SIG discussion. Fixed minor typos in re.py re.error is now set equal to reop.error. Move definition of constants like NORMAL and CHARCLASS into reop, which exports them; re.py was changed to import them from reop. Added C equivalents of _expand and expand_escape to reop, and changed re.py to use them. 13 August 1997, 03:24:53 UTC
52d6832 Add syntax for hex,octal 13 August 1997, 03:21:14 UTC
142eeb8 cPickle release 0.3 from Jim Fulton 13 August 1997, 03:14:41 UTC
f55afae New dialog from Fred Lundh 12 August 1997, 18:21:21 UTC
9d9af2c Fixes for the Mac. (Jack) 12 August 1997, 18:21:08 UTC
a5e9fb6 Changes suggested by Jim fulton: - Moved most imports to the top, for faster loadingf when using ni. - Always open the temp file in binary mode. 12 August 1997, 18:18:13 UTC
ca54982 Added TemporaryFile and wrapper class by Jim Fulton. Look in more env vars (for NT: TEMP, TMP). 12 August 1997, 18:00:12 UTC
3fb1aea Added decls for stuff from myreadline. 12 August 1997, 15:14:22 UTC
7242905 Megapatch for IRIX 6 by Sjoerd. 12 August 1997, 14:58:54 UTC
8e5e446 Added prototype for various finalizers. 12 August 1997, 14:57:21 UTC
bb301c5 Added prototype for PyGrammar_RemoveAccelerators(). 12 August 1997, 14:57:08 UTC
de4a4ca Added buffer_info() method that returns address and length in bytes of the buffer used to hold the array -- for dangerous low-level I/O. 12 August 1997, 14:55:56 UTC
ea46e4d Fix mixup about PyErr_NoMemory() prototype. 12 August 1997, 14:54:54 UTC
741689d Use string interning and caching to get speedups on the mac (Jack). 12 August 1997, 14:53:39 UTC
e5b4026 Use strerror on the mac if using MSL (Jack). 12 August 1997, 14:51:52 UTC
15974ad Bump MS_DLL_ID to 1.5.0. 12 August 1997, 14:48:03 UTC
d510b72 Allow paths without drive specifier (Jack). 12 August 1997, 14:47:24 UTC
e2ad88c Rewrite normcase() using string.translate... 12 August 1997, 14:46:58 UTC
efa6837 Treat all HTTP/1.* versions the same. 12 August 1997, 14:46:13 UTC
2567dd6 Two changes: (1) No longer close self.sock; close it on close(). (Guido) (2) Don't use regular expressions for what can be done simply with string.split() -- regex is thread unsafe. (Jeremy) (3) Delete unused imports. (Jeremy) 11 August 1997, 21:52:17 UTC
4462064 Renamed Py_input_hook to PyOS_InputHook. Also cleaned out some CR's left by the VC++ editor. 11 August 1997, 18:57:29 UTC
0357d02 Rewrite using class, to make waiting for processes possible; by default children are waited for automatically. 11 August 1997, 03:27:24 UTC
0b4b8a2 Changed indents to 4 *spaces*; added Emacs variables to avoid inserting tabs. All this (and the previous patch) in preparation for porting to NT. 10 August 1997, 16:56:48 UTC
9a6e855 Support using -p/-P to point to the source/build directory instead of the install directory. Added -h option to print the full usage message; by default, only two lines are now printed for errors. 10 August 1997, 16:47:17 UTC
516b620 #Fixed two byte-compiler errors 09 August 1997, 06:43:20 UTC
c72c11c #Checkpointing X/Emacs 20'fication of this mode. 09 August 1997, 06:42:08 UTC
98d9d09 Added O_BINARY and O_TEXT (for Windows). 08 August 1997, 21:48:51 UTC
9c43c59 More emphasis on os.environ's calling of putenv; and added hint about flags for open(). 08 August 1997, 21:05:09 UTC
7d6b7d3 #Bumping to version 3.0 08 August 1997, 16:19:03 UTC
48f662d mkalias() now has an optional third parameter to create relative aliases (Just) 08 August 1997, 15:00:59 UTC
756a69f - Added classes to support class/property generation by gensuitemodule - Fixed Property class: selector is a 'type', not an 'enum' 08 August 1997, 15:00:03 UTC
a8441de Added (dummy) PyOS_FiniInterrupts 08 August 1997, 14:57:37 UTC
7330b39 Adapted for 1.5a3: Py_SupressPrintingFlag is gone, and Py_SetProgramName replaces Py_GetProgramName 08 August 1997, 14:56:41 UTC
4be0ce3 New version number, new tk resources, new error numbers, new GUSI 08 August 1997, 14:55:03 UTC
12f318a Don't define ENOENT when compiling with MSL 08 August 1997, 14:53:16 UTC
04df97c CW11 projects replaced by CW Pro 1 projects, and all cfm68k/ppc projects unified (as much as possible: PythonCore is still separate). 08 August 1997, 14:51:57 UTC
e3fa874 Modified for CW Pro 1 projects. Convention used: .mu files are old project files, which have to be cleaned up before checking in, .prj files are CW Pro 1 projects (which are always clean). Prj files are still binhexed, even though they only have a data fork (and, hence, could be checked in in binary mode). 08 August 1997, 14:51:54 UTC
6654422 Generate class, property and comparison code (finally!). The resulting code isn't ideal yet: xxx.Window(1).Paragraph(3).font will only work if all the classes and properties are declared in the same suite, but at least font(Paragraph(3, Window(1))) always works. 08 August 1997, 14:49:02 UTC
622f73f Remove unised variable 07 August 1997, 19:22:48 UTC
02c0467 Rather unsatisfactory temporary hack to get it to run under WIN32 -- remove file handler interface, don't use Py_input_hook. 07 August 1997, 00:12:22 UTC
29c1ea5 Got the new structure working with MSVC 4.2. main_nt.c is gone -- we can use Modules/python.c now. Added Mark Hammond's module msvcrt.c (untested). Added several new symbols. 07 August 1997, 00:11:34 UTC
fb84255 New version of Vladimir Marangozov's AIX hacks -- simpler etc. 06 August 1997, 23:42:07 UTC
b06df27 --with-readline is obsolete (and some editorial stuff in README) 05 August 1997, 21:50:20 UTC
3c7c678 Got rid of --with-readline, at last. 05 August 1997, 21:47:42 UTC
9b5dbed Attempt to import readline at interactive startup. 05 August 1997, 21:34:14 UTC
717c6f9 Move GNU readline interface to ../Modules/readline.c. Add Py_input_hook (used by _tkinter and perhaps Gist). 05 August 1997, 21:28:12 UTC
0969d36 New mechanism for GNU readline interface, via module 05 August 1997, 21:27:50 UTC
570278b Add test for function comparisons 05 August 1997, 16:52:50 UTC
83f9ad8 Fix bug in comparing function objects detected by Sjoerd: SystemError: bad argument to internal function caused by comparing NULL pointer default args. 05 August 1997, 16:51:05 UTC
d6615ab Get READABLE c.s. from _tkinter instead of conditional definition. in Tk.destroy(), reset _default_root to None when it is us. 05 August 1997, 02:35:01 UTC
1d529d1 Add a cast to the call to _Py_Dealloc in the expanded version of Py_DECREF, to reduce the warnings when compiling with reference count debugging on. (There are still warnings for each call to _Py_NewReference -- too bad.) 05 August 1997, 02:30:44 UTC
7f400be Add pointer to new BSDDB module. 05 August 1997, 02:25:24 UTC
668e441 purported linux portability patch (Oliver Andrich) 05 August 1997, 02:24:57 UTC
5d1770e Py_Cleanup() is now Py_Finalize(). 05 August 1997, 02:23:48 UTC
cc283f5 Merge Py_Cleanup() into Py_Finalize(). Call the various small Fini() functions. 05 August 1997, 02:22:03 UTC
085d269 New rules for deleting modules. Rather than having an elaborate scheme based on object's types, have a simple two-phase scheme based on object's *names*: /* To make the execution order of destructors for global objects a bit more predictable, we first zap all objects whose name starts with a single underscore, before we clear the entire dictionary. We zap them by replacing them with None, rather than deleting them from the dictionary, to avoid rehashing the dictionary (to some extent). */ 05 August 1997, 02:20:51 UTC
f9c90c5 Renamed a local label that was accidentally grandly renamed to 'Py_Cleanup' back to 'cleanup'. 05 August 1997, 02:18:01 UTC
fbbd57e Added _Fini() routines to free up some memory 05 August 1997, 02:16:08 UTC
971a7aa Change the Fini function to only remove otherwise unreferenced strings from the interned table. There are references in hard-to-find static variables all over the interpreter, and it's not worth trying to get rid of all those; but "uninterning" isn't fair either and may cause subtle failures later -- so we have to keep them in the interned table. Also get rid of no-longer-needed insert of None in interned dict. 05 August 1997, 02:15:12 UTC
1f39c5c Added separate free list for cfunction (builtin method) objects, for a few percent speed up. Also add PyCFunction_Fini() to discard it. 05 August 1997, 02:11:41 UTC
404b95d Provide a dummy empty directory as f_builtins instead of failing, when no valid directory is passed in. This prevents __del__ to fail when invoked after __builtins__ has already been discarded. Also add PyFrame_Fini() to discard the cache of frames. 05 August 1997, 02:09:46 UTC
a0d349f Added separate free list for instance method objects, for a few percent speed up. Also add PyMethod_Fini() to discard it. 05 August 1997, 02:06:53 UTC
e09fb55 Added _Py_ResetReferences(), if tracing references. In _Py_PrintReferences(), no longer suppress once-referenced string. Add Py_Malloc and friends and PyMem_Malloc and friends (malloc wrappers for third parties). 05 August 1997, 02:04:34 UTC
d085e88 Added Py_Malloc and friends as well as PyMem_Malloc and friends. 05 August 1997, 01:59:22 UTC
5c159bd Plug memory leak (DECREF doc string properly after inserting in dict). 04 August 1997, 23:55:25 UTC
7995ed2 The reload(sys) test no longer works due to changes in the import semantics. 02 August 1997, 03:19:26 UTC
b02158e Oops, one more checkin. Use the new tstate/interp interface. 02 August 1997, 03:13:11 UTC
25ce566 The last of the mass checkins for separate (sub)interpreters. Everything should now work again. See the comments for the .h files mass checkin (e.g. pystate.h) for more detail. 02 August 1997, 03:10:38 UTC
40b33c6 Removed fatal errors from Py_Initmodule4() (and thus from Py_Initmodule(), which is a macro wrapper around it). The return value is now a NULL pointer if the initialization failed. This may make old modules fail with a SEGFAULT, since they don't expect this kind of failure. That's OK, since (a) it "never" happens, and (b) they would fail with a fatal error otherwise, anyway. Tons of extension modules should now check the return value of Py_Initmodule*() -- that's on my TODO list. 02 August 1997, 03:07:46 UTC
aee094c Added finalization routines. 02 August 1997, 03:02:27 UTC
08c1661 Add finialization routines; fixed some memory leaks related to this. Reset the SIGINT handler when the finalization is invoked. 02 August 1997, 03:01:42 UTC
05f7c50 Free the malloc'ed buffer that holds the command once we're done with it. Instead of calling Py_Exit(sts), call Py_Cleanup() and return sts. 02 August 1997, 03:00:42 UTC
eb46d67 Avoid function calls to access the current thread state and builtins -- the thread state is passed in as an argument and the builtins are a member thereof. 02 August 1997, 02:59:08 UTC
8cf0476 Added internal routine PyString_Fini() which deletes all interned strings. For use in Py_Finalize() only. 02 August 1997, 02:57:45 UTC
29e46a9 Mass checkin (more to follow for other directories). Introduce truly separate (sub)interpreter objects. For now, these must be used by separate threads, created from C. See Demo/pysvr for an example of how to use this. This also rationalizes Python's initialization and finalization behavior: Py_Initialize() -- initialize the whole interpreter Py_Finalize() -- finalize the whole interpreter tstate = Py_NewInterpreter() -- create a new (sub)interpreter Py_EndInterpreter(tstate) -- delete a new (sub)interpreter There are also new interfaces relating to threads and the interpreter lock, which can be used to create new threads, and sometimes have to be used to manipulate the interpreter lock when creating or deleting sub-interpreters. These are only defined when WITH_THREAD is defined: PyEval_AcquireLock() -- acquire the interpreter lock PyEval_ReleaseLock() -- release the interpreter lock PyEval_AcquireThread(tstate) -- acquire the lock and make the thread current PyEval_ReleaseThread(tstate) -- release the lock and make NULL current Other administrative changes: - The header file bltinmodule.h is deleted. - The init functions for Import, Sys and Builtin are now internal and declared in pythonrun.h. - Py_Setup() and Py_Cleanup() are no longer declared. - The interpreter state and thread state structures are now linked together in a chain (the chain of interpreters is a static variable in pythonrun.c). - Some members of the interpreter and thread structures have new, shorter, more consistent, names. - Added declarations for _PyImport_{Find,Fixup}Extension() to import.h. 02 August 1997, 02:56:48 UTC
7a2d611 Add cast to PyInt_AS_LONG macro, as suggested by Marc Lemburg. 02 August 1997, 02:41:13 UTC
2981bc7 Add cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg. 02 August 1997, 02:40:58 UTC
d0924f4 Add a simple way to enable purify; now you can set the Make variable PURIFY (e.g. in the Setup file or on the make command line) to point to the purify command, to run purify. 02 August 1997, 02:06:20 UTC
c46d22e Print ps (process status) for us when starting a new thread. Even less shuffling of stdout (only at start of new interpreter). Interact properly with new interpreter initialization conventions (must use Py_Initialize/Py_Finalize *and* Py_NewInterpreter/Py_EndInterpreter). Probably more minor changes. 02 August 1997, 02:02:22 UTC
35d4337 Functionality enhancement: allow other threads to use Tk commands while one thread is blocked in mainloop(). Also, handle signals (not just interrupts) as soon as they happen. Cleanup: remove support for Tcl/Tk versions 7.4/4.0. (I've confirmed that it works for 7.5/4.1 and 7.6/4.2, as well as 8.0b2.) Coding style change: instead of ``func (args)'', write ``func(args)'' everywhere. Minor functionality change: use PyArg_ParseTuple everywhere. This should only affect the errors reported for bad argument lists; in particular, deletefilehandler() is much clearer about what's going on. (XXX Still to do: Mac and Win ports to 8.0b2.) 02 August 1997, 00:09:09 UTC
3e819a7 Compatibility with Tcl/Tk 8.0b*. 01 August 1997, 19:29:02 UTC
f4e32c7 Add definitions for symbolic constants LOCK_{EX,NB,SH,UN}. 31 July 1997, 19:39:54 UTC
55b9ab5 Extend the "Don Beaudry hack" with "Guido's corollary" -- if the base class has a __class__ attribute, call that to create the new class. This allows us to write metaclasses purely in C! 31 July 1997, 03:54:02 UTC
fd16ca4 Added mimify docs (Sjoerd). 30 July 1997, 22:05:07 UTC
74d25e7 Mention decode_base64 in example. 30 July 1997, 22:02:28 UTC
bc0cd37 l2h target: l2htut was listed twice and l2hapi was skipped. Fixed. 30 July 1997, 15:59:25 UTC
5e06257 Final set of CW11 projects, before switch to CW Pro 1. 28 July 1997, 13:04:22 UTC
ff0ec52 Finally plug the memory leak caused by syntax error (including interactive EOF, which leaked *one* byte). 27 July 1997, 01:52:50 UTC
6fc06e7 Plugged a leak. (The same as the one plugged in compile.c -- forgot to free lnotab). 26 July 1997, 23:30:18 UTC
5ec8e4b Moved the special compile of getbuildno.o to ../Makefile.in. A dummy getbuildno.o (with a number of 0) still gets built here, to make the library complete. 25 July 1997, 22:35:24 UTC
1eec528 Build getbuildno.o here, to adequately update it every time a new python executable is built. (It still won't reflect builds of the library only, but since the default make target builds the python executable, that's alright.) 25 July 1997, 22:34:08 UTC
back to top