1. 15 Jun, 1998 4 commits
    • Guido van Rossum's avatar
      Primitive GUI for websucker. · e3bd8211
      Guido van Rossum authored
      e3bd8211
    • Guido van Rossum's avatar
      Fix the way a trailing / is changed to /index.html so that it · d328a9b5
      Guido van Rossum authored
      doesn't depend on the value of os.sep.  (I.e. ported to Windows :-)
      d328a9b5
    • Guido van Rossum's avatar
      sort the urls in the todo list · 6eb9d32c
      Guido van Rossum authored
      6eb9d32c
    • Guido van Rossum's avatar
      # (My first checkin from Windows NT using remote CVS!) · 62320c9b
      Guido van Rossum authored
      There were some serious problem with the thread-safety code.
      The basic problem was that often the result was gotten out of
      the Tcl interpreter object after releasing the Tcl lock.
      Of course, another thread might have changed the return value
      already, and this was indeed happening.  (Amazing what trying
      it on a different thread implementation does!)
      
      The solution is to grab the Python lock without releasing the
      Tcl lock, so it's safe to create a string object or set the
      exceptions from the Tcl interpreter.  Once that's done, the
      Tcl lock is released.
      
      Note that it's now legal to acquire the Python lock while the
      the Tcl lock is held; but the reverse is not true: the Python
      lock must be released before the Tcl lock is acquired.  This
      in order to avoid deadlines.  Fortunately, there don't seem to
      be any problems with this.
      62320c9b
  2. 13 Jun, 1998 1 commit
    • Guido van Rossum's avatar
      Fixed the EventHook() code so that it also works on Windows, sort of. · ad4db175
      Guido van Rossum authored
      (The "sort of" is because it uses kbhit() to detect that the user
      starts typing, and then no events are processed until they hit
      return.)
      
      Also fixed a nasty locking bug: EventHook() is called without the Tcl
      lock set, so it can't use the ENTER_PYTHON and LEAVE_PYTHON macros,
      which manipulate both the Python and the Tcl lock.  I now only acquire
      and release the Python lock.
      
      (Haven't tested this on Unix yet...)
      ad4db175
  3. 12 Jun, 1998 8 commits
  4. 11 Jun, 1998 8 commits
  5. 10 Jun, 1998 3 commits
  6. 09 Jun, 1998 13 commits
  7. 08 Jun, 1998 2 commits
  8. 29 May, 1998 1 commit
    • Guido van Rossum's avatar
      Allow assignments to special class attributes -- with typechecks, and · a63eff6e
      Guido van Rossum authored
      not in restricted mode.
      
      __dict__ can be set to any dictionary; the cl_getattr, cl_setattr and
      cl_delattr slots are refreshed.
      
      __name__ can be set to any string.
      
      __bases__ can be set to to a tuple of classes, provided they are not
      subclasses of the class whose attribute is being assigned.
      
      __getattr__, __setattr__ and __delattr__ can be set to anything, or
      deleted; the appropriate slot (cl_getattr, cl_setattr, cl_delattr) is
      refreshed.
      
      (Note: __name__ really doesn't need to be a special attribute, but
      that would be more work.)
      a63eff6e