# HG changeset patch # User Josef "Jeff" Sipek # Date 1155428466 14400 # Node ID 80a717f97cef24994b09859fda95794c8231a157 # Parent 6c5b9827b117e1badbb81aefa2340d775fd69f5f Basic definition of a playlist class diff -r 6c5b9827b117 -r 80a717f97cef vixm/playlist.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vixm/playlist.py Sat Aug 12 20:21:06 2006 -0400 @@ -0,0 +1,15 @@ +# a playlist definition + +class playlist: + def __init__(self): + self.__list = [] + + def enqueue(self, song) + self.__list.append(song) + + def dequeue(self, song) + self.__list.remove(song) + + def pop(self): + self.__list.pop(0) +