2 Dec
2004
2 Dec
'04
5:13 p.m.
On Thu, Dec 02, 2004 at 10:38:20AM -0500, Tres Seaver wrote:
__getitem__ is actually simpler than __bobo_traverse__; I have often started with __bobo_traverse__, because I thought I needed it, and ended up rerwriting as __getitem__.
Good point, I tend to forget that too. Also as another respondent noted, you could solve the problem in a quick-and-dirty way by having the top-level traversed item be a Script that returns the Right Thing based on its traverse_subpath. -- Paul Winkler http://www.slinkp.com