On 10/16/2009 11:25 AM, André Wobst wrote:
> BTW note that sum is designed for numerics only.

That seems a bit strong.  How about, "numerics originally*.

> That's why sum([])
> returns 0 and sum(["spam", "eggs"]) is not allowed. By the way for
> strings it even doesn't work with sum(["spam", "eggs"], ""), which I
> think is weird

I consider it a bug (as a violation of duck typing).
There is an efficiency reason to use `join`, but it
is beyond weird to enforce it.


> Anyway, sum(mypaths, path()) is fine.

OK, good.  Thanks,
Alan

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to