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

sort by:
Revision Author Date Message Commit Date
3931df9 Undo another glitch of the automatic not-so-Grand Renaming; some local variables called 'coerce' were accidentally renamed to 'PyNumber_Coerce'. Rename them back to coercefunc. 18 November 1997, 19:23:07 UTC
33635f8 start numbering things 1.5b1 now 18 November 1997, 19:21:47 UTC
8360005 Assert that the proxies object passed in to the URLopener constructor is indeed a dictionary (or a mapping). 18 November 1997, 15:50:39 UTC
421c224 Added docstrings (contributed by Martin von Loewis). 18 November 1997, 15:47:55 UTC
e4a93bc Fix the release date for 1.5b1 to be Nov. 26 18 November 1997, 15:32:15 UTC
d9a26ff Add support for NULL macro (like UNIX, ABC etc.). 18 November 1997, 15:31:16 UTC
2974f0f Add xmllib; remove (slow) from description of htmllib. 18 November 1997, 15:30:40 UTC
7336935 dis is now documented; bisect is deemed useful. 18 November 1997, 15:30:13 UTC
f7790c6 Document s.connect_ex(), which does not raise an exception on error. 18 November 1997, 15:29:20 UTC
364e643 Clarified reference to old profiler. Mention conversion to Perl-style regular expressions. 18 November 1997, 15:28:46 UTC
5de6488 Added doc for errorcode dictionary. 18 November 1997, 15:27:51 UTC
5d68e8e Fixed case sensitivity of attributes (they are case *sensitive*). 18 November 1997, 15:27:20 UTC
eae121e Adding dis and xmllib docs 18 November 1997, 15:11:47 UTC
a10768a Docu for xmllib.py, by Sjoerd Mullender. 18 November 1997, 15:11:22 UTC
b62b6d1 Docu for dis.py, written by Martin von Loewis. 18 November 1997, 15:10:53 UTC
a219efa Sjoerd Mullender's xml parser (based on sgmllib, somewhat). 18 November 1997, 15:09:54 UTC
46de1b0 This BUGS list hasn't been updated since the release of Python 1.2! It is useless. My real bugs database is currently being maintained with GNATS. 14 November 1997, 23:32:19 UTC
359bcaa This fix (across 4 files in 3 directories) solves a subtle problem with signal handlers in a fork()ed child process when Python is compiled with thread support. The bug was reported by Scott <scott@chronis.icgroup.com>. What happens is that after a fork(), the variables used by the signal module to determine whether this is the main thread or not are bogus, and it decides that no thread is the main thread, so no signals will be delivered. The solution is the addition of PyOS_AfterFork(), which fixes the signal module's variables. A dummy version of the function is present in the intrcheck.c source file which is linked when the signal module is not used. 14 November 1997, 22:24:28 UTC
c9fd600 Suggestion by David Ascher: set EXE macro to empty string and use it in a few places -- so it can be set to .exe on GNUWIN32 platforms and do the right thing. Whatever. (This was already done in Modules/Makefile* but wasn't carried over here.) 11 November 1997, 18:29:22 UTC
6592b3c Use a %s format for the exit status -- through the magical workings of the aptly named MagicDict class, the value is a string, not a number, by the time it is printed... 11 November 1997, 17:18:48 UTC
ca2f69c As Mark Hammond found out, it was a bad idea to add "set -e" to the check in command -- this fails for new files! 11 November 1997, 17:17:55 UTC
6f5a312 New version from Neale... He promised it's the last. 11 November 1997, 16:36:14 UTC
dfed725 Fix memory leak in exec statement with code object -- the None returned by PyEval_EvalCode() on success was never DECREF'ed. Fix by Bernhard Herzog. 11 November 1997, 16:29:38 UTC
3120bc3 v1.1; added attribution to Neale Pickett. 08 November 1997, 07:16:19 UTC
368e06b Some restructuring. All geometry manager methods that apply to a master widget instead of to a slave widget have been moved to the Misc class, which is inherited by all of Tk(), Toplevel() and Widget(). They have been renamed to have their geometry manager name as a prefix, e.g. pack_propagate(); the short names can still be used where ambiguities are resolved so that pack has priority over place has priority over grid (since this was the old rule). Also, the method definitions in the Pack, Place and Grid classes now all have their respective geometry manager name as a prefix (e.g. pack_configure); the shorter names are aliases defined through assignment. A similar renaming has been done for all config() methods found elsewhere; these have been renamed to configure() with config being the alias (instead of the other way around). (This may not make much of a difference but the official Tk command name is now 'configure' and it may help in debugging tracebacks.) Finally, a new base class BaseWidget has been introduced, which implements the methods common between Widget and Toplevel (the difference between those two classes is that Toplevel has a different __init__() but also that Toplevel doesn't inherit from Pack, Place or Grid. 07 November 1997, 20:38:49 UTC
1abbd7f Added vgrindefs. 07 November 1997, 19:58:10 UTC
93a47d7 Plucked this from the net. 07 November 1997, 19:57:54 UTC
f518154 Fix problem discovered by Barry: if you hit ^C to sys.stdin.readline(), you get a fatal error (no current thread). This is because there was a call to PyErr_CheckSignals() while there was no current thread. I wonder how many more of these we find... I bnetter go hunting for PyErr_CheckSignals() now... 07 November 1997, 19:20:34 UTC
c1189eb Separate out a function pystones(loops=LOOPS) which runs the benchmark and returns a (benchtime, stones) tuple. The main() function now calls this and prints the report. Fred Drake's code. 06 November 1997, 15:45:05 UTC
f849291 Add __init__.py to test package. 06 November 1997, 15:41:23 UTC
6ae21ad #(py-emacs-features): Fixed typo in docstring. 06 November 1997, 14:36:49 UTC
b8f1166 (python-font-lock-keywords): Pick up block introducing keywords with immediately following colons. Sjoerd noticed this one too. Here's a nonsense.py file that flexes all the font-lock keyword combinations. class A: class B(A): pass def __init__(self): if i == 2 and j == 3 or k == 4: import stuff from otherstuff import cool for i in range(cool.count): if i == j: break elif j == 1: continue print i else: return not i elif q is not i: return lambda x: x + 1 else: try: try: raise stuff.error except stuff.error, v: print v except: global q finally: while q > 0: q = q - 1 assert q == 0 def make(): a = A() exec "nonsense" del a 06 November 1997, 14:35:15 UTC
ef3c891 (python-font-lock-keywords): Fix for consecutive keyword font locking, given by Sjoerd Mullender <Sjoerd.Mullender@cwi.nl>. 05 November 1997, 18:55:50 UTC
5e21cb0 (py-emacs-features): Test for working make-temp-name, which is broken on NTEmacs 19.34.6. (py-serial-number): New variable. (py-execute-region): If make-temp-name is broken, simply append a serial number to the string "python-" to get a temporary file name. It's possible concurrent NTEmacs can step on each others toes, but it makes no sense to further coddle a busted NTEmacs. 05 November 1997, 18:41:11 UTC
2bd358c A nice blurb that Mark Hammond wrote, aimed at Windows users. 05 November 1997, 17:15:02 UTC
a9ce70f (py-execute-region): Fixed small bug with queuing file for execution in a py-shell. Temp files now get cleaned up. 05 November 1997, 16:56:51 UTC
2518c67 (mark-python-def-or-class): Renamed to py-mark-def-or-class globally. (py-mode-map): Moved py-mark-def-or-class from M-C-h to C-c C-m since the old binding conflicts with the standard global backward-kill-word binding, and this new binding is more conformant with other language modes. Moved py-mark-block to C-c C-k. 05 November 1997, 00:51:08 UTC
851e7d5 Got rid of the errorstr dictionary, which is redundant now that there's os.strerror() -- also, it would form a locale liability. 04 November 1997, 20:22:24 UTC
4a1f39a Undo half of the previous change :-( Setting interp->builtins to the __builtin__ module instead of to its dictionary had the unfortunate side effect of always running in restricted execution mode :-( I will check in a different way of setting __main__.__builtins__ to the __builtin__ module later. Also, there was a typo -- a comment was unfinished, and as a result some finalizations were not being executed. In Bart Simpson style, I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. I Will Not Check In Untested Changes. 04 November 1997, 19:36:18 UTC
6d48c4a (py-backspace-function): New variable. (py-electric-backspace, py-electric-delete): Support the XEmacs 20 Way for backspace and delete mappings. In XEmacs 19, Emacs 19, and Emacs 20, both backspace and delete keysyms are bound to py-electric-backspace. In XEmacs 20, backspace and delete keysyms are bound separately, allowing the user to specify forward or backward deletion of the delete keysym through the variable delete-key-deletes-forward. All this is the Right Way To Do It and this implementation was largely ripped from CC Mode. 04 November 1997, 19:21:50 UTC
a97a3f3 First round of changes, mostly subprocess stuff. (py-execute-file): Better interaction with comint. Set comint-scroll-to-bottom-on-output to t. Wrapper buffer change in unwind-protect in case process filter fails. (py-shell): Start Python with -i flag to fix tty problem on Windows; presumably -- not yet tested. (py-clear-queue): New function to clear the pending exec file queue. Not currently keybound. (py-execute-region, py-execute-buffer): Added optional async flag (use via C-u prefix) to execute the region in a new asynchrous buffer, even if the Python shell is running. (py-append-to-process-buffer): Removed as obsolete. Comint provides this functionality. Removed fbound test defun of match-string. All modern X/Emacsen have this function. 04 November 1997, 18:47:06 UTC
bfa9f13 islink() returns false, but there is no constant false! Return 0 instead. 04 November 1997, 18:40:53 UTC
79b2038 When checking for equality, open the slave file in text mode so it will compare equal even if the master file uses only \n to terminate lines (this is by far the most common situation). Also, check for the case where the master file is missing, and print the time difference in seconds when the slave file appears newer than the master (for debugging). 04 November 1997, 17:35:43 UTC
19f4456 Use ``0'' instead of ``None'' to reset the underlying object in close methods. Using None causes problems if the destructor is called after the __builtin__ module has already been destroyed (unfortunately, this can happen!). I can't just delete the object because it is actually tested for (if self._sock: ...). Setting it to 0 is a bit weird but works. 04 November 1997, 17:32:59 UTC
8f3c812 Fix due to Bill Noon for problem discovered by Ken Manheimer: packing 0.0 as float or double would yield the representation for 1.0! 04 November 1997, 17:12:33 UTC
25c649f Get rid of another reference to _PyImport_Inittab (now a static array) that should be PyImport_Inittab (a new pointer initialized to point to the array). 04 November 1997, 17:04:34 UTC
22348dc The warning about thread still having a frame now only happens in verbose mode. 03 November 1997, 22:08:36 UTC
8607ae2 Move the Py_{{BEGIN,END}_ALLOW,BLOCK}_THREADS macros in time_sleep() to inside floatsleep(). This is necessary because floatsleep() does the error handling and it must have grabbed the interpreter lock and thread state before it can do so. 03 November 1997, 22:04:46 UTC
3a44e1b Two independent changes (alas): - The interp->builtins variable (and hence, __main__.__builtins__) is once again initialized to the built-in *module* instead of its dictionary. - The finalization order is once again changed. Signals are finalized relatively early, because (1) it DECREF's the signal handlers, and if a signal handler happens to be a bound method, deleting it could cause problems when there's no current thread around, and (2) we don't want to risk executing signal handlers during finalization. 03 November 1997, 21:58:47 UTC
7ff20ac Change the signal finialization so that it also resets the signal handlers. After this has been called, our signal handlers are no longer active! 03 November 1997, 21:53:55 UTC
615022f Doing the most complicated CVS dance I've ever seen. Barry has had his *own* RCS file for python-mode.el, and I've agreed that it would be better if his version was in the Python source tree. However I don't want to totally get rid of the old RCS file (which has interesting info such as which version was in which Python release). So I've moved the old one to python-mode-old.el behind the scenes, and this checkin message indicates that I'm now deleting it. If you do an update, you will actually get Barry's *new* version! 03 November 1997, 17:14:19 UTC
affc0ca Changes in preparation for integrating into the Python CVS tree. Introductory comment updates. (python-font-lock-keywords): Added "assert" (py-block-closing-keywords-re): New variable. (py-no-outdent-re): Rewrite to use py-block-closing-keywords-re. (py-shell): py-process-filter should no longer be necessary. Comint should do all the work. Note that more fixes to the py-shell process mechanism need to be done. (py-execute-region): Check for empty region. Some questionable changes to set-buffer after shell-command-on-region. Again, this all needs to be closely examined for X/Emacs 19/20 compatibility. (py-goto-beyond-final-line): py-parse-partial-sexp-works-p should no longer be necessary. (py-statement-closes-block-p): Use py-block-closing-keywords-re. 03 November 1997, 16:59:38 UTC
6345ac6 Add cast to realloc/malloc call to shut up AIX compiler. (Vladimir Marangozov) 31 October 1997, 20:32:13 UTC
197346f New policy for package imports: only a directory containing __init__.py (or __init__.pyc/.pyo, whichever applies) is considered a package. All other subdirectories are left alone. Should make Konrad Hinsen happy! 31 October 1997, 18:38:52 UTC
771c6c8 Instead of using _PyImport_Inittab[] directly, use the new "official" pointer *PyImport_Inittab which is initialized to _PyImport_Inittab. 31 October 1997, 18:37:24 UTC
66959af Remove the declaration of "internal" table _PyImport_Inittab[]; add new "official" pointer *PyImport_Inittab. 31 October 1997, 18:36:47 UTC
e8d1139 Add empty __init__.py files to the test packages so the new policy will recognize them. 31 October 1997, 18:33:41 UTC
873c35c Take out the setlocale() call. It affects atof() and will break floating point literals. Need to do this differently... 31 October 1997, 18:25:15 UTC
3c03fa8 Hack suggested by Matthias Klose to pull in all relevant entry points in libmath.a so they are available to mathmodule.so (in case it is shared). While this still gets triggered on Solaris 2.x, this appears to be harmless there. 31 October 1997, 17:00:30 UTC
86aeb90 Add #include "mytime.h", needed for SunOS 4.1 (Matthias Klose). 31 October 1997, 16:55:51 UTC
613418a New version from Sjoerd, small bugfix + optimizations. 30 October 1997, 15:27:37 UTC
e475d86 Install Misc/Makefile.pre.in in the config/ install directory. Suggestion by Konrad Hinsen. 29 October 1997, 19:07:30 UTC
0874f7f Tests for tokenize.py (Ka-Ping Yee) 27 October 1997, 22:15:06 UTC
fefc922 New, fixed version with proper r"..." and R"..." support from Ka-Ping. 27 October 1997, 21:17:24 UTC
3b63177 Redone (by Ka-Ping) using the new re module, and adding recognition for r"..." raw strings. (And R"..." string support added by Guido.) 27 October 1997, 20:44:15 UTC
9d37a4d Small wording change about global and local trace functions. 27 October 1997, 19:57:20 UTC
036309b This should hopefully finally clean up the remaining __del__ related problems with this module, even if an instance of a derived class is kept alive longer than the urllib module itself... 27 October 1997, 18:56:19 UTC
af8d2bf Bugfix in match() -- the number of registers shouldn't be divided by two! 27 October 1997, 18:17:19 UTC
e6eef4b Use __dict__.update(state) instead of for loop over state.items() and call to setattr(). This changes semantics, following the change already implemented in pickle. Also reindented a few lines properly. 26 October 1997, 17:00:25 UTC
040e565 Ooops, found too more references to old conditions on floating point values. 24 October 1997, 21:15:55 UTC
ae18e9f Removed obsolete discussion on _xdr helper module. 24 October 1997, 21:14:36 UTC
31626bc re -> regex conversions by Sjoerd. 24 October 1997, 14:46:16 UTC
f81e5b9 New module -- converts regex regular expressions to re style. There are two ways to use this -- as a filter (e.g. using C-U M-| on a regex string literal in an Emacs buffer) or from a Python program which imports this as a module. Read the doc string for more info, and also some caveats (some cases aren't handled right). 23 October 1997, 22:43:50 UTC
1fef181 Although it's hard to be sure, I *think* this is a working conversion from regex to re style regular expressions. This should make sgmllib and htmllib threadsafe, so I can now create a threaded version of webchecker... 23 October 1997, 19:09:21 UTC
57a68e0 Remove redundant import regsub. 23 October 1997, 17:50:10 UTC
2efa34b Daniel Larsson discovered another cut-n-paste bug in the Olimit story... 23 October 1997, 17:43:11 UTC
9694fca Convert all remaining *simple* cases of regex usage to re usage. 22 October 1997, 21:00:49 UTC
426916e Add pcre to the list of safe modules. 22 October 1997, 20:56:32 UTC
f7a8b45 Remove outdated comments. 22 October 1997, 20:54:50 UTC
12f86ad Removed some unneeded imports, moved others around. 22 October 1997, 20:52:53 UTC
a8832b4 Removed unneeded imports of regex and regsub. 22 October 1997, 20:50:37 UTC
acfb82a Use re instead of regex. Also remove bogus return statement from __init__(). 22 October 1997, 20:49:52 UTC
8566e47 Added pgrep() function, which is like grep/egrep/emgrep but uses Perl syntax, by virtue of the new re module. 22 October 1997, 20:44:58 UTC
b491442 Deleted this long-obsolete module 22 October 1997, 16:29:53 UTC
2498620 Added "new" symbol defns for RE_ANSI_HEX and RE_NO_GNU_EXTENSIONS -- hopefully the last maintenance on this module, ever. 22 October 1997, 16:28:53 UTC
d7dc2eb Put {} around \^ in sets to force latex2html to do the right thing... 22 October 1997, 03:03:44 UTC
1f84449 New CObject from Jim Fulton, adds PyCObject_FromVoidPtrAndDesc() and PyCObject_GetDesc(). 21 October 1997, 19:48:35 UTC
16cb6f4 Forgot to add .cxx and .cpp to the second case statement. Thanks to Daniel Larsson. 21 October 1997, 19:30:29 UTC
e85da65 Some patches to Lee Busby's fpectl mods that accidentally didn't make it into 1.5a4. 20 October 1997, 23:50:01 UTC
9476a78 Remove "." or "" from front of sys.path (this bit me once). 20 October 1997, 23:48:01 UTC
4e8ef5f Catch KeyboardInterrupt separately and propagate it, instead of reporting a "crash". Use sys.exc_info() instead of sys.exc_type and sys.exc_value. 20 October 1997, 23:46:54 UTC
1510565 Add optional 4th argument to count(), matching find() etc. Also change all occurrences of "x == None" to "x is None" (not that it matters much, these functions are all reimplemented in strop -- but count() is not). 20 October 1997, 23:31:15 UTC
dd65975 Patch by Charles G. Waldman to add optional user and password arguments to NNTP.__init__(), for nntp servers that need them. 20 October 1997, 23:29:44 UTC
4a2a621 Write a str() function for class objects that returns "modulename.classname" instead of returning the same as repr(). 20 October 1997, 23:26:11 UTC
ed1100f Don't use sscanf(s, "%x", &c) to parse \xX... escapes; hardcode it. 20 October 1997, 23:24:07 UTC
f6a84db Add getintarg(), getlongarg(), getstrarg() to macros since these no longer exist in the general headers. 20 October 1997, 23:22:07 UTC
cb4d303 Add proper (getattrfunc) cast in Pcre_Type. 20 October 1997, 23:21:23 UTC
266033e Change sharedmodules to lib-dynload. ### If you still have sharedmodules in your Modules/Setup file, remove it! ### 20 October 1997, 23:20:32 UTC
7eecc24 Remove .pyo files like .pyc files. 20 October 1997, 23:16:58 UTC
cf809d6 Rename sharedmodules to lib-dynload. Treat .pyo files like .pyc files. 20 October 1997, 23:16:32 UTC
back to top