[Baypiggies] A beginner's question on python class

Shannon -jj Behrens jjinux at gmail.com
Mon Feb 20 04:04:53 CET 2012


On Sun, Feb 19, 2012 at 6:57 PM, Yiou Li <liyiou at gmail.com> wrote:

> Hi All,
>
> I created a python class by inherating from and existing class:
>
> myPythonScript.py
>
> from standardClass import ClassX
>
> Class myClass(ClassX)
>         myVariable
>

What's your question?  By the way, class should be lower case, and you're
forgetting a semicolon.

You might be better off buying a book on Python or reading a tutorial.
 That way, you can ask us the really hard questions ;)

Happy Hacking!
-jj

-- 
In this life we cannot do great things. We can only do small things with
great love. -- Mother Teresa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20120219/d61210b3/attachment.html>


More information about the Baypiggies mailing list