Open
Description
Reported by kwhitefo, Sep 21, 2010
What steps will reproduce the problem?
- Download source: hg clone https://python-csp.googlecode.com/hg/ python-csp
- Open
python-csp/csp/builtins.py
- Look at the
GenerateFloats
function:
@forever
def GenerateFloats(outchan, increment=0.1):
"""
readset =
writeset =
"""
counter = 0
while True:
outchan.write(counter * epsilon)
counter += 1
yield
epsilon
should be increment.
There is also a bug in guards.py
: __doc__
is not writeable on the last line:
Barrier.__doc__ = """
"""
I'm using python 2.6:
whitefoot@elektra:~/python-csp/python-csp$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
on Xubuntu:
whitefoot@elektra:~/python-csp/python-csp$ cat /proc/version
Linux version 2.6.31-22-generic (buildd@roseapple) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) ) #65-Ubuntu SMP Thu Sep 16 15:48:58 UTC 2010