Alec Mitchell wrote:
On Friday 12 November 2004 11:12 am, Tres Seaver wrote:
'same_type' is what you want:
Wow, now I feel all remedial. I guess that's what knowing some python before learning Zope gets me. Thanks, very useful.
I wouldn't feel badly that you didn't know about an edge case like 'same_type'. Some weirdness like that is due to the fact that Zope tries to allow "untrusted" code to do most of what "normal" Python can do, but the "normal" Python facilities are potentially exploitable to break out of the "untrusted" jail, so we have to provide workarounds. Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com