JSON Hero only works on desktop

👇

(For now!)

Back to Home

by

Save

  1. 9.6k

root

code

# The __init__ 'constructor' - object-oriented programming intro # Adapted from MIT 6.01 course notes (Section 3.5) # http://mit.edu/6.01/mercurial/spring10/www/handouts/readings.pdf class Staff601: course = '6.01' building = 34 room = 501 def __init__(self, name, role, years, salary): self.name = name self.role = role self.age = years self.salary = salary def salutation(self): return self.role + ' ' + self.name pat = Staff601('Pat', 'Professor', 60, 100000) print(pat.salutation())

trace

13 items

Index 0

8 fields

line

5

event

step_line

func_name

<module>

stdout

# The __init__ 'constructor' - object-oriented programming intro # Adapted from MIT 6.01 course notes (Section 3.5) # http://mit.edu/6.01/mercurial/spring10/www/handouts/readings.pdf class Staff601: course = '6.01' building = 34 room = 501 def __init__(self, name, role, years, salary): self.name = name self.role = role self.age = years self.salary = salary def salutation(self): return self.role + ' ' + self.name pat = Staff601('Pat', 'Professor', 60, 100000) print(pat.salutation())

Index 1

8 fields

line

19

event

step_line

func_name

<module>

globals

1 field

Staff601

2 items

Index 0

IMPORTED_FAUX_PRIMITIVE

Index 1

imported class

ordered_globals

1 item

Index 0

Staff601

stdout

# The __init__ 'constructor' - object-oriented programming intro # Adapted from MIT 6.01 course notes (Section 3.5) # http://mit.edu/6.01/mercurial/spring10/www/handouts/readings.pdf class Staff601: course = '6.01' building = 34 room = 501 def __init__(self, name, role, years, salary): self.name = name self.role = role self.age = years self.salary = salary def salutation(self): return self.role + ' ' + self.name pat = Staff601('Pat', 'Professor', 60, 100000) print(pat.salutation())

Index 2

8 fields

line

10

event

call

func_name

__init__

globals

1 field

Staff601

2 items

Index 0

IMPORTED_FAUX_PRIMITIVE

Index 1

imported class

ordered_globals

1 item

Index 0

Staff601

stack_to_render

1 item

Index 0

9 fields

func_name

__init__

is_parent

false

frame_id

1

encoded_locals

5 fields

self

2 items

Index 0

REF

Index 1

1

root

Copy

object

Copy