Skip to content

gpython: Can not retrieve a function attribute value #56

Description

@corona10

Expected

>>> def f():
...    f.x = 3
...    return f.x
...
>>> f()
3
>>>

Actual

>>> def f():
...    f.x = 3
...    return f.x
...
>>> f()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    FIXME line of source goes here
  File "<stdin>", line 3, in f
    FIXME line of source goes here
SystemError: 'nil Dict in function'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions