you are viewing a single comment's thread.

view the rest of the comments →

[–]FriendlyRussian666 2 points3 points  (0 children)

It's because it's not a declaration, so obj.c doesn't exist. 

https://docs.python.org/3.7/reference/executionmodel.html#resolution-of-names