Skip to content

%s formatting of byte strings in byte strings difference with CPython #2121

Closed
@glandium

Description

@glandium

The following python code:

b"%s" % b"foo"

returns

b'foo'

with python but

b'b'foo''

with rustpython.

(btw the formatting of the output string in the REPL is not valid python)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions