Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Interpreter crashes when given non-existent file in interactive mode #919

Closed
Labels
Milestone
@arian-deimling

Description

@arian-deimling

See below. Running the same command withpython3 versusbpython andpy3 prints a short error message and then opens the interpreter, butbpy just crashes.

bpython % python3 -i file_that_does_not_exist.py/Library/Developer/CommandLineTools/usr/bin/python3: can't open file 'file_that_does_not_exist.py': [Errno 2] No such file or directory>>> ^Dbpython % bpython -i file_that_does_not_exist.pyTraceback (most recent call last):  File "/Users/arian/Library/Python/3.8/bin/bpython", line 8, in <module>    sys.exit(main())  File "/Users/arian/Library/Python/3.8/lib/python/site-packages/bpython/curtsies.py", line 181, in main    bpargs.exec_code(interp, exec_args)  File "/Users/arian/Library/Python/3.8/lib/python/site-packages/bpython/args.py", line 161, in exec_code    with open(args[0]) as sourcefile:FileNotFoundError: [Errno 2] No such file or directory: 'file_that_does_not_exist.py'bpython %

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp