Luca wrote:
On Mon, Sep 1, 2008 at 11:35 AM, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
...
But not so easy to fool a type check:

type(x) == new.function
False

Of course that's not bullet-proof either. I leave it as an exercise to
discover how you might break that piece of code.


Ok, so...

What is the best way to do this? The "most pythonic"?

The question would be - why do you want this? Is it just
curiosity or can we find a better solution to the overall
problem, once understood?

Regards
Tino

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to