[Zope] Re: Testing types in TAL
    Tres Seaver 
    tseaver at zope.com
       
    Fri Nov 12 15:08:15 EST 2004
    
    
  
Alec Mitchell wrote:
> On Friday 12 November 2004 11:12 am, Tres Seaver wrote:
> 
>>'same_type' is what you want:
>>
>>   http://www.plope.com/Books/2_7Edition/BasicScripting.stx
> 
> 
> 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 at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com
    
    
More information about the Zope
mailing list