Skip to content

Name error in GenerateFloats #19

Open
@snim2

Description

@snim2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions