Skip to content

list indices must be integers or slices, not float #23

@MJChku

Description

@MJChku

I have a simple for loop to parallelize, but it doesn't work;

@parallel()
def foo():
    a = list(range(10))
    for i in range(10):
        a[i] = 5 
    return a

raise error :

pycompss.util.translators.py2scop.translator_py2scop.Py2ScopException: Exception on Py2Scop.translate method.
Message: ERROR: Cannot generate SCOPs from ForBlocks
Nested Exception: list indices must be integers or slices, not float

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions