Message49534
Logged In: YES
user_id=60314
in property-get-doc.diff:
if doc is None and fget.__doc__ is not None:
would raise a confusing TypeError when doc is fget is None -- check for that
case explicitly to raise a specific exception. Also, property(fset=foo) used to
work and thus must keep working. Similarly, the C code
if ((get_doc = PyObject_GetAttrString(get, "__doc__")))
must reset the errorstate if get_doc is NULL.
in property-get-doc-2.diff:
Add unittest to check that property(fset=somecallable) keeps working.
Alex
|
|
Date |
User |
Action |
Args |
2007-08-23 15:45:52 | admin | link | issue1434038 messages |
2007-08-23 15:45:52 | admin | create | |
|