user.lang.python.python

dunder in it

Insert “__init__”

state (def | deaf | deft)

Insert “def “

state try

Insert “try: \n”

state except

Insert “except “

state raise

Insert “raise “

self taught

Insert “self.”

pie test

Insert “pytest”

state past

Insert “pass”

[state] raise {user.python_exception}

Insert `before + after`, leaving cursor between `before` and `after`. Not entirely reliable if `after` contains newlines.

[state] except {user.python_exception}

Insert “except { python_exception } :”

dock string

Inserts a document comment and positions the cursor appropriately

dock {user.python_docstring_fields}

Insert text at the current cursor position

dock type {user.code_type}

Insert `before + after`, leaving cursor between `before` and `after`. Not entirely reliable if `after` contains newlines.

dock returns type {user.code_type}

Insert `before + after`, leaving cursor between `before` and `after`. Not entirely reliable if `after` contains newlines.

toggle imports

GUI: List libraries for active language

import <user.code_libraries>

Inserts a library and positions the cursor appropriately Press end enter.

from import

Insert `before + after`, leaving cursor between `before` and `after`. Not entirely reliable if `after` contains newlines.