Skip to content

fire.Fire() ruins fire.Fire(fire.Fire) #3

@ubershmekel

Description

@ubershmekel

Hi python-fire,

fire.Fire looked like a very interesting function so I wanted to inspect it with fire.Fire. I was surprised that the interpreter printed out a dictionary with all my locals and globals.

I'm not sure if that's what you guys intended to happen, I guess it kind of is because of fire.Fire() defined as a valid invocation which means fire.Fire(globals() + locals()). Perhaps it's worth considering introducing a different function that would do that? fire.FireThisModule()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions