René's URL Explorer Experiment


Title: [3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443) by serhiy-storchaka · Pull Request #2448 · python/cpython · GitHub

Open Graph Title: [3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443) by serhiy-storchaka · Pull Request #2448 · python/cpython

X Title: [3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443) by serhiy-storchaka · Pull Request #2448 · python/cpython

Description: And use it instead of PyUnicode_AsWideCharString() if appropriate. _PyUnicode_AsWideCharString(unicode) is like PyUnicode_AsWideCharString(unicode, NULL), but raises a ValueError if the wchar_t* string contains null characters. (cherry picked from commit e613e6a). (cherry picked from commit 0edffa3)

Open Graph Description: And use it instead of PyUnicode_AsWideCharString() if appropriate. _PyUnicode_AsWideCharString(unicode) is like PyUnicode_AsWideCharString(unicode, NULL), but raises a ValueError if the wchar_t* st...

X Description: And use it instead of PyUnicode_AsWideCharString() if appropriate. _PyUnicode_AsWideCharString(unicode) is like PyUnicode_AsWideCharString(unicode, NULL), but raises a ValueError if the wchar_t* st...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5b72973e-b6b9-b349-ee8c-e78c5f795750
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idED5E:3FCE56:457DC0F:61F7FE7:6A56E2A9
html-safe-nonce4767c1e8637ef3987d11bd70a326677949a71e9c30a5d80db0ba1dc2df67f564
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDVFOjNGQ0U1Njo0NTdEQzBGOjYxRjdGRTc6NkE1NkUyQTkiLCJ2aXNpdG9yX2lkIjoiNjQwNjAzNzQwOTg4OTcwNjY2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4229243e930231a3b925cf64db01d1658a188b3a41d6f6ae51a8245784d1bfb1
hovercard-subject-tagpull_request:127759054
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/2448/files
twitter:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
og:image:altAnd use it instead of PyUnicode_AsWideCharString() if appropriate. _PyUnicode_AsWideCharString(unicode) is like PyUnicode_AsWideCharString(unicode, NULL), but raises a ValueError if the wchar_t* st...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5220a278731283038daf0ed00b41f06ef7ff9539020ecc806c5c5a0fb6bda25a
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
release8684ae1a81cd3e4ef219b241179982bbda1a5b1f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/2448/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F2448%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%2F2448%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/2448/files
Reloadhttps://github.com/python/cpython/pull/2448/files
Reloadhttps://github.com/python/cpython/pull/2448/files
Please reload this pagehttps://github.com/python/cpython/pull/2448/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/2448/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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
serhiy-storchakahttps://github.com/serhiy-storchaka
python:3.5https://github.com/python/cpython/tree/3.5
serhiy-storchaka:backport-0edffa3-3.5https://github.com/serhiy-storchaka/cpython/tree/backport-0edffa3-3.5
Conversation 0 https://github.com/python/cpython/pull/2448
Commits 1 https://github.com/python/cpython/pull/2448/commits
Checks 0 https://github.com/python/cpython/pull/2448/checks
Files changed https://github.com/python/cpython/pull/2448/files
Please reload this pagehttps://github.com/python/cpython/pull/2448/files
[3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443) https://github.com/python/cpython/pull/2448/files#top
Show all changes 1 commit https://github.com/python/cpython/pull/2448/files
7217eb5 [3.5] [3.6] bpo-30708: Check for null characters in PyUnicode_AsWideC… serhiy-storchaka Jun 27, 2017 https://github.com/python/cpython/pull/2448/commits/7217eb5a611983e480e604a98e48f6a6803eaa96
Clear filters https://github.com/python/cpython/pull/2448/files
Please reload this pagehttps://github.com/python/cpython/pull/2448/files
Please reload this pagehttps://github.com/python/cpython/pull/2448/files
unicodeobject.h https://github.com/python/cpython/pull/2448/files#diff-c0f9841e1752b5b8cd245fb5980c0efadf5bef986262d6a38ed33b5d74f57cfd
test_slicing.py https://github.com/python/cpython/pull/2448/files#diff-02909a7bf7233b173ae2f9995b9dfdcaf8816d94c33c909f8de3d814e832dea7
callproc.c https://github.com/python/cpython/pull/2448/files#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
cfield.c https://github.com/python/cpython/pull/2448/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
_cursesmodule.c https://github.com/python/cpython/pull/2448/files#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
_localemodule.c https://github.com/python/cpython/pull/2448/files#diff-68d4a50f88ce330d08190024a328c2d0fc25b94a3d864796e590a34849450cc0
_tkinter.c https://github.com/python/cpython/pull/2448/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd
overlapped.c https://github.com/python/cpython/pull/2448/files#diff-c2b25616ea65bee7385cf794c70c41497c8953b56ceb9eed382fb1cb2ca799c2
timemodule.c https://github.com/python/cpython/pull/2448/files#diff-5b4563bfeddc3e20890eada5c8aa651b107a05a0ca8008ae839b86e67897e679
unicodeobject.c https://github.com/python/cpython/pull/2448/files#diff-34c966e7876d6f8bf801dd51896327e4f68bba02cddb95fbf3963f0b2e39c38a
Include/unicodeobject.hhttps://github.com/python/cpython/pull/2448/files#diff-c0f9841e1752b5b8cd245fb5980c0efadf5bef986262d6a38ed33b5d74f57cfd
View file https://github.com/serhiy-storchaka/cpython/blob/7217eb5a611983e480e604a98e48f6a6803eaa96/Include/unicodeobject.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/2448/{{ revealButtonHref }}
https://github.com/python/cpython/pull/2448/files#diff-c0f9841e1752b5b8cd245fb5980c0efadf5bef986262d6a38ed33b5d74f57cfd
https://github.com/python/cpython/pull/2448/files#diff-c0f9841e1752b5b8cd245fb5980c0efadf5bef986262d6a38ed33b5d74f57cfd
Lib/ctypes/test/test_slicing.pyhttps://github.com/python/cpython/pull/2448/files#diff-02909a7bf7233b173ae2f9995b9dfdcaf8816d94c33c909f8de3d814e832dea7
View file https://github.com/serhiy-storchaka/cpython/blob/7217eb5a611983e480e604a98e48f6a6803eaa96/Lib/ctypes/test/test_slicing.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/2448/{{ revealButtonHref }}
https://github.com/python/cpython/pull/2448/files#diff-02909a7bf7233b173ae2f9995b9dfdcaf8816d94c33c909f8de3d814e832dea7
https://github.com/python/cpython/pull/2448/files#diff-02909a7bf7233b173ae2f9995b9dfdcaf8816d94c33c909f8de3d814e832dea7
https://github.com/python/cpython/pull/2448/files#diff-02909a7bf7233b173ae2f9995b9dfdcaf8816d94c33c909f8de3d814e832dea7
Modules/_ctypes/callproc.chttps://github.com/python/cpython/pull/2448/files#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
View file https://github.com/serhiy-storchaka/cpython/blob/7217eb5a611983e480e604a98e48f6a6803eaa96/Modules/_ctypes/callproc.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/2448/{{ revealButtonHref }}
https://github.com/python/cpython/pull/2448/files#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
https://github.com/python/cpython/pull/2448/files#diff-4e23b3237d0aa08bf4c434d75fab19200a80837bd147051fefccd98b7f2480fa
Modules/_ctypes/cfield.chttps://github.com/python/cpython/pull/2448/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
View file https://github.com/serhiy-storchaka/cpython/blob/7217eb5a611983e480e604a98e48f6a6803eaa96/Modules/_ctypes/cfield.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/2448/{{ revealButtonHref }}
https://github.com/python/cpython/pull/2448/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
https://github.com/python/cpython/pull/2448/files#diff-2952ec5c776412a52a7a69a6cf735e480d7454e3862d2b8e02f34c927f600aa1
Modules/_cursesmodule.chttps://github.com/python/cpython/pull/2448/files#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
View file https://github.com/serhiy-storchaka/cpython/blob/7217eb5a611983e480e604a98e48f6a6803eaa96/Modules/_cursesmodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/2448/{{ revealButtonHref }}
https://github.com/python/cpython/pull/2448/files#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
https://github.com/python/cpython/pull/2448/files#diff-f77a12c8531c26a47799058e7b02fd9b43753a458b5ed1cefc6693685aa098ce
Modules/_localemodule.chttps://github.com/python/cpython/pull/2448/files#diff-68d4a50f88ce330d08190024a328c2d0fc25b94a3d864796e590a34849450cc0
View file https://github.com/serhiy-storchaka/cpython/blob/7217eb5a611983e480e604a98e48f6a6803eaa96/Modules/_localemodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/2448/{{ revealButtonHref }}
https://github.com/python/cpython/pull/2448/files#diff-68d4a50f88ce330d08190024a328c2d0fc25b94a3d864796e590a34849450cc0
https://github.com/python/cpython/pull/2448/files#diff-68d4a50f88ce330d08190024a328c2d0fc25b94a3d864796e590a34849450cc0
Modules/_tkinter.chttps://github.com/python/cpython/pull/2448/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd
View file https://github.com/serhiy-storchaka/cpython/blob/7217eb5a611983e480e604a98e48f6a6803eaa96/Modules/_tkinter.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/2448/{{ revealButtonHref }}
https://github.com/python/cpython/pull/2448/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd
https://github.com/python/cpython/pull/2448/files#diff-e22af16a12488bb5478ce31dcf26da13ba5a95e051b2440a740ab6bc4ab0c4fd
Modules/overlapped.chttps://github.com/python/cpython/pull/2448/files#diff-c2b25616ea65bee7385cf794c70c41497c8953b56ceb9eed382fb1cb2ca799c2
View file https://github.com/serhiy-storchaka/cpython/blob/7217eb5a611983e480e604a98e48f6a6803eaa96/Modules/overlapped.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/2448/{{ revealButtonHref }}
https://github.com/python/cpython/pull/2448/files#diff-c2b25616ea65bee7385cf794c70c41497c8953b56ceb9eed382fb1cb2ca799c2
https://github.com/python/cpython/pull/2448/files#diff-c2b25616ea65bee7385cf794c70c41497c8953b56ceb9eed382fb1cb2ca799c2
Modules/timemodule.chttps://github.com/python/cpython/pull/2448/files#diff-5b4563bfeddc3e20890eada5c8aa651b107a05a0ca8008ae839b86e67897e679
View file https://github.com/serhiy-storchaka/cpython/blob/7217eb5a611983e480e604a98e48f6a6803eaa96/Modules/timemodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/2448/{{ revealButtonHref }}
https://github.com/python/cpython/pull/2448/files#diff-5b4563bfeddc3e20890eada5c8aa651b107a05a0ca8008ae839b86e67897e679
https://github.com/python/cpython/pull/2448/files#diff-5b4563bfeddc3e20890eada5c8aa651b107a05a0ca8008ae839b86e67897e679
Objects/unicodeobject.chttps://github.com/python/cpython/pull/2448/files#diff-34c966e7876d6f8bf801dd51896327e4f68bba02cddb95fbf3963f0b2e39c38a
View file https://github.com/serhiy-storchaka/cpython/blob/7217eb5a611983e480e604a98e48f6a6803eaa96/Objects/unicodeobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/2448/{{ revealButtonHref }}
https://github.com/python/cpython/pull/2448/files#diff-34c966e7876d6f8bf801dd51896327e4f68bba02cddb95fbf3963f0b2e39c38a
https://github.com/python/cpython/pull/2448/files#diff-34c966e7876d6f8bf801dd51896327e4f68bba02cddb95fbf3963f0b2e39c38a
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.