Help me pick an API design (OO vs functional)

Michael Herrmann michael.herrmann at getautoma.com
Wed Mar 27 04:45:19 EDT 2013


On Tuesday, March 26, 2013 4:16:57 PM UTC+1, Chris Angelico wrote:
> On Wed, Mar 27, 2013 at 1:59 AM, Michael Herrmann
> 
> <michael.herrmann at ...> wrote:
> > save_dialogue = press(CTRL + 's')
> 
> Does every single API need to then consider the possibility of focus
> changing? How does the press() function know that this will (or might
> - if the file's already been named, Ctrl-S won't open a dlg) change
> focus? How does the caller know?

While I can see where it is coming from, I am also not a big fan of this idea. 

Michael



More information about the Python-list mailing list