About 51 results
Open links in new tab
  1. What is the naming convention in Python for variables and …

    The coding style is usually part of an organization's internal policy/convention standards, but I think in general, the all_lower_case_underscore_separator style (also called snake_case) is …

  2. coding style - Importing modules in Python - best practice - Stack …

    I am new to Python as I want to expand skills that I learned using R. In R I tend to load a bunch of libraries, sometimes resulting in function name conflicts. What is best practice in Python. I h...

  3. Is it a bad practice to use break in a for loop? - Stack Overflow

    Is this a bad practice? I have seen the alternative used: define a variable vFound and set it to true when the value is found and check vFound in the for statement condition. But is it necessary to …

  4. Is it a good practice to use try-except-else in Python?

    Apr 22, 2013 · This common Python coding style assumes the existence of valid keys or attributes and catches exceptions if the assumption proves false. This clean and fast style is …

  5. python - Global variables and coding style recommendations

    Mar 20, 2013 · Global variables and coding style recommendations Asked 12 years, 7 months ago Modified 12 years, 7 months ago Viewed 44k times

  6. What is the common header format of Python files?

    Oct 6, 2009 · I came across the following header format for Python source files in a document about Python coding guidelines: #!/usr/bin/env python """Foobar.py: Description of what foobar …

  7. Using static methods in python - best practice - Stack Overflow

    In other words, it is not best practice to use class methods as an alternate constructor (See Factory method for python object - best practice). Lets say I have a class used to represent …

  8. Best online resource to learn Python? - Stack Overflow

    Mar 8, 2012 · Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, …

  9. Python Coding style Wrapping Lines - Stack Overflow

    Sep 28, 2012 · So, what type of advice could be given for keep the guidelines on python coding Style ? what is the best practice for functions with many arguments ? THanks in advance.

  10. Python PEP8: Blank lines convention - Stack Overflow

    What modules in the standard library did you read? Many are excellent examples of Python coding style. Which ones did you examine?