On 12/11/07, Nathan <[EMAIL PROTECTED]> wrote: > > In the docs for media.load(): > > " > ... > streaming : bool > If False, a StaticSource will be returned; otherwise (default) a > StreamingSource is created. > > Returns: Source" > > Shouldn't that second line say "Returns: StaticSource or > StreamingSource"? Or is that implied since those are both subclasses > of Source?
That is implied -- or, at least, I'm implying it now ;-). There are several other instances like this in the documentation; for example, many methods are documented to return AbstractImage or Texture, when they actually return one of several subclasses of these (ImageData, CompressedTexture, TextureRegion, ...). > As a sidenote, if you pass in a StaticSource to StaticSource's > constructor and then try to queue the resulting object, you get the > message "StaticSource cannot be queued." ;-P Hmm, that's odd, I'll look into it. Alex. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
