Hi Andrew,

as Kristjan pointed already out, there is no real spec on this.
I'd consider this an implementation detail.
Having said that, the CPython stackless implementation is definatelly
the reference implementation.

Regards, Stephan

Andrew Francis wrote:
> Hi Folks:
> 
> I am using python 2.5.2 on Ubuntu 9.04...
> 
> I noticed that channel.queue returns the head of the queue rather than 
> the queue. I also looked at channel_get_queue() in channelObject.c. I 
> have to admit, my C is a bit rusty but it looks like it returns the 
> first object in the queue.
> 
> In contrast, when I use Stackless.py, I get back a dequeue (this is the way 
> it is implemented) which is what I would expect.
> 
> What is the correct behaviour?
> 
> Cheers,
> Andrew
> 
> 
> 
> 
> 
> 
> 
> 
> 
>       
> 
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless

_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to