On Thu, Apr 29, 2010 at 1:26 AM, Florian Bösch <[email protected]> wrote:

> ...
> 2) make a check for the backwards compatibility case, i.e. if
> isinstance(scale, numbers.Real): x, y = scale, scale; else: x, y =
> scale; and you also do not need to worry about strange sequence types,
> because either unpacking works, or it doesn't, in which case the
> traceback leads to the somesprite.scale = something line
>
>
I think the numbers module is not present in python 2.5, so this would need
to use something like

isinstance(scale, (types.IntType, types.FloatType))

(but otherwise I agree).

- Bruce

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to