Re: [Tutor] how to instantiate a class

2009-02-26 Thread spir
Le Thu, 26 Feb 2009 12:38:27 +0530, Abhishek Kumar s'exprima ainsi: > hello list, > > Below is the sample code of a class. > > > import > > Class ABC: > def __init__(self,a,b,c): > statement 1 > statement 2 >

Re: [Tutor] how to instantiate a class

2009-02-25 Thread Moos Heintzen
Here is a good book if you are already familiar with other languages. http://diveintopython.org/object_oriented_framework/instantiating_classes.html ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] how to instantiate a class

2009-02-25 Thread Arun Tomar
@Abhishek, On 2/26/09, Abhishek Kumar wrote: > hello list, > > Below is the sample code of a class. > > > import > > Class ABC: > def __init__(self,a,b,c): > statement 1 > statement 2 > def func(x,y): >

Re: [Tutor] how to instantiate a class

2009-02-25 Thread Lie Ryan
On Thu, 26 Feb 2009 12:38:27 +0530, Abhishek Kumar wrote: > hello list, > You need to read through the tutorial first: http://docs.python.org/ tutorial/ If there are still things you don't understand, please ask again. As for your question, here is a sample useless python code: class MyClass(

Re: [Tutor] how to instantiate a class

2009-02-25 Thread Lie Ryan
On Thu, 26 Feb 2009 12:38:27 +0530, Abhishek Kumar wrote: > hello list, > You need to read through the tutorial first: http://docs.python.org/ tutorial/ If there are still things you don't understand, please ask again. As for your question, here is a sample useless python code: class MyClass(

[Tutor] how to instantiate a class

2009-02-25 Thread Abhishek Kumar
hello list, Below is the sample code of a class. import Class ABC: def __init__(self,a,b,c): statement 1 statement 2 def func(x,y): statement 1 state