René's URL Explorer Experiment


Title: bpo-18236: Adjust str.isspace to use Unicode's White_Space property. by gnprice · Pull Request #16254 · python/cpython · GitHub

Open Graph Title: bpo-18236: Adjust str.isspace to use Unicode's White_Space property. by gnprice · Pull Request #16254 · python/cpython

X Title: bpo-18236: Adjust str.isspace to use Unicode's White_Space property. by gnprice · Pull Request #16254 · python/cpython

Description: When Unicode support was first added to Python, there was no Unicode property identifying whitespace, so we approximated it by putting together a couple of other properties. Now there is a White_Space property, so let's use it. Happily, the difference from our original approximation is only in the four rare control characters 001C..001F. As a bonus, isspace now joins all similar methods in giving exactly matching results for ASCII characters represented as str or as bytes. Add a test for that nice property. https://bugs.python.org/issue18236

Open Graph Description: When Unicode support was first added to Python, there was no Unicode property identifying whitespace, so we approximated it by putting together a couple of other properties. Now there is a White_Sp...

X Description: When Unicode support was first added to Python, there was no Unicode property identifying whitespace, so we approximated it by putting together a couple of other properties. Now there is a White_Sp...

Opengraph URL: https://github.com/python/cpython/pull/16254

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3ffd0fbb-1d58-0def-7fbe-2daaad1093b6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDFD0:14BE27:9E61C9:D9DCF2:6A5134BE
html-safe-noncee40889d816bd70e72d5b7b2e526af376137749a26b83b3ab941d01c3b81fd6e0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkQwOjE0QkUyNzo5RTYxQzk6RDlEQ0YyOjZBNTEzNEJFIiwidmlzaXRvcl9pZCI6IjcwNTQ3NzEzOTM2NTM3MTYxNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf5a365ad5626f3923cd69db61cd5b430498b78256c33db9f02850d0ba3d0600f
hovercard-subject-tagpull_request:318642043
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/16254/files
twitter:imagehttps://avatars.githubusercontent.com/u/28173?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/28173?s=400&v=4
og:image:altWhen Unicode support was first added to Python, there was no Unicode property identifying whitespace, so we approximated it by putting together a couple of other properties. Now there is a White_Sp...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4ae6027e8ba70c79dc08249bb6cdc1a09d788496
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/16254/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F16254%2Ffiles
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2Fpull%2F16254%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/16254/files
Reloadhttps://github.com/python/cpython/pull/16254/files
Reloadhttps://github.com/python/cpython/pull/16254/files
Please reload this pagehttps://github.com/python/cpython/pull/16254/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/16254/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
gnpricehttps://github.com/gnprice
python:mainhttps://github.com/python/cpython/tree/main
gnprice:pr-whitespacehttps://github.com/gnprice/cpython/tree/pr-whitespace
Conversation 3 https://github.com/python/cpython/pull/16254
Commits 1 https://github.com/python/cpython/pull/16254/commits
Checks 0 https://github.com/python/cpython/pull/16254/checks
Files changed https://github.com/python/cpython/pull/16254/files
Please reload this pagehttps://github.com/python/cpython/pull/16254/files
bpo-18236: Adjust str.isspace to use Unicode's White_Space property. https://github.com/python/cpython/pull/16254/files#top
Show all changes 1 commit https://github.com/python/cpython/pull/16254/files
c8188a5 bpo-18236: Adjust str.isspace to use Unicode's White_Space property. gnprice Aug 4, 2019 https://github.com/python/cpython/pull/16254/commits/c8188a51d4e1c3cfefacc8be3bb3b792445a0216
Clear filters https://github.com/python/cpython/pull/16254/files
Please reload this pagehttps://github.com/python/cpython/pull/16254/files
Please reload this pagehttps://github.com/python/cpython/pull/16254/files
stdtypes.rst https://github.com/python/cpython/pull/16254/files#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3
string_tests.py https://github.com/python/cpython/pull/16254/files#diff-7d8595e2ffcdcbf3222473c387d3f3da8344cfccd6e460dba3e726d2220ab0a7
test_unicode.py https://github.com/python/cpython/pull/16254/files#diff-5a2c8275f700073cdc5d4e1b818ec472bb0230210b9c99eac0bdc9e0a2949f41
test_unicodedata.py https://github.com/python/cpython/pull/16254/files#diff-c31ff7b8fca97de6b4fdaca3e14da27ab3cac411653e9c510a5378b189f909ea
2019-08-07-21-30-13.bpo-18236.YtYsEp.rst https://github.com/python/cpython/pull/16254/files#diff-814bdb55d558e45e85957e4529b3dccb692a84d41237fcb9a19b258876939b02
unicodeobject.c https://github.com/python/cpython/pull/16254/files#diff-34c966e7876d6f8bf801dd51896327e4f68bba02cddb95fbf3963f0b2e39c38a
unicodetype_db.h https://github.com/python/cpython/pull/16254/files#diff-4a48292eae5662155d9ac84d641b02cc3dc2c8c7d14a02e4dc46f1cc7e4dad70
makeunicodedata.py https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
Doc/library/stdtypes.rsthttps://github.com/python/cpython/pull/16254/files#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3
View file https://github.com/python/cpython/blob/c8188a51d4e1c3cfefacc8be3bb3b792445a0216/Doc/library/stdtypes.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16254/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16254/files#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3
https://github.com/python/cpython/pull/16254/files#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3
Lib/test/string_tests.pyhttps://github.com/python/cpython/pull/16254/files#diff-7d8595e2ffcdcbf3222473c387d3f3da8344cfccd6e460dba3e726d2220ab0a7
View file https://github.com/python/cpython/blob/c8188a51d4e1c3cfefacc8be3bb3b792445a0216/Lib/test/string_tests.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16254/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16254/files#diff-7d8595e2ffcdcbf3222473c387d3f3da8344cfccd6e460dba3e726d2220ab0a7
https://github.com/python/cpython/pull/16254/files#diff-7d8595e2ffcdcbf3222473c387d3f3da8344cfccd6e460dba3e726d2220ab0a7
Lib/test/test_unicode.pyhttps://github.com/python/cpython/pull/16254/files#diff-5a2c8275f700073cdc5d4e1b818ec472bb0230210b9c99eac0bdc9e0a2949f41
View file https://github.com/python/cpython/blob/c8188a51d4e1c3cfefacc8be3bb3b792445a0216/Lib/test/test_unicode.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16254/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16254/files#diff-5a2c8275f700073cdc5d4e1b818ec472bb0230210b9c99eac0bdc9e0a2949f41
Numerlorhttps://github.com/Numerlor
May 3, 2022https://github.com/python/cpython/pull/16254/files#r864062418
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/16254/files
https://github.com/python/cpython/pull/16254/files#diff-5a2c8275f700073cdc5d4e1b818ec472bb0230210b9c99eac0bdc9e0a2949f41
https://github.com/python/cpython/pull/16254/files#diff-5a2c8275f700073cdc5d4e1b818ec472bb0230210b9c99eac0bdc9e0a2949f41
https://github.com/python/cpython/pull/16254/files#diff-5a2c8275f700073cdc5d4e1b818ec472bb0230210b9c99eac0bdc9e0a2949f41
Lib/test/test_unicodedata.pyhttps://github.com/python/cpython/pull/16254/files#diff-c31ff7b8fca97de6b4fdaca3e14da27ab3cac411653e9c510a5378b189f909ea
View file https://github.com/python/cpython/blob/c8188a51d4e1c3cfefacc8be3bb3b792445a0216/Lib/test/test_unicodedata.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16254/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16254/files#diff-c31ff7b8fca97de6b4fdaca3e14da27ab3cac411653e9c510a5378b189f909ea
https://github.com/python/cpython/pull/16254/files#diff-c31ff7b8fca97de6b4fdaca3e14da27ab3cac411653e9c510a5378b189f909ea
Misc/NEWS.d/next/Core and Builtins/2019-08-07-21-30-13.bpo-18236.YtYsEp.rsthttps://github.com/python/cpython/pull/16254/files#diff-814bdb55d558e45e85957e4529b3dccb692a84d41237fcb9a19b258876939b02
View file https://github.com/python/cpython/blob/c8188a51d4e1c3cfefacc8be3bb3b792445a0216/Misc/NEWS.d/next/Core%20and%20Builtins/2019-08-07-21-30-13.bpo-18236.YtYsEp.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16254/{{ revealButtonHref }}
Objects/unicodeobject.chttps://github.com/python/cpython/pull/16254/files#diff-34c966e7876d6f8bf801dd51896327e4f68bba02cddb95fbf3963f0b2e39c38a
View file https://github.com/python/cpython/blob/c8188a51d4e1c3cfefacc8be3bb3b792445a0216/Objects/unicodeobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16254/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16254/files#diff-34c966e7876d6f8bf801dd51896327e4f68bba02cddb95fbf3963f0b2e39c38a
https://github.com/python/cpython/pull/16254/files#diff-34c966e7876d6f8bf801dd51896327e4f68bba02cddb95fbf3963f0b2e39c38a
Objects/unicodetype_db.hhttps://github.com/python/cpython/pull/16254/files#diff-4a48292eae5662155d9ac84d641b02cc3dc2c8c7d14a02e4dc46f1cc7e4dad70
View file https://github.com/python/cpython/blob/c8188a51d4e1c3cfefacc8be3bb3b792445a0216/Objects/unicodetype_db.h
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/python/cpython/pull/16254/files
Tools/unicode/makeunicodedata.pyhttps://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
View file https://github.com/python/cpython/blob/c8188a51d4e1c3cfefacc8be3bb3b792445a0216/Tools/unicode/makeunicodedata.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/16254/{{ revealButtonHref }}
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
https://github.com/python/cpython/pull/16254/files#diff-17ec60c9bf5044a66fffc2f5bd5b6c4a6df192332bd2762ddf4336a80f8f8f25
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.