ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  A Primer on Python Metaclass Programming
Subject:   type not the same as new.classobj
Date:   2007-07-13 17:09:41
From:   David_Mertz
Response to: type not the same as new.classobj

Python 2.5 made this change, so I obviously didn't know about it when I wrote the article. If you want to assure that you are looking at a real dict, you should be able to wrap the dictproxy object in an idempotent dict() initializer (i.e. no harm in wrapping a real dict that way either)