The Python Oracle

How to access an object attribute with a dot in its name

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 3 Looping

--

Chapters
00:00 Question
01:01 Accepted answer (Score 4)
01:22 Answer 2 (Score 2)
02:03 Answer 3 (Score 0)
03:05 Answer 4 (Score -1)
03:18 Thank you

--

Full question
https://stackoverflow.com/questions/4942...

Accepted answer links:
[getattr]: https://docs.python.org/3/library/functi...
[vars]: https://docs.python.org/3/library/functi...

Answer 2 links:
[__getitem__(self, key)]: https://docs.python.org/3/reference/data...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python

#avk47