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?