how to implement a queue-like container with sort function

iMath redstone-cold at 163.com
Tue Dec 3 19:47:24 EST 2013


在 2013年12月4日星期三UTC+8上午7时23分49秒,Cameron Simpson写道:
> On 03Dec2013 16:34, Ned Batchelder <ned at nedbatchelder.com> wrote:
> 
> > On 12/3/13 4:19 PM, Cameron Simpson wrote:
> 
> > >And then I check the source:-( He actually said "I want to a fixed
> 
> > >length list-like container". That still sounds like a limit to the
> 
> > >number of entries.
> 
> > 
> 
> > Sorry, I was unclear. When I said, "I don't know where the idea came
> 
> > from," I should have said, "the OP said he wanted a fixed-length
> 
> > contained, but I don't know why he thinks that."
> 
> 
> 
> Me either.
> 
> 
> 
> Unless this is a homework task: "make one of these".
> 
> -- 
> 
> Cameron Simpson <cs at zip.com.au>
> 
> 
> 
> It's as if all of Scottish cuisine is based on a dare.  - Saturday Night Live

deque meets my requirement here :)



More information about the Python-list mailing list