1. 14 Şub, 2008 1 kayıt (commit)
  2. 19 Ara, 2007 1 kayıt (commit)
  3. 21 Tem, 2007 1 kayıt (commit)
  4. 10 Ara, 2005 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Add const to several API functions that take char *. · af68c874
      Jeremy Hylton yazdı
      In C++, it's an error to pass a string literal to a char* function
      without a const_cast().  Rather than require every C++ extension
      module to put a cast around string literals, fix the API to state the
      const-ness.
      
      I focused on parts of the API where people usually pass literals:
      PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type
      slots, etc.  Predictably, there were a large set of functions that
      needed to be fixed as a result of these changes.  The most pervasive
      change was to make the keyword args list passed to
      PyArg_ParseTupleAndKewords() to be a const char *kwlist[].
      
      One cast was required as a result of the changes:  A type object
      mallocs the memory for its tp_doc slot and later frees it.
      PyTypeObject says that tp_doc is const char *; but if the type was
      created by type_new(), we know it is safe to cast to char *.
      af68c874
  5. 28 Eki, 2004 1 kayıt (commit)
    • Armin Rigo's avatar
      Wrote down the invariants of some common objects whose structure is · 89a39461
      Armin Rigo yazdı
      exposed in header files.  Fixed a few comments in these headers.
      
      As we might have expected, writing down invariants systematically exposed a
      (minor) bug.  In this case, function objects have a writeable func_code
      attribute, which could be set to code objects with the wrong number of
      free variables.  Calling the resulting function segfaulted the interpreter.
      Added a corresponding test.
      89a39461
  6. 13 Ara, 2003 1 kayıt (commit)
  7. 31 Ock, 2003 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Provide __module__ attributes for functions defined in C and Python. · 4f0dcc9a
      Jeremy Hylton yazdı
      __module__ is the string name of the module the function was defined
      in, just like __module__ of classes.  In some cases, particularly for
      C functions, the __module__ may be None.
      
      Change PyCFunction_New() from a function to a macro, but keep an
      unused copy of the function around so that we don't change the binary
      API.
      
      Change pickle's save_global() to use whichmodule() if __module__ is
      None, but add the __module__ logic to whichmodule() since it might be
      used outside of pickle.
      4f0dcc9a
  8. 12 Agu, 2002 1 kayıt (commit)
  9. 28 Mar, 2002 1 kayıt (commit)
    • Fred Drake's avatar
      Introduce two new flag bits that can be set in a PyMethodDef method · 7bf9715a
      Fred Drake yazdı
      descriptor, as used for the tp_methods slot of a type.  These new flag
      bits are both optional, and mutually exclusive.  Most methods will not
      use either.  These flags are used to create special method types which
      exist in the same namespace as normal methods without having to use
      tedious construction code to insert the new special method objects in
      the type's tp_dict after PyType_Ready() has been called.
      
      If METH_CLASS is specified, the method will represent a class method
      like that returned by the classmethod() built-in.
      
      If METH_STATIC is specified, the method will represent a static method
      like that returned by the staticmethod() built-in.
      
      These flags may not be used in the PyMethodDef table for modules since
      these special method types are not meaningful in that case; a
      ValueError will be raised if these flags are found in that context.
      7bf9715a
  10. 12 Agu, 2001 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Remove much dead code from ceval.c · 910d7d46
      Jeremy Hylton yazdı
      The descr changes moved the dispatch for calling objects from
      call_object() in ceval.c to PyObject_Call() in abstract.c.
      call_object() and the many functions it used in ceval.c were no longer
      used, but were not removed.
      
      Rename meth_call() as PyCFunction_Call() so that it can be called by
      the CALL_FUNCTION opcode in ceval.c.
      
      Also, fix error message that referred to PyEval_EvalCodeEx() by its
      old name eval_code2().  (I'll probably refer to it by its old name,
      too.)
      910d7d46
  11. 01 Eyl, 2000 1 kayıt (commit)
  12. 03 Agu, 2000 1 kayıt (commit)
  13. 09 Tem, 2000 2 kayıt (commit)
  14. 30 Haz, 2000 2 kayıt (commit)
  15. 04 Ara, 1998 1 kayıt (commit)
  16. 10 Tem, 1998 1 kayıt (commit)
  17. 25 Eki, 1996 1 kayıt (commit)
  18. 26 Tem, 1995 1 kayıt (commit)
  19. 27 Şub, 1995 1 kayıt (commit)
  20. 26 Ock, 1995 1 kayıt (commit)
  21. 12 Ock, 1995 1 kayıt (commit)
  22. 07 Ock, 1995 1 kayıt (commit)
  23. 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
  24. 18 Agu, 1994 1 kayıt (commit)
  25. 01 Agu, 1994 1 kayıt (commit)
  26. 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
  27. 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
  28. 05 Nis, 1992 1 kayıt (commit)
  29. 16 Ara, 1991 1 kayıt (commit)
  30. 19 Şub, 1991 1 kayıt (commit)
  31. 20 Ara, 1990 1 kayıt (commit)
  32. 14 Eki, 1990 1 kayıt (commit)