After a while, a player will hit an open file limit.
It happened to me in something I'm working on, but for simplicity I'd like to ask that on the main example in the README. It calls open() without calling close(), but even if adding
class Song():
def __del__(self):
self.f.close()
to it, it seems as if peeked (i.e. peekQueue) songs are never getting delleted.
Perhaps this example is a rather simple one and I should not base my findings on that. If that's the case, how would you suggest writing this?
After a while, a player will hit an open file limit.
It happened to me in something I'm working on, but for simplicity I'd like to ask that on the main example in the README. It calls open() without calling close(), but even if adding
to it, it seems as if peeked (i.e. peekQueue) songs are never getting delleted.
Perhaps this example is a rather simple one and I should not base my findings on that. If that's the case, how would you suggest writing this?