* 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
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
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
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
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: