Collections Flashcards

1
Q

What is the order of class object attribute resolution?

A
  1. Is it in class __dict__?
  2. Search any super classes in order.
  3. Attribute error.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the order of instance object attribute resolution?

A
  1. Is it in instance __dict__?
  2. Attempt to resolve on class.
  3. If its a class attribute - is it a function.
  4. If class function - convert to method and attach to the instance.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly