How to disassembly an object creation in Python?

Posted by systempuntoout on Stack Overflow See other posts from Stack Overflow or by systempuntoout
Published on 2010-04-23T09:06:01Z Indexed on 2010/04/23 9:13 UTC
Read the original article Hit count: 295

Filed under:

Having a class like this:

class Spam(object):
   def __init__(self, name=''):
      self.name = name

eggs = Spam('systempuntoout')

Using dis, is it possible to see how an instance of a class and the rispective identity are created?

© Stack Overflow or respective owner

Related posts about python