On Sat, 2012-03-03 at 20:57 +0000, lkcl luke wrote:
> On Sat, Mar 3, 2012 at 8:38 PM, Rahul Rajan <[email protected]> wrote:
> > I am curious why the builtin delattr checks to see if the named attribute is
> > a function..
> 
>  ahh that'll be one for kees to answer.

I really don't know. It's been there since the europython merge from
2009..., but that's the first commit on pyjslib.py that's in the
repository. It just never saw this as incorrect. I guess only a few
people use delattr to get rid of functions...

I've added some test to the libtest and removed the constraint
typeof(@{{obj}}[mapped_name]) != "function"

Note that the new tests expose some more bugs. These cannot be fixed
with the current mro resolving at class/instance creation (in stead of
the phytonic way: on access). See bug #697:
http://code.google.com/p/pyjamas/issues/detail?id=69


- Kees

Reply via email to