Skip to content

raise SystemExit() generates errors #995

Closed
@djaychela

Description

@djaychela

I've found an issue with raise SystemExit().

If you run without an argument, then I'm getting

TypeError: SystemExitRequest.__init__() missing 1 required positional argument: 'args'

The standard python repl doesn't generate an error, and I believe that it should default to None [1]. Certainly explicitly passing None makes the call work OK.

I'm running bpython version 0.24 on top of Python 3.11.1

[1] - https://docs.python.org/3/library/exceptions.html#SystemExit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions