Skip to content

String formatting with padding characters not supported in Larky #293

@mottersheadt

Description

@mottersheadt

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions