About 9,500,000 results
Open links in new tab
  1. How do I create multiline comments in Python? - Stack Overflow

    111 Python does have a multiline string/comment syntax in the sense that unless used as docstrings, multiline strings generate no bytecode -- just like # -prepended comments. In …

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

    Mar 2, 2010 · A docstring isn't a comment, and people often want to include things in function-level comments that shouldn't be part of documentation. It's also commonly considered that …

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

    Oct 6, 2009 · Proposed Solution I propose to make the Python source code encoding both visible and changeable on a per-source file basis by using a special comment at the top of the file to …

  4. How to comment out a block of code in Python [duplicate]

    6 In Eclipse + PyDev, Python block commenting is similar to Eclipse Java block commenting; select the lines you want to comment and use Ctrl + / to comment. To uncomment a …

  5. Is there a shortcut to comment multiple lines in python using VS …

    Sep 26, 2022 · Instead of indivually typing out a hash tag in front of each line, is there a way to select a block of code and comment/uncomment everything by only pressing a couple shortcut …

  6. What is the proper way to comment code in Python? [closed]

    What is the proper way to comment code in Python? [closed] Asked 12 years, 10 months ago Modified 11 months ago Viewed 26k times

  7. python - Comment/Uncomment multiple lines in …

    May 12, 2021 · CTRL+/ for comment and uncomment multiple lines you can press 'h' anywhere in command mode, you can find all the shortcuts of jupyter.

  8. Shortcut key for commenting out lines of Python code in Spyder

    Apr 15, 2016 · I recently changed from the Enthought Canopy Python distribution to Anaconda, which includes the Spyder IDE. In Canopy's code editor, it was possible to comment and …

  9. python - comment out nested triple quotes - Stack Overflow

    May 21, 2012 · Python doesn’t have nesting multiline comments, it’s as simple as that. If you want to comment out multiple lines allowing for nested comments, the only safe choice is to …

  10. How to document a method with parameter (s)? - Stack Overflow

    How to document methods with parameters using Python's documentation strings? PEP 257 gives this example: def complex (real=0.0, imag=0.0): """Form a complex number. Keyword