summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* start numbering things 1.5b1 nowGuido van Rossum1997-11-181-1/+1
|
* Assert that the proxies object passed in to the URLopener constructorGuido van Rossum1997-11-181-0/+1
| | | | is indeed a dictionary (or a mapping).
* Added docstrings (contributed by Martin von Loewis).Guido van Rossum1997-11-181-1/+13
|
* Fix the release date for 1.5b1 to be Nov. 26Guido van Rossum1997-11-182-2/+2
|
* Add support for NULL macro (like UNIX, ABC etc.).Guido van Rossum1997-11-181-0/+1
|
* Add xmllib; remove (slow) from description of htmllib.Guido van Rossum1997-11-182-2/+8
|
* dis is now documented; bisect is deemed useful.Guido van Rossum1997-11-182-6/+2
|
* Document s.connect_ex(), which does not raise an exception on error.Guido van Rossum1997-11-182-0/+14
|
* Clarified reference to old profiler.Guido van Rossum1997-11-182-6/+14
| | | | Mention conversion to Perl-style regular expressions.
* Added doc for errorcode dictionary.Guido van Rossum1997-11-182-2/+12
|
* Fixed case sensitivity of attributes (they are case *sensitive*).Guido van Rossum1997-11-181-12/+8
|
* Adding dis and xmllib docsGuido van Rossum1997-11-183-1/+5
|
* Docu for xmllib.py, by Sjoerd Mullender.Guido van Rossum1997-11-182-0/+370
|
* Docu for dis.py, written by Martin von Loewis.Guido van Rossum1997-11-182-0/+1048
|
* Sjoerd Mullender's xml parser (based on sgmllib, somewhat).Guido van Rossum1997-11-181-0/+568
|
* This BUGS list hasn't been updated since the release of Python 1.2!Guido van Rossum1997-11-141-373/+0
| | | | | It is useless. My real bugs database is currently being maintained with GNATS.
* This fix (across 4 files in 3 directories) solves a subtle problem withGuido van Rossum1997-11-144-0/+16
| | | | | | | | | | | | | | | 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.
* Suggestion by David Ascher: set EXE macro to empty string and use itGuido van Rossum1997-11-111-2/+5
| | | | | | 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.)
* Use a %s format for the exit status -- through the magical workings ofGuido van Rossum1997-11-111-1/+1
| | | | | the aptly named MagicDict class, the value is a string, not a number, by the time it is printed...
* As Mark Hammond found out, it was a bad idea to add "set -e" to theGuido van Rossum1997-11-111-1/+1
| | | | check in command -- this fails for new files!
* New version from Neale... He promised it's the last.Guido van Rossum1997-11-111-3/+3
|
* Fix memory leak in exec statement with code object -- the None returnedGuido van Rossum1997-11-111-2/+4
| | | | | | by PyEval_EvalCode() on success was never DECREF'ed. Fix by Bernhard Herzog.
* v1.1; added attribution to Neale Pickett.Guido van Rossum1997-11-081-6/+6
|
* Some restructuring.Guido van Rossum1997-11-071-111/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added vgrindefs.Guido van Rossum1997-11-071-0/+1
|
* Plucked this from the net.Guido van Rossum1997-11-071-0/+10
|
* Fix problem discovered by Barry: if you hit ^C toGuido van Rossum1997-11-071-2/+2
| | | | | | | 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...
* Separate out a function pystones(loops=LOOPS) which runs the benchmarkGuido van Rossum1997-11-061-8/+12
| | | | | and returns a (benchtime, stones) tuple. The main() function now calls this and prints the report. Fred Drake's code.
* Add __init__.py to test package.Guido van Rossum1997-11-061-0/+1
|
* #(py-emacs-features): Fixed typo in docstring.Barry Warsaw1997-11-061-2/+2
|
* (python-font-lock-keywords): Pick up block introducing keywords withBarry Warsaw1997-11-061-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* (python-font-lock-keywords): Fix for consecutive keyword font locking,Barry Warsaw1997-11-051-6/+2
| | | | given by Sjoerd Mullender <Sjoerd.Mullender@cwi.nl>.
* (py-emacs-features): Test for working make-temp-name, which is brokenBarry Warsaw1997-11-051-10/+20
| | | | | | | | | | | 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.
* A nice blurb that Mark Hammond wrote, aimed at Windows users.Guido van Rossum1997-11-051-0/+81
|
* (py-execute-region): Fixed small bug with queuing file for executionBarry Warsaw1997-11-051-2/+1
| | | | in a py-shell. Temp files now get cleaned up.
* (mark-python-def-or-class): Renamed to py-mark-def-or-class globally.Barry Warsaw1997-11-051-11/+13
| | | | | | | (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.
* Got rid of the errorstr dictionary, which is redundant now thatGuido van Rossum1997-11-041-21/+9
| | | | there's os.strerror() -- also, it would form a locale liability.
* Undo half of the previous change :-(Guido van Rossum1997-11-041-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* (py-backspace-function): New variable.Barry Warsaw1997-11-041-60/+101
| | | | | | | | | | | (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.
* First round of changes, mostly subprocess stuff.Barry Warsaw1997-11-041-138/+129
| | | | | | | | | | | | | | | | | | | | | | (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.
* islink() returns false, but there is no constant false! Return 0 instead.Guido van Rossum1997-11-041-1/+1
|
* When checking for equality, open the slave file in text mode so itGuido van Rossum1997-11-041-2/+6
| | | | | | | | 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).
* Use ``0'' instead of ``None'' to reset the underlying object in closeGuido van Rossum1997-11-041-2/+2
| | | | | | | | 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.
* Fix due to Bill Noon for problem discovered by Ken Manheimer: packingGuido van Rossum1997-11-041-2/+2
| | | | 0.0 as float or double would yield the representation for 1.0!
* Get rid of another reference to _PyImport_Inittab (now a static array)Guido van Rossum1997-11-041-2/+2
| | | | | that should be PyImport_Inittab (a new pointer initialized to point to the array).
* The warning about thread still having a frame now only happens inGuido van Rossum1997-11-031-1/+1
| | | | verbose mode.
* Move the Py_{{BEGIN,END}_ALLOW,BLOCK}_THREADS macros in time_sleep()Guido van Rossum1997-11-031-7/+15
| | | | | | 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.
* Two independent changes (alas):Guido van Rossum1997-11-031-19/+16
| | | | | | | | | | | | - 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.
* Change the signal finialization so that it also resets the signalGuido van Rossum1997-11-031-1/+7
| | | | | handlers. After this has been called, our signal handlers are no longer active!
* Doing the most complicated CVS dance I've ever seen. Barry has hadGuido van Rossum1997-11-031-2442/+0
| | | | | | | | | | 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!