Skip to content

Function will not return as expected #17

@pwwang

Description

@pwwang

I think will is implemented wrong. Consider this example:

import varname


class Foo:
    @property
    def bar(self):
        print(varname.will())
        return "abc"


Foo().bar.upper()

print(varname.will()) prints bar, not upper.

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