Re: class unbound method and datetime.datetime.today()

2007-01-08 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hi, I got confused when I learned the function datetime.today(). > > So far I learned, unless an instance is created, it is not possible to > call the class method. For example: > > class Foo: > def foo(self): > pass > > Foo.foo() # error: unbound method foo()

class unbound method and datetime.datetime.today()

2007-01-08 Thread cinsky
Hi, I got confused when I learned the function datetime.today(). So far I learned, unless an instance is created, it is not possible to call the class method. For example: class Foo: def foo(self): pass Foo.foo() # error: unbound method foo(). What makes me confused is that datetime clas