On Thursday, 12 November 2015 05:25:56 UTC, Benjamin Martin wrote: > > I have an application where I have to iterate through a couple hundred > thousand files, processing the data in each one. For obvious reasons I am > getting "OSError: Too many open files" so I need to be able to close those > files. Unfortunately pyglet doesn't seem to have any such functionality > documented. Is this simply because this functionality doesn't exist, or > simply because I can't find it? > > Thanks >
Which API in particular are you calling, can you give an example? If you are using a python file, then call close() on it or use the with statement. -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
