Guido van Rossum
845fc48bf7
getset_descr_set(): guard against deletion (indicated by a set call
...
with a NULL value), in a somewhat lame way: call the set() function
with one argument. Should I add a 3rd function, 'del', instead?
2001-08-24 10:17:36 +00:00
Guido van Rossum
91c0d8a922
getset_init(): make the arguments optional.
...
getset_doc: add docstring.
2001-08-24 09:55:51 +00:00
Guido van Rossum
29a62dd6eb
Add new built-in type 'getset' (PyGetSet_Type).
...
This implements the 'getset' class from test_binop.py.
2001-08-23 21:40:38 +00:00
Martin v. Löwis
e3eb1f2b23
Patch #427190 : Implement and use METH_NOARGS and METH_O.
2001-08-16 13:15:00 +00:00
Guido van Rossum
8098ddbe81
Subtle change to make None.__class__ work:
...
- descrobject.c:descr_check(): only believe None means the same as
NULL if the type given is None's type.
- typeobject.c:wrap_descr_get(): don't "conventiently" default an
absent type to the type of the object argument. Let the called
function figure it out.
2001-08-16 08:27:33 +00:00
Tim Peters
6d6c1a35e0
Merge of descr-branch back into trunk.
2001-08-02 04:15:00 +00:00