René's URL Explorer Experiment


Title: Fix `encodings` related error messages to be less confusing by youknowone · Pull Request #5049 · RustPython/RustPython · GitHub

Open Graph Title: Fix `encodings` related error messages to be less confusing by youknowone · Pull Request #5049 · RustPython/RustPython

X Title: Fix `encodings` related error messages to be less confusing by youknowone · Pull Request #5049 · RustPython/RustPython

Description: A Python Interpreter written in Rust. Contribute to RustPython/RustPython development by creating an account on GitHub.

Open Graph Description: 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 t...

X Description: 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 ...

Opengraph URL: https://github.com/RustPython/RustPython/pull/5049

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:81dbe974-3e8b-0ea6-c449-ef4147e1fcc5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9444:2573D7:2269139:2EEB2B3:6B0029E0
html-safe-nonceacd844d826af18bc51e0dd3c9f821aa7dca829167781d282782d0c7c93134c13
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDQ0OjI1NzNENzoyMjY5MTM5OjJFRUIyQjM6NkIwMDI5RTAiLCJ2aXNpdG9yX2lkIjoiNzM0MDkxNjQ1MTUyNTUzNjIyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccc43693b8f5045d3ce909cb581b87595dedccf83b9034c5ef4b3319edee84911
hovercard-subject-tagpull_request:1491038255
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/5049/commits
twitter:imagehttps://opengraph.githubassets.com/07a976a9ae5d31e9432aef7d5e4cc661e77e0f17cd258c7d12810c93bd5b0342/RustPython/RustPython/pull/5049
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/07a976a9ae5d31e9432aef7d5e4cc661e77e0f17cd258c7d12810c93bd5b0342/RustPython/RustPython/pull/5049
og:image:altDon'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 t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyouknowone
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-cache
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/5049/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F5049%2Fcommits
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F5049%2Fcommits
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/5049/commits
Reloadhttps://github.com/RustPython/RustPython/pull/5049/commits
Reloadhttps://github.com/RustPython/RustPython/pull/5049/commits
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests144 (144)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
https://github.com/RustPython/RustPython
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:import-encodingshttps://github.com/youknowone/RustPython/tree/import-encodings
Conversationhttps://github.com/RustPython/RustPython/pull/5049
Commits8 (8)https://github.com/RustPython/RustPython/pull/5049/commits
Checkshttps://github.com/RustPython/RustPython/pull/5049/checks
Files changedhttps://github.com/RustPython/RustPython/pull/5049/files
Fix encodings related error messages to be less confusinghttps://github.com/RustPython/RustPython/pull/5049/commits#top
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowone:import-encodingshttps://github.com/youknowone/RustPython/tree/import-encodings
Move cwd setup to interpreter codehttps://github.com/RustPython/RustPython/pull/5049/commits/7aea958306e3c0a64abb0e4284ffbc7d70da7054
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
7aea958https://github.com/RustPython/RustPython/pull/5049/commits/7aea958306e3c0a64abb0e4284ffbc7d70da7054
https://github.com/RustPython/RustPython/tree/7aea958306e3c0a64abb0e4284ffbc7d70da7054
rework import encodings failure messagehttps://github.com/RustPython/RustPython/pull/5049/commits/159c3a7913cc0dfc8c8f694a96c821f2aa473425
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
159c3a7https://github.com/RustPython/RustPython/pull/5049/commits/159c3a7913cc0dfc8c8f694a96c821f2aa473425
https://github.com/RustPython/RustPython/tree/159c3a7913cc0dfc8c8f694a96c821f2aa473425
try import_encodings only when `path_list` is sethttps://github.com/RustPython/RustPython/pull/5049/commits/e970ff8e569c115f9f40692b616b45a3dc4a6169
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
e970ff8https://github.com/RustPython/RustPython/pull/5049/commits/e970ff8e569c115f9f40692b616b45a3dc4a6169
https://github.com/RustPython/RustPython/tree/e970ff8e569c115f9f40692b616b45a3dc4a6169
Fix grammarshttps://github.com/RustPython/RustPython/pull/5049/commits/9b8f9f6b4eb98b8565b63bec4ec7dedbda0cd82b
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
fanninpmhttps://github.com/RustPython/RustPython/commits?author=fanninpm
9b8f9f6https://github.com/RustPython/RustPython/pull/5049/commits/9b8f9f6b4eb98b8565b63bec4ec7dedbda0cd82b
https://github.com/RustPython/RustPython/tree/9b8f9f6b4eb98b8565b63bec4ec7dedbda0cd82b
std::mem::take instead of drain(..).collect()https://github.com/RustPython/RustPython/pull/5049/commits/0f3fa4b96193bdfdda63c4bd12e38346da24d96a
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
0f3fa4bhttps://github.com/RustPython/RustPython/pull/5049/commits/0f3fa4b96193bdfdda63c4bd12e38346da24d96a
https://github.com/RustPython/RustPython/tree/0f3fa4b96193bdfdda63c4bd12e38346da24d96a
Add empty path_list warnings to import_encodingshttps://github.com/RustPython/RustPython/pull/5049/commits/dae977d1245504442bfa43a5f249fe9e3f4aa120
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
dae977dhttps://github.com/RustPython/RustPython/pull/5049/commits/dae977d1245504442bfa43a5f249fe9e3f4aa120
https://github.com/RustPython/RustPython/tree/dae977d1245504442bfa43a5f249fe9e3f4aa120
Prepend current working directory when !safe_pathhttps://github.com/RustPython/RustPython/pull/5049/commits/3fa877321488e1c1b119457a3cce707733858cfb
https://github.com/youknowone
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
3fa8773https://github.com/RustPython/RustPython/pull/5049/commits/3fa877321488e1c1b119457a3cce707733858cfb
https://github.com/RustPython/RustPython/tree/3fa877321488e1c1b119457a3cce707733858cfb
Apply suggestions from code reviewhttps://github.com/RustPython/RustPython/pull/5049/commits/d587fb71231ab0dd64b250b0b91ffe0a2552d2ae
youknowonehttps://github.com/RustPython/RustPython/commits?author=youknowone
fanninpmhttps://github.com/RustPython/RustPython/commits?author=fanninpm
d587fb7https://github.com/RustPython/RustPython/pull/5049/commits/d587fb71231ab0dd64b250b0b91ffe0a2552d2ae
https://github.com/RustPython/RustPython/tree/d587fb71231ab0dd64b250b0b91ffe0a2552d2ae
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.