1. 23 Ock, 2001 1 kayıt (commit)
  2. 22 Ock, 2001 1 kayıt (commit)
  3. 21 Ock, 2001 1 kayıt (commit)
  4. 20 Ock, 2001 1 kayıt (commit)
  5. 19 Ock, 2001 1 kayıt (commit)
  6. 18 Ock, 2001 1 kayıt (commit)
  7. 17 Ock, 2001 5 kayıt (commit)
  8. 15 Ock, 2001 1 kayıt (commit)
    • Barry Warsaw's avatar
      Committing PEP 232, function attribute feature, approved by Guido. · d6a9e84c
      Barry Warsaw yazdı
      Closes SF patch #103123.
      
      funcobject.h:
      
          PyFunctionObject: add the func_dict slot.
      
      funcobject.c:
      
          PyFunction_New(): Initialize the func_dict slot to NULL.
      
          func_getattr(): Rename to func_getattro() and change the
          signature.  It's more efficient to use attro methods and dig the C
          string out than it is to re-convert a C string to a PyString.
      
          Also, add support for getting the __dict__ (a.k.a. func_dict)
          attribute, and for getting an arbitrary function attribute.
      
          func_setattr(): Rename to func_setattro() and change the signature
          for the same reason.  Also add support for setting __dict__
          (a.k.a. func_dict) and any arbitrary function attribute.
      
          func_dealloc(): Be sure to DECREF the func_dict slot.
      
          func_traverse(): Be sure to traverse func_dict too.
      
          PyFunction_Type: make the necessary func_?etattro() changes.
      
      classobject.c:
      
          instancemethod_memberlist: Add __dict__
      
          instancemethod_setattro(): New method to set arbitrary attributes
          on methods (really the underlying im_func).  Raise TypeError when
          the instance is bound or when you're trying to set one of the
          reserved im_* attributes.
      
          instancemethod_getattr(): Renamed to instancemethod_getattro()
          since that's what it really is.  Also, added support fo getting
          arbitrary attributes through the im_func.
      
          PyMethod_Type: Do the ?etattr{,o} dance.
      d6a9e84c
  9. 12 Ock, 2001 1 kayıt (commit)
  10. 04 Ock, 2001 2 kayıt (commit)
  11. 22 Ara, 2000 1 kayıt (commit)
  12. 15 Ara, 2000 2 kayıt (commit)
  13. 03 Kas, 2000 1 kayıt (commit)
    • Thomas Wouters's avatar
      Move our own getopt() implementation to _PyOS_GetOpt(), and use it · 2cffc7d4
      Thomas Wouters yazdı
      regardless of whether the system getopt() does what we want. This avoids the
      hassle with prototypes and externs, and the check to see if the system
      getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to
      avoid name clashes. Add new include file to define the right symbols. Fix
      Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on
      Python to provide it.
      2cffc7d4
  14. 13 Eki, 2000 1 kayıt (commit)
  15. 11 Eki, 2000 1 kayıt (commit)
  16. 09 Eki, 2000 1 kayıt (commit)
  17. 05 Eki, 2000 2 kayıt (commit)
  18. 26 Eyl, 2000 2 kayıt (commit)
    • Fred Drake's avatar
      Rationalize use of limits.h, moving the inclusion to Python.h. · d5fadf75
      Fred Drake yazdı
      Add definitions of INT_MAX and LONG_MAX to pyport.h.
      Remove includes of limits.h and conditional definitions of INT_MAX
      and LONG_MAX elsewhere.
      
      This closes SourceForge patch #101659 and bug #115323.
      d5fadf75
    • Guido van Rossum's avatar
      It's..... · 39d59b47
      Guido van Rossum yazdı
      Python 2.0b2!
      
      (Note: Jeremy will finish the release on Sept. 26; I have to go on an
      unexpected business trip.)
      39d59b47
  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. 21 Eyl, 2000 1 kayıt (commit)
    • Tim Peters's avatar
      Derived from Martin's SF patch 110609: support unbounded ints in %d,i,u,x,X,o formats. · 38fd5b64
      Tim Peters yazdı
      Note a curious extension to the std C rules:  x, X and o formatting can never produce
      a sign character in C, so the '+' and ' ' flags are meaningless for them.  But
      unbounded ints *can* produce a sign character under these conversions (no fixed-
      width bitstring is wide enough to hold all negative values in 2's-comp form).  So
      these flags become meaningful in Python when formatting a Python long which is too
      big to fit in a C long.  This required shuffling around existing code, which hacked
      x and X conversions to death when both the '#' and '0' flags were specified:  the
      hacks weren't strong enough to deal with the simultaneous possibility of the ' ' or
      '+' flags too, since signs were always meaningless before for x and X conversions.
      Isomorphic shuffling was required in unicodeobject.c.
      Also added dozens of non-trivial new unbounded-int test cases to test_format.py.
      38fd5b64
  21. 19 Eyl, 2000 2 kayıt (commit)
    • Marc-André Lemburg's avatar
      This patch adds a new Python C API called PyString_AsStringAndSize() · d1ba4432
      Marc-André Lemburg yazdı
      which implements the automatic conversion from Unicode to a string
      object using the default encoding.
      
      The new API is then put to use to have eval() and exec accept
      Unicode objects as code parameter. This closes bugs #110924
      and #113890.
      
      As side-effect, the traditional C APIs PyString_Size() and
      PyString_AsString() will also accept Unicode objects as
      parameters.
      d1ba4432
    • Guido van Rossum's avatar
      Make better use of GNU Pth -- patch by Andy Dustman. · 9e8181b8
      Guido van Rossum yazdı
      I can't test this, so I'm just checking it in with blind faith in Andy.
      I've tested that it doesn't broeak a non-Pth build on Linux.
      
      Changes include:
      
      - There's a --with-pth configure option.
      
      - Instead of _GNU_PTH, we test for HAVE_PTH.
      
      - Better signal handling.
      
      - (The config.h.in file is regenerated in a slightly different order.)
      9e8181b8
  22. 16 Eyl, 2000 1 kayıt (commit)
  23. 15 Eyl, 2000 1 kayıt (commit)
  24. 10 Eyl, 2000 1 kayıt (commit)
    • Tim Peters's avatar
      Close SF bug 110826: a complaint about the way Python #define'd NULL. · 4826a894
      Tim Peters yazdı
      It's hard to sort out what the bug was, exactly.  So, Big Hammer:
      
      1. Python shouldn't be in the business of #define'ing NULL, period.
      2. Users of the Python C API shouldn't be in the business of not including
         Python.h, period.
      
      Hence:
      
      1. Removed all #define's of NULL in Python source code (pyport.h and
         object.h).
      2. Since we're *relying* on stdio.h defining NULL, put an #error in
         Python.h after its #include of stdio.h if NULL isn't defined then.
      4826a894
  25. 08 Eyl, 2000 2 kayıt (commit)
  26. 01 Eyl, 2000 3 kayıt (commit)
  27. 31 Agu, 2000 1 kayıt (commit)
  28. 27 Agu, 2000 1 kayıt (commit)