Hey Jeremy, It's a good idea to stick with Python conventions in your code. It will in general make it easier for others to read your code, and for you to read others.
Classes should use the MixedCase naming convention, see here: PEP8<http://legacy.python.org/dev/peps/pep-0008/>. Also, files and folders should all be lower-case, so as to eliminate cross-platform issues. E.g. Linux differentiates between Car.py and car.py, whereas Windows does not, resulting in issues when both files are available via a samba-network for instance. On 13 May 2014 08:30, Jeremy YeoKhoo <[email protected]> wrote: > Thanks Justin, > > I guess if I have Car.car it could be an indication on how I > designed/approached my code even if it is a question of semantics. > > Thanks > > -Jeremy > > On Sunday, 11 May 2014 19:51:36 UTC+10, Jeremy YeoKhoo wrote: > >> Hey gu >> I'm starting to cleanup my code, and since I've self taught programming >> from the get go and arent aware of some basic things. I have a question,. >> In regards to an __init__.py file. Can I use a folder that contains a >> __init__.py as an inherited object? And if I can, how do i structure the >> code? >> >> >> So if Car folder has __init__ how do I the call: >> >> class sportscar(car): >> def __init__(self, car.__init__): >> print "go vroom" >> >> >> -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/79b673f1-8610-46be-aa5e-bc821a584872%40googlegroups.com<https://groups.google.com/d/msgid/python_inside_maya/79b673f1-8610-46be-aa5e-bc821a584872%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCg8q45%2BCu1Fk-frAxNZmo8vW%3DTHdftbf%3DAhXQUM5vCBw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
