Skip to content

missing error message bytes(negative number) #1738

@TG-Techie

Description

@TG-Techie

I was messing around in python, for fun, and noticed that there was no error message for trying to make a bytes instance of a negative number. instead of saying 'ValueError: cannot convert negative number to bytes' it just raises 'ValueError:'.

this is copied from the repl on mu.

>>> bytes(-5)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: 

running: os: macos, cirpy: beta4 built on the first of april from master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions