File: pdb-script.py

package info (click to toggle)
powerline 2.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,884 kB
  • sloc: python: 23,040; sh: 1,783; ansic: 131; makefile: 70; csh: 51
file content (38 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# vim:fileencoding=utf-8:noet
def nop(_):
	pass


class Foo(object):
	def __init__(self):
		nop('__init__')
		self.bar()
		self.baz()
		self.bra()

	@classmethod
	def bar(cls):
		nop(cls.__name__)

	@staticmethod
	def baz():
		nop(1)

	def bra(self):
		nop(self.__class__.__name__)


def brah():
	nop('brah')


f = Foo()
Foo.bar()
Foo.baz()
Foo.bra(f)

f.bar()
f.baz()
f.bra()

brah()