py stuff

david casal D.Casal at uea.ac.uk
Tue Jul 23 14:50:53 CEST 2002


On Tue, 23 Jul 2002, Thomas Grill wrote:

Hi thomas + list,

> working with py, you will also have to define the function of the Python
> script to be called, for example
>
> [py permute printList]

ah-ha!

> Therefore, you could define another function
>
> def printAll(v):
>     printList(list(str(v)))
>
> and then (with [py permute printAll]), try to send it numbers or symbols.

Since I'm only just learning Python, I'll go away and try that, and tell
you what happened...

> Also, your script function doesn't return any values to be printed by the pd
> print objects but it will rather output the permuted values to the console.

Erm, could you please point out how to get the permuted values back to pd
and not the console?

I realise this may be a python (as opposed to pd) question. Sorry if it's
OT.

Thanks for your help so far...

Cheers,
dc


david casal                   --0+
    ---
d.casal at uea.ac.uk             --9+
    ---
www.ariada.uea.ac.uk/~dcasal  --)+





More information about the Pd-list mailing list