Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String formatting with padding characters not supported in Larky #293

Open
mottersheadt opened this issue May 24, 2022 · 1 comment
Open

Comments

@mottersheadt
Copy link
Contributor

Problem or feature statement

Currently Larky does not support string formatting with padding characters. For example, "%02x" % 3 should return "03".

Advised solution

Implement more advanced pythonic string formatting features in Larky.

Testing scenarios

"%02x" % 3 == "03"
"%03x" % 3 == "003"
"%04x" % 3 == "0003"
"%2s" % 3 == " 3"
"%010d" % 3 == "0000000003"
@FionnT
Copy link
Contributor

FionnT commented Nov 9, 2023

+1 - this would help cryptography functions quite a bit

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

No branches or pull requests

2 participants