[MERGE] Document code layout stuff
Alexander Belchenko
bialix at ukr.net
Thu Sep 6 07:25:57 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Pool пишет:
>> What about assigning result to some value?
>>
>> foo = self.legbone.kneebone.shinbone.toebone.shake_it(
>> one, two, three)
>>
>> What correct rule for this case?
>
> 'one' should be four spaces to the right of the start of the preceding
> line, 'foo'. It's not indented relative to the assignment operator.
I.e.:
foo = self.legbone.kneebone.shinbone.toebone.shake_it(
one, two, three)
or another dummy example:
foobarspam = self.legbone.kneebone.shinbone.toebone.shake_it(
one, two, three)
/me don't like this variant 'cause equal sign is hard to see here.
/sigh/
[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG3511zYr338mxwCURAstPAJ4lh3ksnySrhR/g017e3oaWNZLh8wCgg280
6drvkWSj7HkYevdq3p8V1VY=
=toMd
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list