Shawn Milochik wrote: > On Wed, Feb 25, 2009 at 11:38 AM, Marco Mariani <ma...@sferacarta.com> wrote: >> Yes it's in Python alright, but it's not Pythonese yet. You could try >> avoiding the getter/setter stuff, and camelCase method naming, things like >> that, for a start. >> >> -- >> http://mail.python.org/mailman/listinfo/python-list >> > > > What do you mean avoiding the getter/setter stuff? If I understand > correctly, you're saying to directly access the attributes, which I > specifically want to avoid because I may want to enforce some rules > (such as not changing a ship length after it's created). > If you wanted to enforce those restrictions you could just turn attributes into properties.
> The camel-case thing I get -- I use that and this_type quite a bit, > probably because of the inconsistency of the languages I use > regularly, and standards at work and conventions in my hobby > programming. PEP 008 is the usual style recommendation. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/listinfo/python-list