On Tue, Aug 19, 2008 at 4:43 PM, Patrick Devine <[EMAIL PROTECTED]> wrote:
> I was just trying to pass a tuple to an ImageGrid and realized it
> hadn't been implemented so I went ahead and fixed it.  Attached is the
> diff for image/__init__.py.

I'll let Alex make a call on the patch separately, but just a little note that:

   type(var) == types.TupleType

can avoid the "types" import if you use:

   type(var) is tuple

but even better is:

   isinstance(var, tuple)

because then you can allow for subclasses of the tuple type :)


     Richard

--~--~---------~--~----~------------~-------~--~----~
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