Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'syntax': 0.04; 'subject:Python': 0.06; 'attribute': 0.07; "'no": 0.09; 'subject:using': 0.09; 'suggestions.': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'changes': 0.15; 'posted': 0.15; '>>': 0.16; '23,': 0.16; 'chris,': 0.16; 'email addr:yahoo.com>': 0.16; 'fine.': 0.16; 'merged': 0.16; 'stupid,': 0.16; 'subscribing': 0.16; 'typo': 0.16; 'whitespace.': 0.16; '\xa0you': 0.16; 'thanks,': 0.17; 'wrote:': 0.18; 'code.': 0.18; 'trying': 0.19; 'else,': 0.19; 'import': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'skip:\xa0 20': 0.24; 'url:moin': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'dec': 0.30; 'errors': 0.30; 'kevin': 0.30; 'mode': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'went': 0.31; 'code': 0.31; 'lines': 0.31; 'posting': 0.31; 'url:wiki': 0.31; 'factor': 0.31; 'fine,': 0.31; 'peterson': 0.31; 'url:python': 0.33; 'running': 0.33; 'skip:# 10': 0.33; 'skip:d 20': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'too': 0.37; 'list': 0.37; '8bit%:4': 0.38; 'list,': 0.38; 'pm,': 0.38; 'mailing': 0.39; '8bit%:6': 0.40; 'url:mail': 0.40; 'easy': 0.60; 'such': 0.63; 'here': 0.66; 'groups.': 0.74; 'to:addr:yahoo.com': 0.81; 'messed': 0.84; 'undoubtedly': 0.84; 'clique': 0.91; 'info,': 0.91; 'widespread': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OZET7F4ZqsjECURQZH1f+pin6J8Yl3PaAsfQ1kClhFU=; b=lNJVCBR3iIjZhrVTZVkA9we48oE0rMU1a+TWRFx4sDKXz89//FycRhuPaRaM/0LX6G mP+2WupJ1S0Hay2n2fqdZcEc2lJPVg+Dezx4q2EHKcc8C9KGk9wEedzWOWVZbQOoB3S8 VJy8ft61kGRR4akYN4zNqA0z03VcKbQLZ/xZLg88VKBW2q9oMCIwF6/qgFizsrMg+1xU 3hc7XYY4RaISaU9OK9SmixuNFb1rieQPDD6ysgozHsgQ4YsAVdv+XP5VKPJEXo2bht0g X8n4vH/WM64vpUQtblO1oC+WhM2njuMxNn7TCDOyYsWe2OkvkVMsvx0JzAdj31qiL89l dkYA== MIME-Version: 1.0 X-Received: by 10.60.161.4 with SMTP id xo4mr16385383oeb.5.1387777130062; Sun, 22 Dec 2013 21:38:50 -0800 (PST) In-Reply-To: <5a15bd65-8183-48be-8ac2-be0666fed75d@googlegroups.com> References: <5a15bd65-8183-48be-8ac2-be0666fed75d@googlegroups.com> Date: Mon, 23 Dec 2013 11:08:50 +0530 Subject: Re: Airplane mode control using Python? From: Kevin Peterson To: rurpy@yahoo.com Content-Type: multipart/alternative; boundary=089e011613aedd663104ee2d0ac7 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 117 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387777140 news.xs4all.nl 2895 [2001:888:2000:d::a6]:47482 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62597 --089e011613aedd663104ee2d0ac7 Content-Type: text/plain; charset=ISO-8859-1 I will take care. Thanks, On Mon, Dec 23, 2013 at 10:22 AM, wrote: > On 12/22/2013 08:33 PM, Chris Angelico wrote: > > On Mon, Dec 23, 2013 at 2:20 PM, Kevin Peterson > 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 > --089e011613aedd663104ee2d0ac7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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, Ch= ris 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 A= ndroid using Python code.
>> I am running QPyPlus python. When I execute this code(that is
>> widespread in the net),
>>
>> =A0 =A0#!/usr/bin/python
>> =A0 =A0import android droid =3D android.Android()
>> =A0 =A0# go to airplane mode
>> =A0 =A0 droid.toggleAirplaneMode()
>>
>> =A0 =A0droid.makeToast('exiting')
>>
>> I get the error 'no such attribute Android()'.
>
> Python code is sensitive to changes in whitesp= ace. 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<= br> > 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. =A0I and many other people post
from Google Groups regularly and it works fine. =A0You might
want to take a look at
=A0https://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

--089e011613aedd663104ee2d0ac7--