1. 28 Şub, 2001 2 kayıt (commit)
  2. 15 Ara, 2000 1 kayıt (commit)
  3. 01 Eyl, 2000 2 kayıt (commit)
  4. 24 Agu, 2000 1 kayıt (commit)
  5. 08 Tem, 2000 1 kayıt (commit)
  6. 30 Haz, 2000 2 kayıt (commit)
  7. 10 Mar, 2000 1 kayıt (commit)
  8. 17 Şub, 2000 1 kayıt (commit)
  9. 22 Haz, 1999 1 kayıt (commit)
    • 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
  10. 04 Ara, 1998 1 kayıt (commit)
  11. 01 Ara, 1998 1 kayıt (commit)
  12. 23 Tem, 1998 1 kayıt (commit)
  13. 16 Eyl, 1997 3 kayıt (commit)
  14. 29 Agu, 1997 1 kayıt (commit)
  15. 22 Agu, 1997 1 kayıt (commit)
    • Barry Warsaw's avatar
      Three new C API functions: · c0dc92af
      Barry Warsaw yazdı
      - int PyErr_GivenExceptionMatches(obj1, obj2)
      
        Returns 1 if obj1 and obj2 are the same object, or if obj1 is an
        instance of type obj2, or of a class derived from obj2
      
      - int PyErr_ExceptionMatches(obj)
      
        Higher level wrapper around PyErr_GivenExceptionMatches() which uses
        PyErr_Occurred() as obj1.  This will be the more commonly called
        function.
      
      - void PyErr_NormalizeException(typeptr, valptr, tbptr)
      
        Normalizes exceptions, and places the normalized values in the
        arguments.  If type is not a class, this does nothing.  If type is a
        class, then it makes sure that value is an instance of the class by:
      
        1. if instance is of the type, or a class derived from type, it does
           nothing.
      
        2. otherwise it instantiates the class, using the value as an
           argument.  If value is None, it uses an empty arg tuple, and if
           the value is a tuple, it uses just that.
      c0dc92af
  16. 02 Nis, 1997 1 kayıt (commit)
  17. 31 Mar, 1997 1 kayıt (commit)
  18. 14 Şub, 1997 2 kayıt (commit)
  19. 03 Ock, 1997 1 kayıt (commit)
  20. 10 Ara, 1996 1 kayıt (commit)
  21. 25 Eki, 1996 1 kayıt (commit)
  22. 27 Şub, 1995 1 kayıt (commit)
  23. 17 Ock, 1995 1 kayıt (commit)
  24. 12 Ock, 1995 1 kayıt (commit)
  25. 04 Ock, 1995 1 kayıt (commit)
    • Guido van Rossum's avatar
      Added 1995 copyright. · 5799b520
      Guido van Rossum yazdı
      object.h: made sizes and refcnts signed ints.
      stringobject.h: make getstrsize() signed int.
      methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
      5799b520
  26. 30 Ara, 1994 1 kayıt (commit)
  27. 18 Agu, 1994 1 kayıt (commit)
  28. 01 Agu, 1994 1 kayıt (commit)
  29. 28 Tem, 1993 1 kayıt (commit)
    • Guido van Rossum's avatar
      * Added support for X11 modules. · a3309960
      Guido van Rossum yazdı
      * Makefile: change location of FORMS library.
      * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not)
      * Almost all .h files: added CPP magic to avoid duplicate inclusions and
        to support inclusion from C++.
      a3309960
  30. 19 May, 1993 1 kayıt (commit)
    • Guido van Rossum's avatar
      Several changes in one: · 25831652
      Guido van Rossum yazdı
      (1) dictionaries/mappings now have attributes values() and items() as
      well as keys(); at the C level, use the new function mappinggetnext()
      to iterate over a dictionary.
      
      (2) "class C(): ..." is now illegal; you must write "class C: ...".
      
      (3) Class objects now know their own name (finally!); and minor
      improvements to the way how classes, functions and methods are
      represented as strings.
      
      (4) Added an "access" statement and semantics.  (This is still
      experimental -- as long as you don't use the keyword 'access' nothing
      should be changed.)
      25831652
  31. 29 Mar, 1993 1 kayıt (commit)
    • Guido van Rossum's avatar
      * Changed all copyright messages to include 1993. · 9bfef44d
      Guido van Rossum yazdı
      * Stubs for faster implementation of local variables (not yet finished)
      * Added function name to code object.  Print it for code and function
        objects.  THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version
        number has changed accordingly)
      * Print address of self for built-in methods
      * New internal functions getattro and setattro (getattr/setattr with
        string object arg)
      * Replaced "dictobject" with more powerful "mappingobject"
      * New per-type functio tp_hash to implement arbitrary object hashing,
        and hashobject() to interface to it
      * Added built-in functions hash(v) and hasattr(v, 'name')
      * classobject: made some functions static that accidentally weren't;
        added __hash__ special instance method to implement hash()
      * Added proper comparison for built-in methods and functions
      9bfef44d
  32. 05 Nis, 1992 1 kayıt (commit)
  33. 31 Ara, 1991 1 kayıt (commit)
  34. 24 Ara, 1991 1 kayıt (commit)