Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62597
| References | <abcd1234abc123ab12a0000025741000010000001052@gmail.com> <mailman.4527.1387769595.18130.python-list@python.org> <5a15bd65-8183-48be-8ac2-be0666fed75d@googlegroups.com> |
|---|---|
| Date | 2013-12-23 11:08 +0530 |
| Subject | Re: Airplane mode control using Python? |
| From | Kevin Peterson <qh.resu01@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4536.1387777140.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
I will take care.
Thanks,
On Mon, Dec 23, 2013 at 10:22 AM, <rurpy@yahoo.com> wrote:
> On 12/22/2013 08:33 PM, Chris Angelico wrote:
> > On Mon, Dec 23, 2013 at 2:20 PM, Kevin Peterson <qh.resu01@gmail.com>
> wrote:
> >> I am trying to control Aeroplane mode on Android using Python code.
> >> I am running QPyPlus python. When I execute this code(that is
> >> widespread in the net),
> >>
> >> #!/usr/bin/python
> >> import android droid = android.Android()
> >> # go to airplane mode
> >> droid.toggleAirplaneMode()
> >>
> >> droid.makeToast('exiting')
> >>
> >> I get the error 'no such attribute Android()'.
> >
> > Python code is sensitive to changes in whitespace. The above is
> > actually a syntax error, because lines have been merged and indented
> > incorrectly. You seem to be posting from Google Groups, which may be
> > why it's messed up; I recommend switching to something else, like
> > Mozilla Thunderbird, or subscribing instead to the mailing list
> > (with all the same content)
>
> My electricity went out right around the time the OP posted
> from Google Groups, that too was undoubtedly GG's fault.
>
> Come on Chris, it is just as easy to make typo or copy-and-
> paste errors in any other software as GG, there is no evidence
> that it was GG's fault.
>
> If you want to recommend the mailing list, fine, but please
> don't make stupid, unfounded, accusatory suggestions.
>
> Kevin: just for your own info, there are a few people here
> who despise Google Groups. I and many other people post
> from Google Groups regularly and it works fine. You might
> want to take a look at
> https://wiki.python.org/moin/GoogleGroupsPython
> for some ways to reduce the annoyance factor for the anti-GG
> clique here.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Airplane mode control using Python? Chris Angelico <rosuav@gmail.com> - 2013-12-23 14:33 +1100
Re: Airplane mode control using Python? rurpy@yahoo.com - 2013-12-22 20:52 -0800
Re: Airplane mode control using Python? Chris Angelico <rosuav@gmail.com> - 2013-12-23 16:37 +1100
Re: Airplane mode control using Python? rurpy@yahoo.com - 2013-12-22 22:59 -0800
Re: Airplane mode control using Python? Chris Angelico <rosuav@gmail.com> - 2013-12-23 19:46 +1100
Re: Airplane mode control using Python? rurpy@yahoo.com - 2013-12-24 17:37 -0800
Re: Airplane mode control using Python? Chris Angelico <rosuav@gmail.com> - 2013-12-25 21:56 +1100
Re: Airplane mode control using Python? rurpy@yahoo.com - 2013-12-25 14:16 -0800
Re: Airplane mode control using Python? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-23 09:18 +0000
Re: Airplane mode control using Python? rurpy@yahoo.com - 2013-12-22 22:09 -0800
Re: Airplane mode control using Python? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-23 10:39 +0000
Re: Airplane mode control using Python? Chris Angelico <rosuav@gmail.com> - 2013-12-24 03:12 +1100
Re: Airplane mode control using Python? Kevin Peterson <qh.resu01@gmail.com> - 2013-12-23 11:08 +0530
Re: Airplane mode control using Python? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-23 06:34 +0000
Google Groups + this list Ned Batchelder <ned@nedbatchelder.com> - 2013-12-23 06:48 -0500
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-24 17:44 -0800
Re: Google Groups + this list Ned Batchelder <ned@nedbatchelder.com> - 2013-12-25 23:11 -0500
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-26 12:11 -0800
Re: Google Groups + this list Chris Angelico <rosuav@gmail.com> - 2013-12-26 15:17 +1100
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-25 21:13 -0800
Re: Google Groups + this list Chris Angelico <rosuav@gmail.com> - 2013-12-26 23:41 +1100
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-26 12:04 -0800
Re: Google Groups + this list Dave Angel <davea@davea.name> - 2013-12-27 07:31 -0500
Re: Google Groups + this list Rustom Mody <rustompmody@gmail.com> - 2013-12-26 10:04 +0530
Re: Google Groups + this list Ned Batchelder <ned@nedbatchelder.com> - 2013-12-26 08:20 -0500
Re: Google Groups + this list Chris Angelico <rosuav@gmail.com> - 2013-12-24 03:22 +1100
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-24 17:47 -0800
Re: Google Groups + this list Ned Batchelder <ned@nedbatchelder.com> - 2013-12-25 07:19 -0500
Re: Google Groups + this list Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-26 01:26 +1100
Re: Google Groups + this list rurpy@yahoo.com - 2013-12-25 14:09 -0800
Re: Google Groups + this list Joel Goldstick <joel.goldstick@gmail.com> - 2013-12-25 07:25 -0500
csiph-web