Watch this: >>> class neodict(dict): pass ... >>> d = neodict() >>> type(d) <class '__main__.neodict'> >>> type(d.copy()) <type 'dict'> Bug? Feature? Genius beyond the grasp of schlubs like me? ~kj -- http://mail.python.org/mailman/listinfo/python-list
- type(d) != type(d.copy()) when type(d).issubclass(dict) kj
- Re: type(d) != type(d.copy()) when type(d).issubclass... David Robinow
- Re: type(d) != type(d.copy()) when type(d).issubc... Flávio Lisbôa
- Re: type(d) != type(d.copy()) when type(d).is... Benjamin Kaplan
- Re: type(d) != type(d.copy()) when type(d).issubclass... Duncan Booth