i2mint / i2

Python Mint creation, manipulation, and use
Apache License 2.0
2 stars 1 forks source link

Better way to list a bunch of name-keyed signatures #32

Closed thorwhalen closed 2 years ago

thorwhalen commented 2 years ago

Currently, the signatures module uses a dict to express the mapping between builtin names and signatures, and uses the signature(lambda ...) way of getting signature values for these.

{
    ...
    'filter': signature(lambda function, iterable: ...),
    'map': signature(lambda func, *iterables: ...),
    'print': signature(lambda *value, sep=' ', end='\n', file=sys.stdout, flush=False: ...),
    ...
}

This has several disadvantages:

Find a better way to do so.

Related: issue 30