[java-dev] Re: Re: Announce: Python for MaxMSP (beta)
Nathanaël Lécaudé
nat-list at studioimaginaire.com
Fri May 9 16:34:14 MDT 2008
- Previous message: [java-dev] Re: Announce: Python for MaxMSP (beta)
- Next message: [java-dev] [MAX 5]newDefault args broken?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It supports list comprehensions in the form [x for x in range(30) if x > 10] which will return a list, but it doesn't support generators in the form (x for x in range(30) if x > 10) which return a generator object and is much faster to iterate through. The other small thing it doesn't support that I use a lot is the sorted function : mylist = [2,3,1,4,5,7,90] mysortedlist = sorted(2 * x for x in mylist) but then, that's not a big turn off, I still code much faster using python within max than using JavaScript... Nat
- Previous message: [java-dev] Re: Announce: Python for MaxMSP (beta)
- Next message: [java-dev] [MAX 5]newDefault args broken?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
