On Wed, Apr 23, 2008 at 3:26 PM, Bert Freudenberg <[EMAIL PROTECTED]> wrote:
>
>  On 23.04.2008, at 21:23, Eben Eliason wrote:
>
>  > if jobject.metadata.has_key['title'] and
>  > jobject.metadata.has_key['title']:
>
>
>  Seems a bit redundant.

I agree, but this is the root of the problem.  It represents the
difference between checking for None and checking for a null string.
Perhaps we could instead interpret null strings as None type so that
has_key returns False?  This does change the semantics a bit, though.

- Eben
_______________________________________________
Sugar mailing list
[email protected]
http://lists.laptop.org/listinfo/sugar

Reply via email to