On Aug 19, 2009, at 2:54 PM, Brandon Craig Rhodes wrote: > I should be polite and ask: my typing habits and editor settings > typically lead me to produce PEP-8 code, but most of GetPaid seems to > use a quite different whitespace-heavy set of conventions like this: > > def ContentTypes( context ): > portal_types = getToolByName( context.context, 'portal_types' ) > > instead of PEP-8 code like this: > > def ContentTypes(context): > portal_types = getToolByName(context.context, 'portal_types') > > Is the extra whitespace something desirable in Plone-land that I > should > carefully try to imitate in my own code that I'm adding? Or can my > own > additions be PEP-8 without making the code too difficult to read?
+1 for PEP-8. With one exception however -- Plone code tends to use camelCase method names rather than names with an underscore, in order to be consistent with most of Zope. I haven't seen the extra whitespace used elsewhere, though. David --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~---
