Movatterモバイル変換
[0]ホーム
[Python-Dev] SWIG and rlcompleter
Raymond Hettingerraymond.hettinger at verizon.net
Wed Aug 17 22:21:16 CEST 2005
> > [Timothy Fitz]> > > It seems to> > > me that those who want dir to reflect __dict__ should just use> > > __dict__ in the first place.>> [Raymond]> > The dir() builtin does quite a bit more than obj.__dict__.keys().>> Well that's the whole point, right?Perhaps. I wasn't taking a position. Just noting that Timothy'scomment over-simplified the relationship.> A more useful relationship is>> name in dir(x) <==> getattr(x, name) is validThat would be a useful invariant.Raymond
More information about the Python-Devmailing list
[8]ページ先頭