[mnet-devel] incredibly small detail of coding standards (was: [mnet-cvs]fixes to crypto51 build stuff)

Zooko zooko at zooko.com
Wed Apr 2 15:06:27 BST 2003


> --- mnetget.py	27 Mar 2003 05:46:35 -0000	1.1
> +++ mnetget.py	2 Apr 2003 05:47:38 -0000	1.2
> @@ -9,6 +9,9 @@
>  import os
>  import time
>  
> +True = 1==1
> +False = 0==1
> +

I spell this as:

True = 1 == 1
False = 0 == 1

Looking at the coding standard docs, I find that I probably got this habit 
from PEP 8 [1]:

    - Always surround these binary operators with a single space on
      either side: assignment (=), comparisons (==, <, >, !=, <>, <=,
      >=, in, not in, is, is not), Booleans (and, or, not).

I don't mind breaking PEP 8, but if we do I'm going to add a note to the Mnet 
coding standards doc [2] saying "We don't obey this recommendation from PEP 8".

So Myers: choose now and let me know!

Regards,

Zooko

http://zooko.com/
         ^-- under re-construction: some new stuff, some broken links

[1] http://www.python.org/peps/pep-0008.html
[2] http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/mnet/mnet_new/doc/coding_standards.html?rev=HEAD&content-type=text/html



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel




More information about the Mnet-devel mailing list