Re: [Tutor] Tutor Digest, Vol 141, Issue 11

2015-11-11 Thread Danny Yoo
>> I am constrained to install anything on my official laptop, therefore I >> need to have an "online life saver" for Python Learning. > > > You might look into repl.it: > > https://repl.it/languages/python As for tutorial material, you might look into: https://wiki.python.org/moin/Begi

Re: [Tutor] Tutor Digest, Vol 141, Issue 11

2015-11-11 Thread Danny Yoo
On Wed, Nov 11, 2015 at 4:18 AM, Burhan ul haq wrote: > Continuing "Run Python 2.7 on Android Tablet" > > Hi, > > I am constrained to install anything on my official laptop, therefore I > need to have an "online life saver" for Python Learning. You might look into repl.it: https://repl.it/l

Re: [Tutor] Newbie Question

2015-11-11 Thread Alan Gauld
On 11/11/15 20:12, Mark Lawrence wrote: On 11/11/2015 19:38, George Henry wrote: How do I find a site to download Python for Windows that includes a Toolbar? So IDLE is not good enough for you? I'll let you find it as it's part of the standard library, i.e. you've all ready downloaded it.

Re: [Tutor] Newbie Question

2015-11-11 Thread Mark Lawrence
On 11/11/2015 19:38, George Henry wrote: How do I find a site to download Python for Windows that includes a Toolbar? I'm using Windows 8.1 Have tried installing Python 3.4.2 but notice that the Python shell does not include a tool bar (i.e. File, Edit, Shell, Debug, etc.). Help please. Thank

Re: [Tutor] Newbie Question

2015-11-11 Thread Albert-Jan Roskam
Hi, (Sorry for top-postin - I am using my phone). You can try Spyder IDE, it is part of Anaconda and Python(x, y): https://pythonhosted.org/spyder/installation.html#installing-on-windows-vista-7-8-10 Regards, Albert-Jan > From: gfhenry1...@gmail.com > To: tutor@python.org > Date: Wed, 11 Nov 2

[Tutor] Newbie Question

2015-11-11 Thread George Henry
How do I find a site to download Python for Windows that includes a Toolbar? I'm using Windows 8.1 Have tried installing Python 3.4.2 but notice that the Python shell does not include a tool bar (i.e. File, Edit, Shell, Debug, etc.). Help please. Thanks! _

Re: [Tutor] question about descriptors

2015-11-11 Thread Peter Otten
Albert-Jan Roskam wrote: >> From: st...@pearwood.info >> Fortunately, Python has an mechanism for solving this problem: >> the `__getattr__` method and friends. >> >> >> class ColumnView(object): >> _data = {'a': [1, 2, 3, 4, 5, 6], >> 'b': [1, 2, 4, 8, 16, 32], >>

Re: [Tutor] question about descriptors

2015-11-11 Thread Peter Otten
Albert-Jan Roskam wrote: >> class ReadColumn(object): >> def __init__(self, index): >> self._index = index >> def __get__(self, obj, type=None): >> return obj._row[self._index] >> def __set__(self, obj, value): >> raise AttributeError("oops") > > This appears t

[Tutor] Python on Android (was Re: Tutor Digest, Vol 141, Issue 11)

2015-11-11 Thread Alan Gauld
On 11/11/15 12:18, Burhan ul haq wrote: I have already tried "pythonanywhere" but could not get it going, even for a basic "hello world" script. Create a beginner account and login. Select the type of user you want - beginner Python in your case Select which Python version - 2.7 in your case A

Re: [Tutor] Tutor Digest, Vol 141, Issue 11

2015-11-11 Thread Burhan ul haq
Continuing "Run Python 2.7 on Android Tablet" Hi, I am constrained to install anything on my official laptop, therefore I need to have an "online life saver" for Python Learning. I have already tried "pythonanywhere" but could not get it going, even for a basic "hello world" script. I could not

Re: [Tutor] question about descriptors

2015-11-11 Thread Albert-Jan Roskam
> Date: Sun, 8 Nov 2015 01:24:58 +1100 > From: st...@pearwood.info > To: tutor@python.org > Subject: Re: [Tutor] question about descriptors > > On Sat, Nov 07, 2015 at 12:53:11PM +, Albert-Jan Roskam wrote: > > [...] > > Ok, now to my question. I want to create a class with read-only > > att

Re: [Tutor] question about descriptors

2015-11-11 Thread Albert-Jan Roskam
> I think the basic misunderstandings are that > > (1) the __get__() method has to be implemented by the descriptor class > (2) the descriptor instances should be attributes of the class that is > supposed to invoke __get__(). E. g.: > > class C(object): >x = decriptor() > > c = C() >