René's URL Explorer Experiment


Title: os.listdir can return byte strings · Issue #47437 · python/cpython · GitHub

Open Graph Title: os.listdir can return byte strings · Issue #47437 · python/cpython

X Title: os.listdir can return byte strings · Issue #47437 · python/cpython

Description: BPO 3187 Nosy @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc Files posix_path_bytes.patch: Patch posixpath.join() to support bytesio_byte_filename.patch: open() allows bytes filenamefnmatch_bytes.patch...

Open Graph Description: BPO 3187 Nosy @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc Files posix_path_bytes.patch: Patch posixpath.join() to support bytesio_byte_filename.patch: open() ...

X Description: BPO 3187 Nosy @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc Files posix_path_bytes.patch: Patch posixpath.join() to support bytesio_byte_filename.patch: open() ...

Opengraph URL: https://github.com/python/cpython/issues/47437

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"os.listdir can return byte strings","articleBody":"BPO | [3187](https://bugs.python.org/issue3187)\n--- | :---\nNosy | @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc\nFiles | \u003cli\u003e[posix_path_bytes.patch](https://bugs.python.org/file11212/posix_path_bytes.patch \"Uploaded as text/plain at 2008-08-22.15:19:39 by @vstinner\"): Patch posixpath.join() to support bytes\u003c/li\u003e\u003cli\u003e[io_byte_filename.patch](https://bugs.python.org/file11213/io_byte_filename.patch \"Uploaded as text/plain at 2008-08-22.15:33:58 by @vstinner\"): open() allows bytes filename\u003c/li\u003e\u003cli\u003e[fnmatch_bytes.patch](https://bugs.python.org/file11215/fnmatch_bytes.patch \"Uploaded as text/plain at 2008-08-22.16:53:48 by @vstinner\"): Patch fnmatch.filter() to accept bytes filenames\u003c/li\u003e\u003cli\u003e[glob1_bytes.patch](https://bugs.python.org/file11216/glob1_bytes.patch \"Uploaded as text/plain at 2008-08-22.16:54:49 by @vstinner\"): Fix glob.glob() to accept invalid directory name\u003c/li\u003e\u003cli\u003e[listdir_encoding_warning.patch](https://bugs.python.org/file11549/listdir_encoding_warning.patch \"Uploaded as text/plain at 2008-09-21.23:48:14 by @benjaminp\")\u003c/li\u003e\u003cli\u003e[warn_at_the_end.patch](https://bugs.python.org/file11550/warn_at_the_end.patch \"Uploaded as text/plain at 2008-09-21.23:48:36 by @benjaminp\")\u003c/li\u003e\u003cli\u003e[raise_decoding_errors.patch](https://bugs.python.org/file11581/raise_decoding_errors.patch \"Uploaded as text/plain at 2008-09-23.23:05:40 by @benjaminp\")\u003c/li\u003e\u003cli\u003e[force_unicode.patch](https://bugs.python.org/file11630/force_unicode.patch \"Uploaded as text/plain at 2008-09-27.00:48:24 by @benjaminp\")\u003c/li\u003e\u003cli\u003e[getcwd_bytes.patch](https://bugs.python.org/file11632/getcwd_bytes.patch \"Uploaded as text/plain at 2008-09-27.14:50:29 by @vstinner\"): getcwd() returns bytes if unicode conversion fails\u003c/li\u003e\u003cli\u003e[merge_os_getcwd_getcwdu.patch](https://bugs.python.org/file11652/merge_os_getcwd_getcwdu.patch \"Uploaded as text/plain at 2008-09-29.12:51:31 by @vstinner\"): Remove os.getcwdu(); os.getcwd(bytes=True) returns bytes\u003c/li\u003e\u003cli\u003e[os_getcwdb.patch](https://bugs.python.org/file11655/os_getcwdb.patch \"Uploaded as text/plain at 2008-09-29.15:58:45 by @vstinner\"): Fix getcwd() (use PyUnicode_Decode) and create getcwdb()-\u003ebytes\u003c/li\u003e\u003cli\u003e[python3_bytes_filename.patch](https://bugs.python.org/file11658/python3_bytes_filename.patch \"Uploaded as text/plain at 2008-09-30.01:08:09 by @vstinner\"): Patch for an initial support of bytes filename in Python3\u003c/li\u003e\u003cli\u003e[setfsenc.diff](https://bugs.python.org/file11663/setfsenc.diff \"Uploaded as text/plain at 2008-09-30.15:21:14 by @loewis\")\u003c/li\u003e\u003cli\u003e[python3_bytes_filename-3.patch](https://bugs.python.org/file11680/python3_bytes_filename-3.patch \"Uploaded as text/plain at 2008-10-02.17:10:44 by @vstinner\"): Patch for an initial support of bytes filename in Python3 (version 3)\u003c/li\u003e\u003cli\u003e[win32-bytes-filenames.patch](https://bugs.python.org/file11685/win32-bytes-filenames.patch \"Uploaded as text/plain at 2008-10-03.01:45:39 by @amauryfa\")\u003c/li\u003e\u003cli\u003e[macpath.patch](https://bugs.python.org/file11693/macpath.patch \"Uploaded as text/plain at 2008-10-03.21:21:22 by @amauryfa\")\u003c/li\u003e\u003cli\u003e[library_os_doc.patch](https://bugs.python.org/file11721/library_os_doc.patch \"Uploaded as text/plain at 2008-10-06.23:34:56 by @vstinner\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = 'https://github.com/birkenfeld'\nclosed_at = \u003cDate 2008-10-07.07:12:42.880\u003e\ncreated_at = \u003cDate 2008-06-24.10:28:25.633\u003e\nlabels = ['type-bug', 'docs']\ntitle = 'os.listdir can return byte strings'\nupdated_at = \u003cDate 2008-10-07.07:12:42.879\u003e\nuser = 'https://bugs.python.org/HWJ'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2008-10-07.07:12:42.879\u003e\nactor = 'loewis'\nassignee = 'georg.brandl'\nclosed = True\nclosed_date = \u003cDate 2008-10-07.07:12:42.880\u003e\ncloser = 'loewis'\ncomponents = ['Documentation']\ncreation = \u003cDate 2008-06-24.10:28:25.633\u003e\ncreator = 'HWJ'\ndependencies = []\nfiles = ['11212', '11213', '11215', '11216', '11549', '11550', '11581', '11630', '11632', '11652', '11655', '11658', '11663', '11680', '11685', '11693', '11721']\nhgrepos = []\nissue_num = 3187\nkeywords = ['patch']\nmessage_count = 79.0\nmessages = ['68674', '68679', '68684', '68685', '68686', '68688', '68689', '70943', '70953', '71525', '71612', '71615', '71624', '71629', '71647', '71648', '71655', '71680', '71699', '71700', '71705', '71748', '71749', '71751', '71752', '71756', '71757', '71769', '71991', '72495', '73362', '73534', '73535', '73540', '73678', '73680', '73688', '73909', '73910', '73911', '73925', '73926', '73992', '73999', '74000', '74006', '74007', '74008', '74027', '74032', '74059', '74080', '74083', '74101', '74173', '74186', '74192', '74222', '74236', '74237', '74240', '74241', '74242', '74246', '74255', '74256', '74257', '74266', '74267', '74268', '74270', '74271', '74275', '74276', '74277', '74409', '74412', '74414', '74426']\nnosy_count = 13.0\nnosy_names = ['gvanrossum', 'loewis', 'georg.brandl', 'amaury.forgeotdarc', 'pitrou', 'vstinner', 'draghuram', 'benjamin.peterson', 'djc', 'HWJ', 'dlitz', 'zegreek', 'bboissin']\npr_nums = []\npriority = 'critical'\nresolution = 'accepted'\nstage = None\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue3187'\nversions = ['Python 3.0']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/HWJ","@type":"Person","name":"HWJ"},"datePublished":"2008-06-24T10:28:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":79},"url":"https://github.com/47437/cpython/issues/47437"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a5111457-51c8-eb96-a021-ea212e1d43c5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD17E:2CEF06:77860:9C6E6:6A4D7A10
html-safe-noncee20f6be65dde23a83488ab285a807c74ddf9b11135a239d72f3efd39e3011d24
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTdFOjJDRUYwNjo3Nzg2MDo5QzZFNjo2QTREN0ExMCIsInZpc2l0b3JfaWQiOiI4NTkzOTIxMDI2NjgwMDc5NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4791c92376b2573ff7a6f76f3ed4e3bb8ccdd5114b9ed13d0e88bb20028c9168
hovercard-subject-tagissue:1198832964
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/47437/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ae43499b78c817d6acb622c64cc81531b06f2f53411e346e7357281df8eea9a3/python/cpython/issues/47437
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ae43499b78c817d6acb622c64cc81531b06f2f53411e346e7357281df8eea9a3/python/cpython/issues/47437
og:image:altBPO 3187 Nosy @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc Files posix_path_bytes.patch: Patch posixpath.join() to support bytesio_byte_filename.patch: open() ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameHWJ
hostnamegithub.com
expected-hostnamegithub.com
None7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
release8608b0750fc35e283e5ec5b094bff942d7a0e197
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/47437#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F47437
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F47437
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/47437
Reloadhttps://github.com/python/cpython/issues/47437
Reloadhttps://github.com/python/cpython/issues/47437
Please reload this pagehttps://github.com/python/cpython/issues/47437
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/47437
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
os.listdir can return byte stringshttps://github.com/python/cpython/issues/47437#top
https://github.com/birkenfeld
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Jun 24, 2008https://github.com/python/cpython/issues/47437#issue-1198832964
3187https://bugs.python.org/issue3187
@gvanrossumhttps://github.com/gvanrossum
@loewishttps://github.com/loewis
@birkenfeldhttps://github.com/birkenfeld
@amauryfahttps://github.com/amauryfa
@pitrouhttps://github.com/pitrou
@vstinnerhttps://github.com/vstinner
@benjaminphttps://github.com/benjaminp
@djchttps://github.com/djc
posix_path_bytes.patchhttps://bugs.python.org/file11212/posix_path_bytes.patch
io_byte_filename.patchhttps://bugs.python.org/file11213/io_byte_filename.patch
fnmatch_bytes.patchhttps://bugs.python.org/file11215/fnmatch_bytes.patch
glob1_bytes.patchhttps://bugs.python.org/file11216/glob1_bytes.patch
listdir_encoding_warning.patchhttps://bugs.python.org/file11549/listdir_encoding_warning.patch
warn_at_the_end.patchhttps://bugs.python.org/file11550/warn_at_the_end.patch
raise_decoding_errors.patchhttps://bugs.python.org/file11581/raise_decoding_errors.patch
force_unicode.patchhttps://bugs.python.org/file11630/force_unicode.patch
getcwd_bytes.patchhttps://bugs.python.org/file11632/getcwd_bytes.patch
merge_os_getcwd_getcwdu.patchhttps://bugs.python.org/file11652/merge_os_getcwd_getcwdu.patch
os_getcwdb.patchhttps://bugs.python.org/file11655/os_getcwdb.patch
python3_bytes_filename.patchhttps://bugs.python.org/file11658/python3_bytes_filename.patch
setfsenc.diffhttps://bugs.python.org/file11663/setfsenc.diff
python3_bytes_filename-3.patchhttps://bugs.python.org/file11680/python3_bytes_filename-3.patch
win32-bytes-filenames.patchhttps://bugs.python.org/file11685/win32-bytes-filenames.patch
macpath.patchhttps://bugs.python.org/file11693/macpath.patch
library_os_doc.patchhttps://bugs.python.org/file11721/library_os_doc.patch
birkenfeldhttps://github.com/birkenfeld
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.