Skip to content

Put functions into dictionaries #8

@ghost

Description

You could put the functions into dictionaries, small example:

def foo(bar):
    print(bar)

func_dict = {
    'foo': foo
}

func_dict['foo']('Hello world')

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