Skip to content

RFC: detecting capabilities at runtime #440

Closed
@lurch

Description

@lurch

I haven't been following the micropython project very closely, so apologies if this has been discussed before, or if this is the wrong place to ask about this...

With the launch of https://github.com/micropython/micropython-lib (which AFAICT was proposed in #405) I guess it's conceivable that there might be different code-paths in "standard library code", based on what different features (e.g. float support) are or aren't compiled into the particular micropython binary that's currently running?

Would it make sense to have some kind of runtime-API that could be queried, to allow modules from micropython-lib to dynamically adapt based on what features are available in any particular micropython binary?

Or is that a silly question because it would just end up bloating stuff too much?
</noob> ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    rfcRequest for Comment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions