1. 25 Haz, 1999 12 kayıt (commit)
  2. 24 Haz, 1999 2 kayıt (commit)
    • Guido van Rossum's avatar
      Clarify the example by explicitly importing the fcntl module -- this · cf6905f9
      Guido van Rossum yazdı
      avoid being fooled into thinking that fcntl and FCNTL are the same
      thing -- they aren't!  (fcntl is the extension, FCNTL.py is h2py
      output that defines all the constants).
      
      (XXX The example is still weird -- I think there's a more portable way
      to do locking now.  That's for someone else to fix...)
      cf6905f9
    • Guido van Rossum's avatar
      Sjoerd Mullender writes: · 336a201d
      Guido van Rossum yazdı
      Urllib makes the URL of the opened file available through the geturl
      method of the returned object.  For local files, this consists of
      file: plus the name of the file.  This results in an invalid URL if
      the file name was relative.  This patch fixes this so that the
      returned URL is just a relative URL in that case.  When the file name
      is absolute, the URL returned is of the form file:///absolute/path.
      
      [I guess that a URL of the form "file:foo.html" is illegal...  GvR]
      336a201d
  3. 23 Haz, 1999 11 kayıt (commit)
  4. 22 Haz, 1999 5 kayıt (commit)
    • Fred Drake's avatar
    • Fred Drake's avatar
      Added entry for the chunk module. · 707f8e67
      Fred Drake yazdı
      707f8e67
    • Fred Drake's avatar
      New section from Moshe Zadka, modified by FLD for markup, some · 97793ab6
      Fred Drake yazdı
      additional content.
      97793ab6
    • Just van Rossum's avatar
      mod from Joe Strout: when quitting, catch errors in window.close() methods and… · d58c7464
      Just van Rossum yazdı
      mod from Joe Strout: when quitting, catch errors in window.close() methods and ignore them. Otherwise one can never quit.
      d58c7464
    • Guido van Rossum's avatar
      Patch by Tim Peters: · 87460821
      Guido van Rossum yazdı
      Introduce a new builtin exception, UnboundLocalError, raised when ceval.c
      tries to retrieve or delete a local name that isn't bound to a value.
      Currently raises NameError, which makes this behavior a FAQ since the same
      error is raised for "missing" global names too:  when the user has a global
      of the same name as the unbound local, NameError makes no sense to them.
      Even in the absence of shadowing, knowing whether a bogus name is local or
      global is a real aid to quick understanding.
      
      Example:
      
      D:\src\PCbuild>type local.py
      x = 42
      
      def f():
          print x
          x = 13
          return x
      
      f()
      
      D:\src\PCbuild>python local.py
      Traceback (innermost last):
        File "local.py", line 8, in ?
          f()
        File "local.py", line 4, in f
          print x
      UnboundLocalError: x
      
      D:\src\PCbuild>
      
      Note that UnboundLocalError is a subclass of NameError, for compatibility
      with existing class-exception code that may be trying to catch this as a
      NameError.  Unfortunately, I see no way to make this wholly compatible
      with -X (see comments in bltinmodule.c):  under -X, [UnboundLocalError
      is an alias for NameError --GvR].
      
      [The ceval.c patch differs slightly from the second version that Tim
      submitted; I decided not to raise UnboundLocalError for DELETE_NAME,
      only for DELETE_LOCAL.  DELETE_NAME is only generated at the module
      level, and since at that level a NameError is raised for referencing
      an undefined name, it should also be raised for deleting one.]
      87460821
  5. 21 Haz, 1999 10 kayıt (commit)