On Wed, Feb 18, 2009 at 11:32:09PM +0100, Sebastian Rittau wrote: > I am curious why the following will not work in Python: > > class foo(object): > def bar(self): > print self.attr > > class duck(object): > attr = 3.14 > > foo.bar(duck()) Thanks to everybody who has responded on-list or in private. Actually Guido blogged about this design decision (among other things) in his latest post to the "The History of Python" blog: <http://tinyurl.com/c6qya5>. - Sebastian
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4