114 Commits (20190e2d54e6d513bb197a160cdfd236bf63f168)

Author SHA1 Message Date
Neal Norwitz 101bac205d Closure can't be NULL at this point since we know it's a tuple. 20 years ago
Neal Norwitz ee4cc698ca PyFunction_SetDefaults() is documented as taking None or a tuple. 20 years ago
Thomas Wouters 49fd7fa443 Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 20 years ago
Thomas Wouters c6e55068ca Use Py_VISIT in all tp_traverse methods, instead of traversing manually or 20 years ago
Thomas Wouters edf17d8798 Use Py_CLEAR instead of in-place DECREF/XDECREF or custom macros, for 20 years ago
Martin v. Löwis 15e62742fa Revert backwards-incompatible const changes. 21 years ago
Georg Brandl d02db4084e Make staticmethod and classmethod complain about keyword args. 21 years ago
Martin v. Löwis e0e89f7920 Revert 42400. 21 years ago
Martin v. Löwis 2c95cc6d72 Support %zd in PyErr_Format and PyString_FromFormat. 21 years ago
Neal Norwitz 26efe402c2 Get rid of compiler warnings (gcc 3.3.4 on x86) 21 years ago
Martin v. Löwis 18e165558b Merge ssize_t branch. 21 years ago
Jeremy Hylton af68c874a6 Add const to several API functions that take char *. 21 years ago
Jeremy Hylton 3e0055f8c6 Merge ast-branch to head 21 years ago
Michael W. Hudson ee319f66ab Fix 22 years ago
Armin Rigo 89a39461bf Wrote down the invariants of some common objects whose structure is 22 years ago
Michael W. Hudson 5e897959db This is my patch 22 years ago
Neal Norwitz 93468eac72 Remove unused macros in .c files 22 years ago
Martin v. Löwis 321c9ab74c Intern __name__. 23 years ago
Raymond Hettinger be9715398b SF bug #753451: classmethod abuse --> SystemError 23 years ago
Raymond Hettinger 8657845e02 SF bug #692959: new.function ignores keyword arguments 23 years ago
Jeremy Hylton 400d8ee6fa Make staticmethods and classmethods participate in GC. 23 years ago
Guido van Rossum 6b29c0147b Make __module__ writable except in restricted mode (like for classic classes). 24 years ago
Jeremy Hylton ff71c98449 Make __module__ settable on functions and methods. 24 years ago
Jeremy Hylton 4f0dcc9a9a Provide __module__ attributes for functions defined in C and Python. 24 years ago
Raymond Hettinger ea3fdf44a2 SF patch #659536: Use PyArg_UnpackTuple where possible. 24 years ago
Jeremy Hylton df3f793516 Extend function() to support an optional closure argument. 24 years ago
Guido van Rossum bea18ccde6 SF patch 568629 by Oren Tirosh: types made callable. 24 years ago
Martin v. Löwis 14f8b4cfcb Patch #568124: Add doc string macros. 24 years ago
Neil Schemenauer aa769ae468 PyObject_Del can now be used as a function designator. 24 years ago
Fred Drake cd874edaaa Fix the names of the classmethod and staticmethod constructors as passed to 25 years ago
Guido van Rossum 7e30548285 Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault 25 years ago
Sjoerd Mullender 564980bd86 Portability fix: Not every compiler implements the extension of 25 years ago
Guido van Rossum 33c1a8893d SF patch #493452: docstrings for staticmethod/classmethod (Skip 25 years ago
Guido van Rossum be5234610a function_call(): Remove a bogus (and I mean *really* bogus) call to 25 years ago
Fred Drake c916f5a390 Be smarter about clearing the weakref lists for instances, instance methods, 25 years ago
Guido van Rossum 9475a2310d Enable GC for new-style instances. This touches lots of files, since 25 years ago
Guido van Rossum 32d34c809f Add optional docstrings to getset descriptors. Fortunately, there's 25 years ago
Guido van Rossum 6f7993765a Add optional docstrings to member descriptors. For backwards 25 years ago
Guido van Rossum d9d1d4ac6f Rewrite function attributes to use the generic routines properly. 25 years ago
Neil Schemenauer e83c00efd0 Use new GC API. 25 years ago
Barry Warsaw 7ce3694a52 repr's converted to using PyString_FromFormat() instead of sprintf'ing 25 years ago
Barry Warsaw 142865cae1 func_getattro(), func_setattro(): Implement the new semantics for 25 years ago
Tim Peters 6d6c1a35e0 Merge of descr-branch back into trunk. 25 years ago
Fred Drake 4dcb85b817 Since Py_TPFLAGS_HAVE_WEAKREFS is set in Py_TPFLAGS_DEFAULT, it does not 25 years ago
Fred Drake db81e8ddf8 Add support for weak references to the function and method types. 26 years ago
Jeremy Hylton a52e8fe49a Visit the closure during traversal and XDECREF it on during deallocation. 26 years ago
Jeremy Hylton 3f571d6497 Fix SF buf 404774 submitted by Gregory H. Ball 26 years ago
Moshe Zadka 497671e094 The one thing I love more then writing code is deleting code. 26 years ago
Jeremy Hylton 64949cb753 PEP 227 implementation 26 years ago
Barry Warsaw 0395fdd3a9 Application and elaboration of patch #103305 to fix core dumps when 26 years ago