1. 11 Kas, 1997 3 kayıt (commit)
  2. 08 Kas, 1997 1 kayıt (commit)
  3. 07 Kas, 1997 4 kayıt (commit)
    • Guido van Rossum's avatar
      Some restructuring. · 368e06b6
      Guido van Rossum yazdı
      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.
      368e06b6
    • Guido van Rossum's avatar
      Added vgrindefs. · 1abbd7f3
      Guido van Rossum yazdı
      1abbd7f3
    • Guido van Rossum's avatar
      Plucked this from the net. · 93a47d7c
      Guido van Rossum yazdı
      93a47d7c
    • Guido van Rossum's avatar
      Fix problem discovered by Barry: if you hit ^C to · f5181542
      Guido van Rossum yazdı
      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...
      f5181542
  4. 06 Kas, 1997 4 kayıt (commit)
  5. 05 Kas, 1997 5 kayıt (commit)
  6. 04 Kas, 1997 9 kayıt (commit)
    • Guido van Rossum's avatar
      Got rid of the errorstr dictionary, which is redundant now that · 851e7d51
      Guido van Rossum yazdı
      there's os.strerror() -- also, it would form a locale liability.
      851e7d51
    • Guido van Rossum's avatar
      Undo half of the previous change :-( · 4a1f39a2
      Guido van Rossum yazdı
      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.
      4a1f39a2
    • Barry Warsaw's avatar
      (py-backspace-function): New variable. · 6d48c4a0
      Barry Warsaw yazdı
      (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.
      6d48c4a0
    • Barry Warsaw's avatar
      First round of changes, mostly subprocess stuff. · a97a3f34
      Barry Warsaw yazdı
      (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.
      a97a3f34
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
      When checking for equality, open the slave file in text mode so it · 79b2038a
      Guido van Rossum yazdı
      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).
      79b2038a
    • Guido van Rossum's avatar
      Use ``0'' instead of ``None'' to reset the underlying object in close · 19f44560
      Guido van Rossum yazdı
      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.
      19f44560
    • Guido van Rossum's avatar
      Fix due to Bill Noon for problem discovered by Ken Manheimer: packing · 8f3c812e
      Guido van Rossum yazdı
      0.0 as float or double would yield the representation for 1.0!
      8f3c812e
    • Guido van Rossum's avatar
      Get rid of another reference to _PyImport_Inittab (now a static array) · 25c649fd
      Guido van Rossum yazdı
      that should be PyImport_Inittab (a new pointer initialized to point to
      the array).
      25c649fd
  7. 03 Kas, 1997 6 kayıt (commit)
    • Guido van Rossum's avatar
      22348dc0
    • Guido van Rossum's avatar
      Move the Py_{{BEGIN,END}_ALLOW,BLOCK}_THREADS macros in time_sleep() · 8607ae2e
      Guido van Rossum yazdı
      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.
      8607ae2e
    • Guido van Rossum's avatar
      Two independent changes (alas): · 3a44e1b9
      Guido van Rossum yazdı
      - 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.
      3a44e1b9
    • Guido van Rossum's avatar
      Change the signal finialization so that it also resets the signal · 7ff20ac9
      Guido van Rossum yazdı
      handlers.  After this has been called, our signal handlers are no
      longer active!
      7ff20ac9
    • Guido van Rossum's avatar
      Doing the most complicated CVS dance I've ever seen. Barry has had · 615022fb
      Guido van Rossum yazdı
      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!
      615022fb
    • Barry Warsaw's avatar
      Changes in preparation for integrating into the Python CVS tree. · affc0ca0
      Barry Warsaw yazdı
      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.
      affc0ca0
  8. 31 Eki, 1997 8 kayıt (commit)