[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] [OT] pyOSC question






On 30 December 2012 01:40, nescivi <nescivi@xxxxxxxxx> wrote:
Hiho,

On Saturday 29 December 2012 14:32:35 Nathaniel Virgo wrote:
> it seemed as if this would be such a typical use case that the library
> might include some way of dealing with it. In pyliblo you don't have to do
> this, because you specify the type tags when you register the callback, and
> it doesn't get called unless the tags are correct.
>
> For now I've solved it by using some decorator magic to add that logic to
> all my callbacks automatically, but it does seem a strange thing not to
> have in the API.

maybe add it to the API?
I don't think the original author had an immediate need for it when he wrote
the library, but I'm sure he's happy when people extend the lib.

That makes sense - I'll look into doing it when I'm a bit more familiar with how pyOSC works. (My current solution is quite specific to my particular project.)

Nathaniel