Help me pick an API design (OO vs functional)

Chris Angelico rosuav at gmail.com
Tue Mar 26 16:16:57 CET 2013


On Wed, Mar 27, 2013 at 1:59 AM, Michael Herrmann
<michael.herrmann at getautoma.com> 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?

ChrisA



More information about the Python-list mailing list