Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name error in GenerateFloats #19

Open
snim2 opened this issue Oct 3, 2012 · 0 comments
Open

Name error in GenerateFloats #19

snim2 opened this issue Oct 3, 2012 · 0 comments
Labels

Comments

@snim2
Copy link
Member

snim2 commented Oct 3, 2012

Reported by kwhitefo, Sep 21, 2010

What steps will reproduce the problem?

  1. Download source: hg clone https://python-csp.googlecode.com/hg/ python-csp
  2. Open python-csp/csp/builtins.py
  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant