Re: [Tutor] Object/Class Beginner Questions

2011-01-14 Thread Ben Ganzfried
* I meant that*: A method actually can be called from the command prompt, but the syntax is quite different than that used to call a function from the command prompt. On Fri, Jan 14, 2011 at 2:37 PM, Ben Ganzfried wrote: > I actually just figured it out (since the tutorial talks about the > diffe

Re: [Tutor] Object/Class Beginner Questions

2011-01-14 Thread Ben Ganzfried
I actually just figured it out (since the tutorial talks about the difference in indentation between a method and a function in a later chapter). Basically, a method is within a class and therefore cannot be called from the command prompt whereas a function that stands by itself in a script can be

Re: [Tutor] Object/Class Beginner Questions

2011-01-14 Thread Steven D'Aprano
Ben Ganzfried wrote: Hey guys, I'm using a tutorial geared for a 2.x version of Python and I am currently using Python 3.1-- so it is possible that my confusion has to do with different notations between them. But in any case, here is what I have: My questions are the following: 1) Why is th

Re: [Tutor] Object/Class Beginner Questions

2011-01-14 Thread Alex Hall
On 1/14/11, Ben Ganzfried wrote: > Hey guys, > > I'm using a tutorial geared for a 2.x version of Python and I am currently > using Python 3.1-- so it is possible that my confusion has to do with > different notations between them. But in any case, here is what I have: > type(Time) > t

[Tutor] Object/Class Beginner Questions

2011-01-14 Thread Ben Ganzfried
Hey guys, I'm using a tutorial geared for a 2.x version of Python and I am currently using Python 3.1-- so it is possible that my confusion has to do with different notations between them. But in any case, here is what I have: >>> type(Time) >>> t1 = Time() >>> type(t1) where: class Time: