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. What is the common header format of Python files?

    Oct 6, 2009 · Problem In Python 2.1, Unicode literals can only be written using the Latin-1 based encoding "unicode-escape". This makes the programming environment rather unfriendly to …

  4. coding style - How many lines of code should a …

    As Steve Mcconnell and Bob Martin say (two pretty good references on coding best practices), a method should do one thing and only one thing. However many lines of code it takes to do that …

  5. python - Global variables and coding style recommendations

    Mar 20, 2013 · Global variables and coding style recommendations Ask Question Asked 12 years, 11 months ago Modified 12 years, 11 months ago

  6. 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 …

  7. python - Why are global variables evil? - Stack Overflow

    Oct 3, 2013 · Why is the global keyword considered bad practice in Python (and programming in general)? Links with more information would also be appreciated.

  8. coding style - What does it means to not exceeding 80 characters …

    Jan 2, 2016 · What is the length? Everything counts towards the width. The "standard" PEP8 is a recommendation not a law. It explains the reasons pretty nicely: several files open in an editor …

  9. 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 …

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

    Mar 8, 2012 · Google's Python Class 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 …