[Stackless] yield does not work:
Keith Dart
kdart at kdart.com
Mon Jul 18 11:25:43 CEST 2005
Greetings. I was considering switching us to stackless Python at my place
of work. I was running through some unit tests, but discovered the
following:
389 $ ./python ~/tmp/test_stackless_enumerate.py
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
exceptions.StopIteration :
> /home/kdart/tmp/test_stackless_enumerate.py(19) in enumerate()
yield (i, it.next())
Debug:1/1> q
390 !$ python2.3 ~/tmp/test_stackless_enumerate.py
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
The test script is attached. can anyone offer an explanation for this?
Thank you.
--
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keith Dart <kdart at kdart.com>
public key: ID: F3D288E4
=====================================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_stackless_enumerate.py
Type: text/x-python
Size: 403 bytes
Desc:
URL: <http://www.stackless.com/pipermail/stackless/attachments/20050718/ae4b68fe/attachment.py>
-------------- next part --------------
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless
More information about the Stackless
mailing list