Hello Alan,

On 24.07.08, Alan G Isaac wrote:
> OK, I am probably not understanding what you mean here by 
> "how to use it".  What functionality are you getting?  
> Autosetting of columnnames?  If so, I would add a parameter 
> with ['x','y'] as the default.  If you meant something else, 
> I am not understanding.

Yes, I guess that is what Michael meant. But I have to say that
sometimes it would really be useful to use Python functions directly, in
particular since this would allow you to use closures. Consequently,
such an interface would also not need the "context" argument!

Whether simply passing columnnames as a list or a more explicit
interface would be preferable is not so clear to me, though. I think I
would prefer a clearer signature like

    pyx.graph.data.python_func(f, "x", "y")

with the last two arguments being the default values. Btw, there are
also use cases with tuples, which also have to be considered.

André, what is your opinion on this issue?

Cheers,

        Jörg

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to