Re: [Tutor] eazy python question involving functions and parameters

2009-09-21 Thread wesley chun
>> Just think: 4 players left means that this is the semi final. > > What a brilliant answer! It tells him how to do it if he just stops and > thinks but gives nothing away. I love it. :-) i agree with alan on this. in fact, i can just picture the brackets in my head already. :-) another thing f

Re: [Tutor] real world decorators

2009-09-21 Thread Patrick Sabin
John wrote: Hi, I think I understand what decorators are and how they work. Maybe it's just me but I don't know where I'd use them in my real world programming. I see how they work with profile or coverage but does anyone have real world uses. @classmethod, @staticmethod, @property, @abs

Re: [Tutor] eazy python question involving functions and parameters

2009-09-21 Thread Ken Oliver
-Original Message- >From: wesley chun >Sent: Sep 21, 2009 4:49 AM >To: tutor@python.org >Subject: Re: [Tutor] eazy python question involving functions and parameters > >>> Just think: 4 players left means that this is the semi final. >> >> What a brilliant answer! It tells him how to do

Re: [Tutor] real world decorators

2009-09-21 Thread John
On Sunday 20 September 2009 03:43:32 pm Eike Welk wrote: > On Sunday 20 September 2009, John wrote: > > Hi, > > > > I think I understand what decorators are and how they work. Maybe > > it's just me but I don't know where I'd use them in my real world > > programming. I see how they work with pro

[Tutor] eazy python question involving functions and parameters

2009-09-21 Thread Corey Richardson
another thing from the OP that no one has addressed yet is what *this* means: >/ > Write an expression (not a statement!) / to the veterans, we don't have to think twice, but this may not be obvious to a beginner. basically, an expression is something like 4 * 5, foo(), [x for x in range(5)], et

Re: [Tutor] eazy python question involving functions and parameters

2009-09-21 Thread wesley chun
>> an expression is something ... that evaluates to *some* Python object >>: >> in contrast, a statement is something that has no intrinsic value > >               Umm.you just completely confused me. What does it do? ok, now *i*'m the one confused... what does *what* do? both expression

Re: [Tutor] eazy python question involving functions and parameters

2009-09-21 Thread Alan Gauld
And to remove all doubt wesley chun wrote: again, the easiest way to differentiate b/w the 2 is whether or not it results in some Python object. if it doesn, it's an expression; if not, it's a statement. Should say ... if it does, it's an expression You'll find my explanation of expre

[Tutor] need to hire a tutor for online, i can pay by week or per hr $$$

2009-09-21 Thread daggerdvm
hi i need a tutor for help with python. I'll ask you basic questions through email and such. I can pay by the hour or by week or whatever. reply here or to bmxx5...@aol.com -- View this message in context: http://www.nabble.com/need-to-hire-a-tutor-for-online%2C-i-can-pay-by-week-or-per-hr-%2

[Tutor] NameError

2009-09-21 Thread kreglet
I keep getting the following error and don't uderstand why: Traceback (most recent call last): File "/home/kreglet/bin/test.py", line 15, in btnStatclick btnStat.set_label("Pressed") NameError: global name 'btnStat' is not defined #!/usr/bin/env python import gtk import sys class NewApp

Re: [Tutor] need to hire a tutor for online, i can pay by week or per hr $$$

2009-09-21 Thread Kent Johnson
On Mon, Sep 21, 2009 at 4:40 PM, daggerdvm wrote: > > hi i need a tutor for help with python.  I'll ask you basic questions through > email and such.  I can pay by the hour or by week or whatever. We do that for free here, just post your questions to the list. We try not to give answers to homewo

Re: [Tutor] NameError

2009-09-21 Thread Wayne
On Mon, Sep 21, 2009 at 4:00 PM, kreglet wrote: > > I keep getting the following error and don't uderstand why: > > Traceback (most recent call last): > File "/home/kreglet/bin/test.py", line 15, in btnStatclick >btnStat.set_label("Pressed") > NameError: global name 'btnStat' is not defined

Re: [Tutor] NameError

2009-09-21 Thread wesley chun
On Mon, Sep 21, 2009 at 2:06 PM, Wayne wrote: > On Mon, Sep 21, 2009 at 4:00 PM, kreglet wrote: >> >> I keep getting the following error and don't uderstand why: >> >> Traceback (most recent call last): >>  File "/home/kreglet/bin/test.py", line 15, in btnStatclick >>    btnStat.set_label("Presse

Re: [Tutor] How to get homework help (was need to hire a tutor... )

2009-09-21 Thread Tim Bowden
On Mon, 2009-09-21 at 17:04 -0400, Kent Johnson wrote: > On Mon, Sep 21, 2009 at 4:40 PM, daggerdvm wrote: > > > > hi i need a tutor for help with python. I'll ask you basic questions > > through > > email and such. I can pay by the hour or by week or whatever. > > We do that for free here, ju

[Tutor] ex-ftp

2009-09-21 Thread prasad rao
hello friends I am trying to write a class to save a url.page. But it is not working.It is saving the html.page.But not getting images.I am unable to show the list (object.links). Please take a look at it and show me how to rectify it. import urllib2,ftplib,re class Collect: def __init__(se

Re: [Tutor] ex-ftp

2009-09-21 Thread Mal Wanstall
On Tue, Sep 22, 2009 at 2:39 PM, prasad rao wrote: > hello  friends >   I am trying to write a class to save a url.page. > But it is not working.It is saving the html.page.But not getting > images.I am unable to show the list (object.links). > Please take a look at it and show me how to rectify it