About 50 results
Open links in new tab
  1. How do you display code snippets in MS Word preserving format and ...

    Dec 23, 2008 · It has Online Addin called "Code Format" . Install that Office Addin and in your word doc you can just select all code (even multiple pages) and click convert it button from the Code Format …

  2. Common coding style for Python? - Stack Overflow

    May 12, 2010 · I'm pretty new to Python, and I want to develop my first serious open source project. I want to ask what is the common coding style for python projects. I'll put also what I'm doing right …

  3. What is the proper way to comment functions in Python?

    Mar 2, 2010 · 6 Read about using docstrings in your Python code. As per the Python docstring conventions: The docstring for a function or method should summarize its behavior and document its …

  4. coding style - What are the most common Python docstring formats ...

    The Google style guide contains an excellent Python style guide. It includes conventions for readable docstring syntax that offers better guidance than PEP-257. For example:

  5. What is the naming convention in Python for variables and functions ...

    As the Style Guide for Python Code admits, The naming conventions of Python's library are a bit of a mess, so we'll never get this completely consistent Note that this refers just to Python's standard …

  6. Python "best formatting practice" for lists, dictionary, etc

    Oct 21, 2010 · 45 I have been looking over the Python documentation for code formatting best practice for large lists and dictionaries, for example,

  7. Correct style for line breaks when chaining methods in Python

    Oct 30, 2011 · In Python code, it is permissible to break before or after a binary operator, as long as the convention is consistent locally. For new code Knuth's style is suggested.

  8. How do I autoformat some Python code to be correctly formatted?

    I have some existing code which isn't formatted consistently -- sometimes two spaces are used for indent, sometimes four, and so on. The code itself is correct and well-tested, but the formatting is …

  9. python - Global variables and coding style recommendations - Stack …

    Mar 20, 2013 · Your code doesn't really do anything, so I guess it's fine! With regards to styling your code, refer to PEP 8 whenever you're in doubt. Global Variables Constants With no more information …

  10. How to make pylint, flake8 or pycodestyle to automatically correct ...

    Feb 23, 2019 · AFAIK, none of those linting tools will fix the style issues they identify. However, there are several code formatting tools that will automatically fix many of the style errors that were flagged. …