Re: use object method without initializing object

2008-04-15 Thread colas . francis
On 15 avr, 17:43, Robert Bossy <[EMAIL PROTECTED]> wrote: > Reckoner wrote: > > would it be possible to use one of an object's methods without > > initializing the object? > > > In other words, if I have: > > > class Test: > > def __init__(self): > > print 'init' > > def foo(self): > >

Re: use object method without initializing object

2008-04-15 Thread Robert Bossy
Reckoner wrote: > would it be possible to use one of an object's methods without > initializing the object? > > In other words, if I have: > > class Test: > def __init__(self): > print 'init' > def foo(self): > print 'foo' > > and I want to use the foo function without hitting the >

Re: use object method without initializing object

2008-04-15 Thread colas . francis
On 15 avr, 17:27, Reckoner <[EMAIL PROTECTED]> wrote: > would it be possible to use one of an object's methods without > initializing the object? > > In other words, if I have: > > class Test: > def __init__(self): > print 'init' > def foo(self): > print 'foo' > > and I want to use

use object method without initializing object

2008-04-15 Thread Reckoner
would it be possible to use one of an object's methods without initializing the object? In other words, if I have: class Test: def __init__(self): print 'init' def foo(self): print 'foo' and I want to use the foo function without hitting the initialize constructor function. Is t