Magic Module Methods?

Magnus Lie Hetland mlh at idi.ntnu.no
Sat Oct 20 22:39:49 EDT 2001


"John Roth" <johnroth at ameritech.net> wrote in message
news:tt4d2ohho6aq77 at news.supernews.com...
>
> "Magnus Lie Hetland" <mlh at idi.ntnu.no> wrote in message
> news:9qsmsg$afb$1 at tyfon.itea.ntnu.no...
[snip]

> It would require refactoring the clients to call the
> function, but IMO that would be clearer in any case.

I guess so. But the same could be said about replacing use of
__getattr__ with methods. It doesn't mean that __getattr__ can't
be useful (IMO).

> John Roth

--

  Magnus Lie Hetland
  http://hetland.org






More information about the Python-list mailing list