> -----Original Message-----
> From: Adam R. B. Jack [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 03, 2004 10:47 AM
> To: Gump code and data
> Subject: Indentation
>
>
> In Python, indentation is syntactic, and crucial. I'd like some
> input on how
> we can all work on the source, without confusing each other...
>
> Sam's recent addition to forrest.py uses tabs, and what works & no doubt
> looks good to him, but looks wrong to me (see below). [I've been using
> pyEclipse inside Eclipse and I chose the option to to save tabs as spaces,
> 'cos I felt it disambiguated. I'm guessing I have tab set as 4 spaces
> somewhere, but I'm not sure. I'm game to change that to 8.]
>
> Anybody have any input from what other Python projects chose? I'm pretty
> much open to all suggestions, but I think we need to get past
> this early on,
> since this is so crucial to Python.
I've always used 4-space indentation in Python projects (and other
languages, for that matter). But then I'm not (yet) active in the code base,
so I shouldn't really have a say...
--
Martin Cooper
>
> regards
>
> Adam
> ---------------------------------------------------
> The two blocks are at the same indent level, they just don't look
> like they
> are in my view:
>
> definitionTable.createEntry('Start Date/Time',
> workspace.startdatetime)
> definitionTable.createEntry('Timezone', workspace.timezone)
>
> javaproperties=run.getEnvironment().getJavaProperties()
> for name in ['java.vendor', 'java.version', 'os.name', 'os.arch',
> 'os.version']:
> if name in javaproperties:
> definitionTable.createEntry(name, javaproperties[name])
> ---------------------------------------------------
> --
> Experience the Unwired Enterprise:
> http://www.sybase.com/unwiredenterprise
> Try Sybase: http://www.try.sybase.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]