- 06 Nov, 1997 3 commits
-
-
Guido van Rossum authored
-
Barry Warsaw authored
-
Barry Warsaw authored
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
-
- 05 Nov, 1997 5 commits
-
-
Barry Warsaw authored
given by Sjoerd Mullender <Sjoerd.Mullender@cwi.nl>.
-
Barry Warsaw authored
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.
-
Guido van Rossum authored
-
Barry Warsaw authored
in a py-shell. Temp files now get cleaned up.
-
Barry Warsaw authored
(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.
-
- 04 Nov, 1997 9 commits
-
-
Guido van Rossum authored
there's os.strerror() -- also, it would form a locale liability.
-
Guido van Rossum authored
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.
-
Barry Warsaw authored
(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.
-
Barry Warsaw authored
(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.
-
Guido van Rossum authored
-
Guido van Rossum authored
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).
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
0.0 as float or double would yield the representation for 1.0!
-
Guido van Rossum authored
that should be PyImport_Inittab (a new pointer initialized to point to the array).
-
- 03 Nov, 1997 6 commits
-
-
Guido van Rossum authored
verbose mode.
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
- 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.
-
Guido van Rossum authored
handlers. After this has been called, our signal handlers are no longer active!
-
Guido van Rossum authored
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!
-
Barry Warsaw authored
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.
-
- 31 Oct, 1997 8 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
__init__.py (or __init__.pyc/.pyo, whichever applies) is considered a package. All other subdirectories are left alone. Should make Konrad Hinsen happy!
-
Guido van Rossum authored
pointer *PyImport_Inittab which is initialized to _PyImport_Inittab.
-
Guido van Rossum authored
new "official" pointer *PyImport_Inittab.
-
Guido van Rossum authored
will recognize them.
-
Guido van Rossum authored
floating point literals. Need to do this differently...
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
-
- 30 Oct, 1997 1 commit
-
-
Guido van Rossum authored
-
- 29 Oct, 1997 1 commit
-
-
Guido van Rossum authored
Suggestion by Konrad Hinsen.
-
- 27 Oct, 1997 6 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
for r"..." raw strings. (And R"..." string support added by Guido.)
-
Guido van Rossum authored
-
Guido van Rossum authored
problems with this module, even if an instance of a derived class is kept alive longer than the urllib module itself...
-
Guido van Rossum authored
-
- 26 Oct, 1997 1 commit
-
-
Guido van Rossum authored
call to setattr(). This changes semantics, following the change already implemented in pickle. Also reindented a few lines properly.
-