While everyone is saying what they want in Python :)

Dan Parisien dan at eevolved.com
Sun Feb 4 19:50:41 EST 2001


Peter Hansen wrote:

> Jay O'Connor wrote:
> > 
> > Smalltalk-style cascade operations would be *very* cool
> > 
> > win = GtkWindow();
> >         set_title("Hello World");
> >         set_name ("window");
> >         set_usize (400,200)
> > 
> > versus
> > 
> > win = GtkWindow()
> > win.set_title("Hello World")
> > win.set_name ("window")
> > win.set_usize (400,200)
> 
> Why?  'Cause it saves a bit of typing?

YES!!!

That is not a good enough reason not to add a feature like this :)

Dan





More information about the Python-list mailing list