On Thu, Aug 20, 2009 at 9:54 AM, Brandon Craig Rhodes<[email protected]> 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?
My interpretation is that is the personal style of the original contributor to GetPaid. I think in the past I have tried to stick with whatever the current style of the file that I'm patching. As trivial as that sounds it does take some mental effort. I'd be happy to see the code base be PEP-8'ified in respect to white space handling. -- Michael Dunstan - http://www.elyt.com/michael --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
