Re: [Tutor] Why use apply()?

2005-05-15 Thread Danny Yoo
On Thu, 12 May 2005, Bernard Lebel wrote: > Just a generic question: why one would use apply()? > > In Learning Python, on page 357, there is an example of generating an > instance using apply(): > > class A: > def __init__( self, number ): > self.number = number > > a = apply

Re: [Tutor] Why use apply()?

2005-05-13 Thread Bernard Lebel
All right, thank you. Bernard On 5/12/05, Bob Gailer <[EMAIL PROTECTED]> wrote: > At 02:17 PM 5/12/2005, Bernard Lebel wrote: > > Just a generic question: why one would use apply()? > > In Learning Python, on page 357, there is an example of generating an > instance using apply(): > >

Re: [Tutor] Why use apply()?

2005-05-12 Thread Bob Gailer
At 02:17 PM 5/12/2005, Bernard Lebel wrote: Just a generic question: why one would use apply()? In Learning Python, on page 357, there is an example of generating an instance using apply(): class A:   def __init__( self, number ): self.number = number a = apply( A, 3 ) What is th

[Tutor] Why use apply()?

2005-05-12 Thread Bernard Lebel
Just a generic question: why one would use apply()? In Learning Python, on page 357, there is an example of generating an instance using apply(): class A: def __init__( self, number ): self.number = number a = apply( A, 3 ) What is the benefit of doing this over simply crea