Re: bisect and Queue modules in Python 2.4

2006-03-16 Thread Abdullah Yoldas
I had a similar problem when i was using asynchat.fifo, it had a list in the past now it has a deque. So in order to put something to zeroth location (to be compatible with python 2.3 and python 2.4) I did something like: class fifo(asynchat.fifo):     def __init__(self, list=None):    asynch

Re: bisect and Queue modules in Python 2.4

2006-03-16 Thread Alex Martelli
Peter Otten <[EMAIL PROTECTED]> wrote: > SA Trygubenko wrote: > > > q.queue used to be a list, and now it is something else? > > > > I was using bisect module to implement min priority queue, as described > > in python library reference (see > > http://www.python.org/doc/2.3.5/lib/bisect-example

Re: bisect and Queue modules in Python 2.4

2006-03-16 Thread Peter Otten
SA Trygubenko wrote: > q.queue used to be a list, and now it is something else? > > I was using bisect module to implement min priority queue, as described > in python library reference (see > http://www.python.org/doc/2.3.5/lib/bisect-example.html). I have found > out that in Python 2.4 q.queue