Hey, that's a good one! Simple code that works in Python, but not in pyjs (yet).

Interesting that nobody noticed that up until today. Let's see how
this can be fixed...

Peter


2012/8/20 Vsevolod Fedorov <[email protected]>:
> Hello all!
>
> I have problem passing None as argument sometimes. I hunted it down to 2
> simple code snippets.
>
> First snippet:
> ----
> def fn( *args, **kw ):
>     pass
>
> fn(None)
> ----
> Results to "index AttributeError: Cannot read property '__name__' of null"
>
> Second one:
> -----
> filter(None, [1])
> -----
> Results to "index AttributeError: object is not a function". But
> filter(None, [...]) is expected to filter-out 'false' items.
>
> Pyjs translator gurus, can you fix this, please, at least first one? It is
> very annoying!
>
> Must I open tracker tickets?
>
> Thanks,
> Seva
>
> --

-- 



Reply via email to