1. 14 Eyl, 2004 1 kayıt (commit)
  2. 16 Tem, 2003 1 kayıt (commit)
  3. 09 Haz, 2003 1 kayıt (commit)
  4. 13 Haz, 2002 1 kayıt (commit)
  5. 04 Haz, 2002 2 kayıt (commit)
    • Guido van Rossum's avatar
      Add a docstring to the module type. · ed3e09f2
      Guido van Rossum yazdı
      ed3e09f2
    • Guido van Rossum's avatar
      Surprising fix for SF bug 563060: module can be used as base class. · c3a787e0
      Guido van Rossum yazdı
      Change the module constructor (module_init) to have the signature
      __init__(name:str, doc=None); this prevents the call from type_new()
      to succeed.  While we're at it, prevent repeated calling of
      module_init for the same module from leaking the dict, changing the
      semantics so that __dict__ is only initialized if NULL.
      
      Also adding a unittest, test_module.py.
      
      This is an incompatibility with 2.2, if anybody was instantiating the
      module class before, their argument list was probably empty; so this
      can't be backported to 2.2.x.
      c3a787e0
  6. 12 Nis, 2002 1 kayıt (commit)
  7. 12 Mar, 2002 1 kayıt (commit)
    • Guido van Rossum's avatar
      Fix for SF bug #529050 - ModuleType.__new__ crash. · cd637aae
      Guido van Rossum yazdı
      There were several places that assumed the md_dict field was always
      set, but it needn't be.  Fixed these to be more careful.
      
      I changed PyModule_GetDict() to initialize md_dict to a new dictionary
      if it's NULL.
      
      Bugfix candidate.
      cd637aae
  8. 21 Eki, 2001 1 kayıt (commit)
  9. 05 Eki, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Enable GC for new-style instances. This touches lots of files, since · 9475a231
      Guido van Rossum yazdı
      many types were subclassable but had a xxx_dealloc function that
      called PyObject_DEL(self) directly instead of deferring to
      self->ob_type->tp_free(self).  It is permissible to set tp_free in the
      type object directly to _PyObject_Del, for non-GC types, or to
      _PyObject_GC_Del, for GC types.  Still, PyObject_DEL was a tad faster,
      so I'm fearing that our pystone rating is going down again.  I'm not
      sure if doing something like
      
      void xxx_dealloc(PyObject *self)
      {
      	if (PyXxxCheckExact(self))
      		PyObject_DEL(self);
      	else
      		self->ob_type->tp_free(self);
      }
      
      is any faster than always calling the else branch, so I haven't
      attempted that -- however those types whose own dealloc is fancier
      (int, float, unicode) do use this pattern.
      9475a231
  10. 20 Eyl, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Add optional docstrings to member descriptors. For backwards · 6f799376
      Guido van Rossum yazdı
      compatibility, this required all places where an array of "struct
      memberlist" structures was declared that is referenced from a type's
      tp_members slot to change the type of the structure to PyMemberDef;
      "struct memberlist" is now only used by old code that still calls
      PyMember_Get/Set.  The code in PyObject_GenericGetAttr/SetAttr now
      calls the new APIs PyMember_GetOne/SetOne, which take a PyMemberDef
      argument.
      
      As examples, I added actual docstrings to the attributes of a few
      types: file, complex, instance method, super, and xxsubtype.spamlist.
      
      Also converted the symtable to new style getattr.
      6f799376
  11. 29 Agu, 2001 1 kayıt (commit)
  12. 24 Agu, 2001 1 kayıt (commit)
  13. 16 Agu, 2001 1 kayıt (commit)
  14. 02 Agu, 2001 1 kayıt (commit)
  15. 12 May, 2001 1 kayıt (commit)
  16. 11 May, 2001 1 kayıt (commit)
  17. 02 Ock, 2001 1 kayıt (commit)
  18. 24 Eki, 2000 1 kayıt (commit)
    • Fred Drake's avatar
      Ka-Ping Yee <ping@lfw.org>: · 661ea26b
      Fred Drake yazdı
      Changes to error messages to increase consistency & clarity.
      
      This (mostly) closes SourceForge patch #101839.
      661ea26b
  19. 01 Eyl, 2000 1 kayıt (commit)
  20. 09 Tem, 2000 1 kayıt (commit)
  21. 30 Haz, 2000 2 kayıt (commit)
  22. 03 May, 2000 1 kayıt (commit)
    • Guido van Rossum's avatar
      Vladimir Marangozov's long-awaited malloc restructuring. · b18618da
      Guido van Rossum yazdı
      For more comments, read the patches@python.org archives.
      For documentation read the comments in mymalloc.h and objimpl.h.
      
      (This is not exactly what Vladimir posted to the patches list; I've
      made a few changes, and Vladimir sent me a fix in private email for a
      problem that only occurs in debug mode.  I'm also holding back on his
      change to main.c, which seems unnecessary to me.)
      b18618da
  23. 15 Şub, 1999 1 kayıt (commit)
  24. 12 Eki, 1998 1 kayıt (commit)
  25. 19 Şub, 1998 1 kayıt (commit)
    • Guido van Rossum's avatar
      Add internal routine _PyModule_Clear(), which does approximately what · f1dc0615
      Guido van Rossum yazdı
      clear_carefully() used to do in import.c.  Differences: leave only
      __builtins__ alone in the 2nd pass; and don't clear the dictionary (on
      the theory that as long as there are references left to the
      dictionary, those might be destructors that might expect __builtins__
      to be alive when they run; and __builtins__ can't normally be part of
      a cycle).
      f1dc0615
  26. 09 May, 1997 1 kayıt (commit)
  27. 02 May, 1997 1 kayıt (commit)
  28. 25 Eki, 1996 1 kayıt (commit)
  29. 12 Agu, 1996 1 kayıt (commit)
  30. 26 Ock, 1995 1 kayıt (commit)
  31. 07 Ock, 1995 1 kayıt (commit)
  32. 04 Ock, 1995 1 kayıt (commit)
  33. 30 Agu, 1994 1 kayıt (commit)
  34. 17 Kas, 1993 1 kayıt (commit)
    • Guido van Rossum's avatar
      * import.c (get_module): total rewrite, to ensure proper search order: for · c45611d0
      Guido van Rossum yazdı
        each dir in sys.path, try each possible extension.  (Note: C extensions
        are loaded before Python modules in the same directory, to allow having
        a C version used when dynamic loading is supported and a Python version
        as a back-up.)
      * import.c (reload_module): test for error from getmodulename()
      * moduleobject.c: implement module name as dict entry '__name__' instead
        of special-casing it in module_getattr(); this way a module (or
        function!) can access its own module name, and programs that know what
        they are doing can rename modules.
      * stdwinmodule.c (initstdwin): strip ".py" suffix of argv[0].
      c45611d0
  35. 25 May, 1993 1 kayıt (commit)
    • Guido van Rossum's avatar
      * classobject.c: in instance_getattr, don't make a method out of a · eb6b33a8
      Guido van Rossum yazdı
        function found as instance data.
      * socketmodule.c: added 'flags' argument sendto/recvfrom, rewrite
        argument parsing in send/recv.
      * More changes related to access (terminology change: owner instead of
        class; allow any object as owner; local/global variables are owned
        by their dictionary, only class/instance data is owned by the class;
        "from...import *" now only imports objects with public access; etc.)
      eb6b33a8
  36. 20 May, 1993 1 kayıt (commit)
  37. 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
  38. 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