Project

General

Profile

Actions

Coding standard

  • Properties and Class names should be Capitalized
  • Methods are lowercase (or camelCase)
    • Parameters are lowercase
    • Local variables (such as in functions) are lowercase
  • Equal signs should be on the same level if they are right after each other

Example

class Example:
         LongName = "Test" 
         Shrt     = "Test2" 

         def __init__(self, param, param2):
             var        = param
             anothervar = param2

             if var:
                     cake = "Not a lie" 

         def somethingElse(self):
                 pass

Updated by ChalamiuS over 13 years ago ยท 1 revisions