basic language question

Jacek Generowicz jacek.generowicz at cern.ch
Fri Sep 5 14:39:38 CEST 2003


Jacek Generowicz <jacek.generowicz at cern.ch> writes:

> OK, here's a variaton on the theme, just wraps the object in-place in
> a way which makes it return self.

I meant "makes any calls to methods return the original object in its
new state."

> This way you can get the desired effect on any object you get,
> without pre-meditation, so you can still fit the call chain on one
> line (wasn't that the point?)

Of course, the chaining should work in Stephan's example too.




More information about the Python-list mailing list