The Python Oracle

Is there a built-in function to print all the current properties and values of an object?

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

--

Track title: CC G Dvoks String Quartet No 12 Ame 2

--

Chapters
00:00 Question
00:28 Accepted answer (Score 781)
01:41 Answer 2 (Score 1291)
01:54 Answer 3 (Score 293)
02:20 Answer 4 (Score 101)
02:44 Thank you

--

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

Question links:
[print_r]: http://us2.php.net/print_r

Accepted answer links:
[dir()]: https://docs.python.org/3/library/functi...
[vars()]: https://docs.python.org/3/library/functi...
[inspect]: https://docs.python.org/3/library/inspec...

--

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

--

Tags
#python #debugging #introspection #prettyprint #pythondatamodel

#avk47