• string
  • attribute

name = 'asdf'; foo.name isn’t the same as foo.asdf. You need getattr.