Skip to content

[RFC] Consider a pure python stdlib #5492

Open
@adsharma

Description

@adsharma

Summary

I noticed that you have a stdlib implementation in rust. Not sure how complete it is. But there are probably more projects that are trying to innovate in the python ecosystem without using C-API and GIL.

Wouldn't it be better if these projects collaborated and produced one stdlib implementation that is usable by multiple projects?

Detailed Explanation

https://github.com/adsharma/py-stdlib where I'm working on implementing the top 100 most used functions.

Subsequently this can be transpiled to many languages, each using the language specific FFI. But the core library remains in a restricted subset of python that could be transpiled.

Mojo is likely considering doing this as well (but in mojo, not statically typed python).

Drawbacks, Rationale, and Alternatives

Breaks compatibility. Not sure if pypy will consider it.

Unresolved Questions

Some unresolved questions in the issue tracker of the project linked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRequest for comments

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions