Library functions to support pythonizer
Project description
perllib
Library functions to support pythonizer
Free software: GNU General Public License v3
Documentation: https://perllib.readthedocs.io.
Features
Perl library functions typically return 1 on success and undef on failure, whereas python library functions raise exceptions on failure. Also, perl automatically converts variables from strings to numbers and vice-versa when referenced in the appropriate context. In perl, global variables are truly global across files and are organized by package name, where in python global variables have file scope. In addition, perl has autovivification, which means that arrays and hash tables magically appear out of whole cloth when referenced. This library supports all of those features and allows the “pythonizer” perl to python translator generate code that is fairly readable.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.958 (2022-02-23)
Don’t give a close failed error on a pipe which got automatically closed, give empty result for keys(), values(), and items() on a fresh ArrayHash instead of AttributeError
0.957 (2022-02-22)
Add list_to_hash function to process key/value pairs
0.956 (2022-02-21)
Implement all options of translate (tr///)
0.955 (2022-02-19)
Fix split: A zero-width match at the beginning of EXPR never produces an empty field, fix bootstrapping issues
0.954 (2022-02-17)
Add -n: trace run, fix issue of scalar being initialized as an array
0.953 (2022-02-15)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file perllib-0.958.tar.gz
.
File metadata
- Download URL: perllib-0.958.tar.gz
- Upload date:
- Size: 34.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354b69e2c9ab31b5432360103fbe87e4750c114e6b0ca343e7791e9c580d276e |
|
MD5 | 5ad99e05187c8e985fbf52532c9253e6 |
|
BLAKE2b-256 | 8022d365d4c86b6c8d0b85ffc54eb4350e0350431bac5711b4034db3b11cf893 |
File details
Details for the file perllib-0.958-py3.10.egg
.
File metadata
- Download URL: perllib-0.958-py3.10.egg
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cf5d959ec817a0bf24c17017129fbb4b8955989dca4a6933f1b72fc325296b8 |
|
MD5 | 4c1ec2451b4605ebd75ac3cdaad5511e |
|
BLAKE2b-256 | e8145411e6d68f79b10409951d1219b494d62f691176d1e3d974fb7f65b415a1 |
File details
Details for the file perllib-0.958-py2.py3-none-any.whl
.
File metadata
- Download URL: perllib-0.958-py2.py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 806cd883d3d56cf2dcec3b91fb823d43da6c5d8d390278d7a7708567545c3421 |
|
MD5 | 92790fb690cbb02ca266ece51747b0a6 |
|
BLAKE2b-256 | 692ff9aebd7e941d4b946f73994b00e0ce99b531d717b69ef9ef811e28212918 |