https://bugs.kde.org/show_bug.cgi?id=369265

            Bug ID: 369265
           Summary: Autocomplete __main__ check
           Product: kdev-python
           Version: 5.0.1
          Platform: Appimage
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: Code completion
          Assignee: m...@svenbrauch.de
          Reporter: nicolas.alva...@gmail.com

KDevelop currently autocompletes the Python shebang and the encoding
declaration, at appropriate places in the file and if they aren't already
present.

It would be useful to also complete other common boilerplate constructs, such
as:
if __name__ == "__main__":

which checks if the current module is being executed directly by the Python
interpreter, and not imported from something else. Maybe it could complete the
== "__main__" part after seeing the "if __name__" part.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to