- Notifications
You must be signed in to change notification settings - Fork0
Backports for the Python standard library.
License
NotificationsYou must be signed in to change notification settings
syubogdanov/backlib
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Warning
The library is in the pre-alpha stage. Bugs may exist!
- Provides backports for the standard library;
- Compatible with Python 3.9+;
- Almost dependency-free.
The library is available asbacklib
on PyPI:
pip install backlib
For more, see thedocumentation.
frombacklib.py310importbuiltinsassertissubclass(builtins.EncodingWarning,Warning)
For more, see thedocumentation.
frombacklib.py311importerrnoasserterrno.ENOTCAPABLE==93
For more, see thedocumentation.
frombacklib.py311importioencoding=io.text_encoding(None)assertencoding=="utf-8"
For more, see thedocumentation.
frombacklib.py310importjsondata=json.loads("{\"backlib\":\"pypi\"}")assertdata== {"backlib":"pypi"}
For more, see thedocumentation.
frombacklib.py311importoperatorvalue=operator.call(abs,-42)assertvalue==42
For more, see thedocumentation.
frombacklib.py312importosst=os.stat("pyproject.toml")assertst.st_birthtime_ns>0
For more, see thedocumentation.
frombacklib.py313importosassertos.path.isreserved("NUL")
For more, see thedocumentation.
frombacklib.py313importstatassertstat.SF_SYNTHETIC==0xC0000000
For more, see thedocumentation.
frombacklib.py311importtomllibdata=tomllib.loads("\"backlib\" =\"pypi\"")assertdata== {"backlib":"pypi"}
MIT License, Copyright (c) 2025 Sergei Y. Bogdanov. SeeLICENSE file.
About
Backports for the Python standard library.