summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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!
* Changes in preparation for integrating into the Python CVS tree.Barry Warsaw1997-11-031-70/+59
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add cast to realloc/malloc call to shut up AIX compiler. (Vladimir Marangozov)Guido van Rossum1997-10-312-4/+5
|
* New policy for package imports: only a directory containingGuido van Rossum1997-10-311-2/+38
| | | | | | __init__.py (or __init__.pyc/.pyo, whichever applies) is considered a package. All other subdirectories are left alone. Should make Konrad Hinsen happy!
* Instead of using _PyImport_Inittab[] directly, use the new "official"Guido van Rossum1997-10-311-4/+8
| | | | pointer *PyImport_Inittab which is initialized to _PyImport_Inittab.
* Remove the declaration of "internal" table _PyImport_Inittab[]; addGuido van Rossum1997-10-311-3/+1
| | | | new "official" pointer *PyImport_Inittab.
* Add empty __init__.py files to the test packages so the new policyGuido van Rossum1997-10-311-1/+4
| | | | will recognize them.
* Take out the setlocale() call. It affects atof() and will breakGuido van Rossum1997-10-311-8/+0
| | | | floating point literals. Need to do this differently...
* Hack suggested by Matthias Klose to pull in all relevant entry pointsGuido van Rossum1997-10-311-0/+10
| | | | | | 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.
* Add #include "mytime.h", needed for SunOS 4.1 (Matthias Klose).Guido van Rossum1997-10-311-0/+1
|
* New version from Sjoerd, small bugfix + optimizations.Guido van Rossum1997-10-301-24/+28
|
* Install Misc/Makefile.pre.in in the config/ install directory.Guido van Rossum1997-10-291-0/+1
| | | | Suggestion by Konrad Hinsen.
* Tests for tokenize.py (Ka-Ping Yee)Guido van Rossum1997-10-273-0/+775
|
* New, fixed version with proper r"..." and R"..." support from Ka-Ping.Guido van Rossum1997-10-271-7/+10
|
* Redone (by Ka-Ping) using the new re module, and adding recognitionGuido van Rossum1997-10-271-57/+55
| | | | for r"..." raw strings. (And R"..." string support added by Guido.)
* Small wording change about global and local trace functions.Guido van Rossum1997-10-272-4/+20
|
* This should hopefully finally clean up the remaining __del__ relatedGuido van Rossum1997-10-271-9/+11
| | | | | problems with this module, even if an instance of a derived class is kept alive longer than the urllib module itself...
* Bugfix in match() -- the number of registers shouldn't be divided by two!Guido van Rossum1997-10-271-1/+1
|
* Use __dict__.update(state) instead of for loop over state.items() andGuido van Rossum1997-10-261-11/+9
| | | | | | | call to setattr(). This changes semantics, following the change already implemented in pickle. Also reindented a few lines properly.
* Ooops, found too more references to old conditions on floating point values.Fred Drake1997-10-242-14/+2
|
* Removed obsolete discussion on _xdr helper module.Fred Drake1997-10-242-42/+2
|
* re -> regex conversions by Sjoerd.Guido van Rossum1997-10-243-95/+100
|
* New module -- converts regex regular expressions to re style.Guido van Rossum1997-10-231-0/+186
| | | | | | | 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).
* Although it's hard to be sure, I *think* this is a working conversionGuido van Rossum1997-10-231-67/+67
| | | | | | from regex to re style regular expressions. This should make sgmllib and htmllib threadsafe, so I can now create a threaded version of webchecker...
* Remove redundant import regsub.Guido van Rossum1997-10-231-1/+0
|
* Daniel Larsson discovered another cut-n-paste bug in the Olimit story...Guido van Rossum1997-10-232-3/+3
|
* Convert all remaining *simple* cases of regex usage to re usage.Guido van Rossum1997-10-2223-144/+134
|
* Add pcre to the list of safe modules.Guido van Rossum1997-10-221-1/+1
|
* Remove outdated comments.Guido van Rossum1997-10-221-7/+1
|
* Removed some unneeded imports, moved others around.Guido van Rossum1997-10-221-4/+2
|
* Removed unneeded imports of regex and regsub.Guido van Rossum1997-10-221-2/+0
|
* Use re instead of regex. Also remove bogus return statement from __init__().Guido van Rossum1997-10-221-6/+8
|
* Added pgrep() function, which is like grep/egrep/emgrep but uses PerlGuido van Rossum1997-10-222-0/+36
| | | | syntax, by virtue of the new re module.
* Deleted this long-obsolete moduleGuido van Rossum1997-10-221-32/+0
|