10 sec poll - please reply!
Michael Herrmann
michael.herrmann at getautoma.com
Fri Nov 23 12:29:30 EST 2012
Hi,
I see your concern with having two functions that have to be separately remembered... I personally would also be fine with type(), however some people are violently against it. I opened a new thread (https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.python/GjZ2hAS1Wyk) to ask just how many people would have a problem with this. I know I'm really spamming this list and apologize. I promise it'll be over soon.
Michael
On Friday, November 23, 2012 5:43:08 PM UTC+1, Kwpolska wrote:
> On Fri, Nov 23, 2012 at 2:42 PM, Michael Herrmann
>
> <...> wrote:
>
> > Dear all,
>
> >
>
> > the emails are getting kind of long so to ask you briefly: What do you think of splitting `type` into two functions `press` and `enter`? Their use cases are:
>
> > press(CTRL + 'a')
>
> > press(ENTER)
>
> > press(ALT + 'f', 's')
>
> > enter("Hello World!")
>
> > enter("test.txt", into="File name")
>
> >
>
> > Thanks,
>
> > Michael
>
>
>
> First of, please don’t top-post. Second of, the type—enter split a
>
> bad idea. It would require me to think whether I should use one or
>
> the other. type() is perfectly fine, because Automa is never going to
>
> be used as from automa import *. And if it is, it’s in your shell for
>
> non-Pythonistas.
>
>
>
> And also, my general thoughts: type() is just fine. Unless you want
>
> to call it simulate_pressing_keys_on_the_keyboard_without_getting_a_mechanical_arm_out_of_the_screen_and_pressing_the_keys_with_it(),
>
> but then you will need to create
>
> simulate_using_the_mouse_without_getting_a_mechanical_arm_out_of_the_screen_and_moving_the_mouse_or_pressing_its_buttons_with_it(),
>
> too.
>
>
>
> --
>
> Kwpolska <http://kwpolska.tk>
>
> stop html mail | always bottom-post
>
> www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
>
> GPG KEY: 5EAAEA16
More information about the Python-list
mailing list