Re: [Tutor] (no subject)

2012-09-15 Thread Stephen Haywood
http://learnpythonthehardway.org/book/ http://docs.python.org/tutorial/ http://www.readwriteweb.com/hack/2011/03/python-is-an-increasingly-popu.php That should keep you busy for a while. -- Stephen Haywood Information Security Consultant CISSP, GPEN, OSCP T: @averagesecguy W:

Re: [Tutor] (no subject)

2012-09-15 Thread Steven D'Aprano
On 15/09/12 15:09, Johny Rei wrote: hi to all readers, i 'm a newbie and i'm interested to learn python programming, can anybody please guide me out to learn basic to advance python programming, be actually can anyone out there should suggest a free book that i can read it on just to learn

Re: [Tutor] (no subject)

2012-09-15 Thread Albert-Jan Roskam
___ From: Johny Rei rei.jo...@yahoo.com.ph To: tutor@python.org tutor@python.org Sent: Saturday, September 15, 2012 7:09 AM Subject: [Tutor] (no subject) hi  to all readers, i 'm a newbie and i'm interested to learn python programming, can anybody please guide me

Re: [Tutor] is this use or abuse of __getitem__ ?

2012-09-15 Thread eryksun
On Fri, Sep 14, 2012 at 2:33 PM, Albert-Jan Roskam fo...@yahoo.com wrote: On 14/09/12 22:16, Albert-Jan Roskam wrote: Is it recommended to define the geitem() function inside the __getitem__() method? I was thinking I could also define a _getitem() private method. def getitem(key):

Re: [Tutor] (no subject)

2012-09-15 Thread Dwight Hutto
How to think like a computer scientist, in python: http://greenteapress.com/thinkpython/thinkpython.html And plenty of practice: Print Lists Dicts Tuples DB Files, you parse for data yourself Basic manipulation of data. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com

Re: [Tutor] is this use or abuse of __getitem__ ?

2012-09-15 Thread eryksun
On Sat, Sep 15, 2012 at 4:43 AM, eryksun eryk...@gmail.com wrote: else: start = index(self.nCases + key if key 0 else key) # may raise TypeError stop = start + 1 step = 1 Gmail is such a pain sometimes. I should have called index first anyway: key =

[Tutor] [Semi-OT] Yes or no on using a Graphical IDE?

2012-09-15 Thread leam hall
Hey all, not trying to contribute to the flames of one graphical IDE over another. I'm just trying to figure out if they are worth the learning curve? I have been doing most of my work in vi and the graphical IDE I'm supposed to use for a class keeps adding crap that I have to erase, and I have to

Re: [Tutor] is this use or abuse of __getitem__ ?

2012-09-15 Thread Albert-Jan Roskam
On Sat, Sep 15, 2012 at 4:43 AM, eryksun eryk...@gmail.com wrote:      else:          start = index(self.nCases + key if key 0 else key)  # may raise TypeError          stop = start + 1          step = 1 Gmail is such a pain sometimes. I should have called index first anyway:         key =

[Tutor] Python help

2012-09-15 Thread Daniel Hulse
Hi. I am trying to solve a problem and I'm stuck. The problem is something like as x goes up by 1, y goes up by the previous value times 2. I have no idea where to start. So lets say x = 10 and y=5, when x=11, why would be equal to 10. ___ Tutor

Re: [Tutor] Python help

2012-09-15 Thread Joel Goldstick
On Sat, Sep 15, 2012 at 11:21 AM, Daniel Hulse dhuls...@gmail.com wrote: Hi. I am trying to solve a problem and I'm stuck. The problem is something like as x goes up by 1, y goes up by the previous value times 2. I have no idea where to start. So lets say x = 10 and y=5, when x=11, why would

Re: [Tutor] [Semi-OT] Yes or no on using a Graphical IDE?

2012-09-15 Thread Modulok
Hey all, not trying to contribute to the flames of one graphical IDE over another. I'm just trying to figure out if they are worth the learning curve? I have been doing most of my work in vi and the graphical IDE I'm supposed to use for a class keeps adding crap that I have to erase, and I

Re: [Tutor] is this use or abuse of __getitem__ ?

2012-09-15 Thread eryksun
On Sat, Sep 15, 2012 at 10:18 AM, Albert-Jan Roskam fo...@yahoo.com wrote: Thanks, I hadn't noticed this yet. I am refactoring some of the rest of my code and I hadn't run anything yet. My code has two methods that return record(s): an iterator (__getitem__) and a generator (readFile, which

[Tutor] Cube root

2012-09-15 Thread Amanda Colley
Ok, I have to get input from a user ('enter a number') and then get the cube root of that number. I am having trouble with the code to get the cube root. If anyone can help me solve this I would greatly appreciate it. ('enter a number') n=number ??? cube root?? -- Amanda Colley

Re: [Tutor] [Semi-OT] Yes or no on using a Graphical IDE?

2012-09-15 Thread Dave Angel
On 09/16/2012 12:48 AM, Wayne Werner wrote: On Sat, 15 Sep 2012, leam hall wrote: Hey all, not trying to contribute to the flames of one graphical IDE over another. I'm just trying to figure out if they are worth the learning curve? I have been doing most of my work in vi and the graphical