How to memory dump an object?

jfong at ms4.hinet.net jfong at ms4.hinet.net
Fri May 20 21:05:38 EDT 2016


Is there any tools which can do the memory dump of an object so I can view their content or implementation? For example,

>>> s1 = '\x80abc'
>>> b1 = b'\x80abc'

What are exactly stored in memory for each of them? Is their content really the same? This kind of tool should be helpful "for me" to learn the inner detail of Python. 


--Jach



More information about the Python-list mailing list