-
Notifications
You must be signed in to change notification settings - Fork 459
Python
rafamadriz edited this page Mar 27, 2021
·
1 revision
NOTE: this list doesn't show all snippets included with this repository, meaning that there's more than what you see here.
Abbreviation | Description |
---|---|
env | #!/usr/bin/env python |
env3 | #!/usr/bin/env python3 |
enc | # -- coding=utf-8 -- |
enco | # coding=utf-8 |
fenc | from future import ... |
fenco | from future import ... (no -*- ) |
im | import |
fim | from ... import ... |
class | New class |
defs | New method |
def | New function |
adef | Async function |
property | New property |
if | if |
for | for |
while | while |
try | try:except: |
tryef | try:except:else:finally: |
trye | try:except:else: |
tryf | try:except:finally: |
. | self |
__ | magic |
ifmain | if name == "main" |
Abbreviation | Description |
---|---|
lc | List comprehension |
lcie | List comprehension if else |
lci | List comprehension if filter |
dc | Dictionary comprehension |
dci | Dictionary comprehension if filter |
sc | Set comprehension |
sci | Set Comprehension if filter |
gc | Generator comprehension |
gci | Generator comprehension if filter |
Abbreviation | Description |
---|---|
ase | Assert equal |
asne | Assert not equal |
asr | Assert raises |
ast | Assert True |
asf | Assert False |
asi | Assert is |
asint | Assert is not |
asino | Assert is None |
asinno | Assert is not None |
asin | Assert in |
asni | Assert not in |
as | Assert |
fail | Fail (a test) |
Abbreviation | Description |
---|---|
pdb | PDB set trace |
ipdb | iPDB set trace |
rpdb | rPDB set trace |
pudb | PuDB set trace |
Abbreviation | Description |
---|---|
imtk | Import Tkinter py2 |
imtk3 | Import tkinter py3 |
config | Root configuration |
button | Button |
label | Label |
frame | Frame |
entry | Entry |
grid | Grid |
sticky | Sticky |
checkbutton | Check button |
mainloop | Main loop |
pack | Pack |
side | Side |
bind | Bind |
menu | Menu |
addcascade | Add cascade |
addcommand | Add command |
addseperator | Add seperator |