Re: [Pyobjc-dev] Still struggling with NSOutlineView
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-01-18 13:51:41
|
Ronald Oussoren wrote: > How usefull ;-(. I thought this checked if an object implements a > sequence. I did wonder how the code could detect if a __getitem__ > method is sequence-like instead of dict-like, but never thought the > check would be this lame. It's not generally possible: __getitem__ could also mean the object implements the mapping protocol. > I'll convert to check to PyList_Check || PyTuple_Check. I think this is a fine restriction. Good luck debugging... Just |