Skip to content

Fix encodings related error messages to be less confusing - #5049

Merged
youknowone merged 8 commits into
RustPython:mainfrom
youknowone:import-encodings
Aug 30, 2023
Merged

youknowone merged 8 commits into
RustPython:mainfrom
youknowone:import-encodings

Conversation

@youknowone

@youknowone youknowone commented Aug 27, 2023 •

Copy link
Copy Markdown
Member
  • Don't try import encodings when Settings::path_list is empty
    • And adding . is now part of rustpython crate. Users can skip it when they don't want to add cwd to path_list when they create their own interpreter.
  • More information from encoding failure error messages for both interpreter developers/users and rustpython-vm users.

cc @dannasman

@fanninpm fanninpm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nitpicks to help with grammar/clarity.

Comment thread vm/src/vm/mod.rs Outdated
Comment thread vm/src/vm/mod.rs Outdated
Comment thread vm/src/vm/mod.rs Outdated
@youknowone
youknowone marked this pull request as draft August 28, 2023 05:39
@youknowone
youknowone marked this pull request as ready for review August 29, 2023 11:26
@youknowone

Copy link
Copy Markdown
Member Author

@fanninpm Thank you! Is this now looking good?

Comment thread vm/src/vm/mod.rs Outdated
Co-authored-by: fanninpm <fanninpm@miamioh.edu>
@youknowone
youknowone merged commit 64c66e0 into RustPython:main Aug 30, 2023
@youknowone
youknowone deleted the import-encodings branch August 30, 2023 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants