1. 14 Tem, 2004 1 kayıt (commit)
    • Michael W. Hudson's avatar
      This is Pete Shinners' patch from his bug report · c849e63e
      Michael W. Hudson yazdı
      [ 984722 ] Py_BuildValue loses reference counts on error
      
      I'm ever-so-slightly uneasy at the amount of work this can do with an
      exception pending, but I don't think that this can result in anything
      more serious than a strange error message.
      c849e63e
  2. 19 Kas, 2003 1 kayıt (commit)
  3. 24 Eki, 2003 1 kayıt (commit)
  4. 21 Haz, 2003 1 kayıt (commit)
  5. 17 Nis, 2003 1 kayıt (commit)
  6. 29 Mar, 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. 30 Ock, 2003 1 kayıt (commit)
  9. 15 Ara, 2002 1 kayıt (commit)
  10. 14 Agu, 2002 1 kayıt (commit)
  11. 28 Tem, 2002 1 kayıt (commit)
  12. 17 Haz, 2002 1 kayıt (commit)
  13. 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
  14. 17 Agu, 2001 1 kayıt (commit)
    • Martin v. Löwis's avatar
      Patch #445762: Support --disable-unicode · 339d0f72
      Martin v. Löwis yazdı
      - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
      - check for Py_USING_UNICODE in all places that use Unicode functions
      - disables unicode literals, and the builtin functions
      - add the types.StringTypes list
      - remove Unicode literals from most tests.
      339d0f72
  15. 04 Agu, 2001 1 kayıt (commit)
  16. 31 Tem, 2001 1 kayıt (commit)
    • Marc-André Lemburg's avatar
      This patch turns the Python API mismatch notice into a standard · e5006ebc
      Marc-André Lemburg yazdı
      Python warning which can be catched by means of the Python warning
      framework.
      
      It also adds two new APIs which hopefully make it easier for Python
      to switch to buffer overflow safe [v]snprintf() APIs for error
      reporting et al. The two new APIs are PyOS_snprintf() and
      PyOS_vsnprintf() and work just like the standard ones in many
      C libs. On platforms which have snprintf(), the native APIs are used,
      on all other an emulation with snprintf() tries to do its best.
      e5006ebc
  17. 12 Mar, 2001 1 kayıt (commit)
  18. 26 Eyl, 2000 1 kayıt (commit)
  19. 23 Eyl, 2000 1 kayıt (commit)
    • Fred Drake's avatar
      Andrew Kuchling <akuchlin@mems-exchange.org>: · 9e285156
      Fred Drake yazdı
      Add three new convenience functions to the PyModule_*() family:
      PyModule_AddObject(), PyModule_AddIntConstant(), PyModule_AddStringConstant().
      
      This closes SourceForge patch #101233.
      9e285156
  20. 15 Eyl, 2000 1 kayıt (commit)
  21. 01 Eyl, 2000 1 kayıt (commit)
  22. 04 Agu, 2000 1 kayıt (commit)
  23. 22 Tem, 2000 1 kayıt (commit)
  24. 09 Tem, 2000 1 kayıt (commit)
  25. 06 Tem, 2000 1 kayıt (commit)
  26. 03 Tem, 2000 1 kayıt (commit)
  27. 30 Haz, 2000 2 kayıt (commit)
  28. 28 Haz, 2000 1 kayıt (commit)
  29. 28 Nis, 2000 1 kayıt (commit)
    • Fred Drake's avatar
      Brian Hooper <brian_takashi@hotmail.com>: · 25d34473
      Fred Drake yazdı
      Here's a patch which changes modsupport to add 'u' and 'u#',
      to support building Unicode objects from a null-terminated
      Py_UNICODE *, and a Py_UNICODE * with length, respectively.
      
      [Conversion from 'U' to 'u' by Fred, based on python-dev comments.]
      
      Note that the use of None for NULL values of the Py_UNICODE* value is
      still in; I'm not sure of the conclusion on that issue.
      25d34473
  30. 25 Ock, 1999 1 kayıt (commit)
  31. 23 Ara, 1998 2 kayıt (commit)
  32. 25 Agu, 1998 1 kayıt (commit)
  33. 08 Agu, 1998 1 kayıt (commit)
  34. 04 Agu, 1998 1 kayıt (commit)
  35. 07 Tem, 1998 1 kayıt (commit)
  36. 20 Kas, 1997 1 kayıt (commit)
  37. 19 Kas, 1997 1 kayıt (commit)
    • Guido van Rossum's avatar
      Fix importing of shared libraries from inside packages. · 2e58ff3e
      Guido van Rossum yazdı
      This is a bit of a hack: when the shared library is loaded, the module
      name is "package.module", but the module calls Py_InitModule*() with just
      "module" for the name.  The shared library loader squirrels away the true
      name of the module in _Py_PackageContext, and Py_InitModule*() will
      substitute this (if the name actually matches).
      2e58ff3e
  38. 02 Agu, 1997 1 kayıt (commit)
    • Guido van Rossum's avatar
      Removed fatal errors from Py_Initmodule4() (and thus from · 40b33c64
      Guido van Rossum yazdı
      Py_Initmodule(), which is a macro wrapper around it).
      
      The return value is now a NULL pointer if the initialization failed.
      This may make old modules fail with a SEGFAULT, since they don't
      expect this kind of failure.  That's OK, since (a) it "never" happens,
      and (b) they would fail with a fatal error otherwise, anyway.
      
      Tons of extension modules should now check the return value of
      Py_Initmodule*() -- that's on my TODO list.
      40b33c64