summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/snippets/python-mode')
-rw-r--r--.emacs.d/snippets/python-mode/__new__8
1 files changed, 8 insertions, 0 deletions
diff --git a/.emacs.d/snippets/python-mode/__new__ b/.emacs.d/snippets/python-mode/__new__
new file mode 100644
index 0000000..8ccb151
--- /dev/null
+++ b/.emacs.d/snippets/python-mode/__new__
@@ -0,0 +1,8 @@
1# -*- mode: snippet -*-
2# name: __new__
3# key: new
4# group: dunder methods
5# --
6def __new__(mcs, name, bases, dct):
7 $0
8 return type.__new__(mcs, name, bases, dct)