1. 17 Haz, 2002 1 kayıt (commit)
  2. 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
  3. 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
  4. 04 Agu, 2001 1 kayıt (commit)
  5. 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
  6. 12 Mar, 2001 1 kayıt (commit)
  7. 26 Eyl, 2000 1 kayıt (commit)
  8. 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
  9. 15 Eyl, 2000 1 kayıt (commit)
  10. 01 Eyl, 2000 1 kayıt (commit)
  11. 04 Agu, 2000 1 kayıt (commit)
  12. 22 Tem, 2000 1 kayıt (commit)
  13. 09 Tem, 2000 1 kayıt (commit)
  14. 06 Tem, 2000 1 kayıt (commit)
  15. 03 Tem, 2000 1 kayıt (commit)
  16. 30 Haz, 2000 2 kayıt (commit)
  17. 28 Haz, 2000 1 kayıt (commit)
  18. 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
  19. 25 Ock, 1999 1 kayıt (commit)
  20. 23 Ara, 1998 2 kayıt (commit)
  21. 25 Agu, 1998 1 kayıt (commit)
  22. 08 Agu, 1998 1 kayıt (commit)
  23. 04 Agu, 1998 1 kayıt (commit)
  24. 07 Tem, 1998 1 kayıt (commit)
  25. 20 Kas, 1997 1 kayıt (commit)
  26. 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
  27. 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
  28. 29 Nis, 1997 1 kayıt (commit)
  29. 25 Eki, 1996 1 kayıt (commit)
  30. 23 Ock, 1996 1 kayıt (commit)
  31. 09 Mar, 1995 1 kayıt (commit)
  32. 20 Ock, 1995 1 kayıt (commit)
  33. 17 Ock, 1995 1 kayıt (commit)
  34. 09 Ock, 1995 1 kayıt (commit)
  35. 07 Ock, 1995 1 kayıt (commit)
  36. 04 Ock, 1995 1 kayıt (commit)
    • Guido van Rossum's avatar
      Added 1995 to copyright message. · 6d023c98
      Guido van Rossum yazdı
      bltinmodule.c: fixed coerce() nightmare in ternary pow().
      modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
      pythonrun.c: move flushline() into and around print_error().
      6d023c98
  37. 02 Ock, 1995 1 kayıt (commit)
  38. 29 Eyl, 1994 1 kayıt (commit)
    • Guido van Rossum's avatar
      * Python/{modsupport.c,getargs.c,Makefile.in}, · fe3f1a25
      Guido van Rossum yazdı
      	Include/modsupport.h: moved getargs() to its own file and
      	re-implemented it entirely to support optional arguments, multiple
      	arguments without surrounding parentheses
      	(when called as newgetargs()), and better error messages
      fe3f1a25