| Article: |
A Primer on Python Metaclass Programming | |
| Subject: | type not the same as new.classobj | |
| Date: | 2007-07-13 16:17:19 | |
| From: | hattawayd | |
|
In the text you mention: "The class type works as a class factory in the same way that the function new.classobj does"
|
||
Showing messages 1 through 1 of 1.
-
type not the same as new.classobj
2007-07-13 17:09:41 David_Mertz [View]
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)


