Skip to content

string: Convert string module to package and import templatelib.#1096

Open
dpgeorge wants to merge 1 commit intomicropython:masterfrom
dpgeorge:string-make-module
Open

string: Convert string module to package and import templatelib.#1096
dpgeorge wants to merge 1 commit intomicropython:masterfrom
dpgeorge:string-make-module

Conversation

@dpgeorge
Copy link
Member

Convert the existing string module into a package with __init__.py and templatelib.py. This is needed to support t-strings (if they are enabled) because there is a built-in string.templatelib module with built-in Template and Interpolation classes.

Convert the existing `string` module into a package with `__init__.py`
and `templatelib.py`.  This is needed to support t-strings (if they are
enabled) because there is a built-in `string.templatelib` module with
built-in `Template` and `Interpolation` classes.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge
Copy link
Member Author

Tested with main micropython repo, using the webassembly port (pyscript variant, which has t-strings enabled and this string package frozen into it) and also the unix coverage variant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant