On, Wed Jun 06, 2007, space coyote wrote:
> The code:
> img = pygame.image.load(file('b.png'))
>
> results in:
> Traceback (most recent call last):
> File "C:\Python24\a.py", line 48, in ?
> img = pygame.image.load(file('b.png'))
> error: Error reading the PNG file.
>
> I don't know if this has been fixed in Pygame 1.8. If I can get
> 1.8compiled, I will test it.
> This feature is specified in the documents. It is a useful feature, you can
> make file-like objects from anything (I wanted to use ZIP files).
It works fine with the upcoming 1.8 release.
> Thank you,
> Josh
>
> PS: Is there anything I can to help with 1.8?
Testing, testing, testing. Reading the documentation and improve it or
point to sections, where it's unclear. Writing unit tests, etc.pp.
Regards
Marcus
Attachment:
pgpsuo2ZRHpiA.pgp
Description: PGP signature