-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-131591: Implement PEP 768 #131937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
gh-131591: Implement PEP 768 #131937
Changes from all commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
6f6b4cd
gh-131591: Implement PEP 768
pablogsal 9b86022
Add tests and use io.open_code
pablogsal af84100
Some fixes
pablogsal 19ef7ae
Prepare for windows support
pablogsal 444453c
Update windows files
pablogsal 1d3ad3c
Fix syntax error
ivonastojanovic eeec1f6
Merge pull request #97 from ivonastojanovic/fix_windows_files
pablogsal fd993e3
Locate PyRuntime on Windows
ivonastojanovic 96798c3
Read process memory on Windows
ivonastojanovic 075ca65
Write to process memory on Windows
ivonastojanovic 45e73c5
Prevent attaching to a process with a different architecture
ivonastojanovic ed2f325
Revert "Prevent attaching to a process with a different architecture"
godlygeek 6076548
Merge pull request #98 from ivonastojanovic/external_debugger_windows…
godlygeek a9d3ea9
Remove unused struct member
godlygeek e235e62
Set an explicit size for a struct member
godlygeek d51dda0
Revert an accidental whitespace change
godlygeek 38a4d51
Factor running a debugger script into a helper function
godlygeek a98898d
Harden remote debugging integration
godlygeek 997b557
Use _fdopen to open the debugger script on Windows
godlygeek f6dec59
Ensure the debugger script is always closed
godlygeek d273c5b
Fix incorrect docstring
godlygeek c9a2146
Document restrictions for remote_exec
godlygeek 4af1744
Simplify handling of Windows paths
godlygeek 5c0b8b9
Make remote_exec accept `bytes` paths
godlygeek c8779cd
Refactor to avoid duplicate error handling
godlygeek 6889042
Check for debug offset compatibility before using the offsets
godlygeek 7f7aa8b
Give a some variables shorter names
godlygeek fbecfdb
Have read_memory/write_memory return 0 on success
godlygeek fa98f64
Improve an error message
godlygeek 5b4cb00
Remove a debugging printf
godlygeek 0dd7797
Fix a remote read to use the correct type
godlygeek b8a0503
Improve the error message when we can't find the requested thread
godlygeek 9344d1d
Remove a useless check
godlygeek 9368d38
Only accept a flag of 1 to mean remote debugging is enabled
godlygeek 166f4d6
Merge remote-tracking branch 'upstream/main'
pablogsal d253966
Lint
pablogsal 8e04fdd
simplify socket handling
pablogsal 0c2b275
Add NEWS entry
pablogsal 80856d3
Add more docs
pablogsal f01d8d3
Small fixes
pablogsal cca28c5
Small fixes
pablogsal 727a02f
windows fix
pablogsal 6ec528c
fix windows warnings
pablogsal f7e3963
Go back to previous test socket handling
pablogsal 40bda7c
Fix docs lint
pablogsal 780561b
Add defined(__FreeBSD__)
pablogsal 2ab5d70
Small fixes
pablogsal 3a5f004
windows fix
pablogsal 6346063
Update 3.14.rst
pablogsal b442b1c
Update sys.rst
pablogsal 3a4ed23
Address doc review
pablogsal 8514d6e
Fix WASI
pablogsal 72d3ece
whooopsy
pablogsal 9130bb8
Fixes
pablogsal 373d4c4
Update Doc/whatsnew/3.14.rst
pablogsal bccc8a8
Update Doc/using/configure.rst
pablogsal 90ab65f
Fixes
pablogsal ffd340f
Address code review
pablogsal 247e753
Apply suggestions from code review
pablogsal 3c4c41c
Update Doc/library/sys.rst
pablogsal 18c2e64
lint
pablogsal 139b234
address code review from Steve
pablogsal 4306a73
Merge remote-tracking branch 'upstream/main' into pep-768
pablogsal 35003a8
Merge remote-tracking branch 'upstream/main' into pep-768
pablogsal 80fab75
Use PyUnicode_FSDecoder instead of os.fsdecode
godlygeek 0905105
Clean up #includes in remote_debugging.c
godlygeek 8db68e3
Mark (read|write)_memory unreachable on platforms w/o remote debugging
godlygeek 25cc486
Add error code to exception when failing to write memory on macOS
godlygeek 0557de0
Fix the size for one of our remote reads
godlygeek 6dd7530
Move reading eval_breaker closer to where it's written
godlygeek 7c340e1
Merge remote-tracking branch 'upstream/main' into pep-768
pablogsal 9096375
Handle arbitrarily long paths in /proc/<PID>/maps
godlygeek 6516356
Ensure we munmap before closing the fd
godlygeek e6cb8fb
Merge branch 'main' into pep-768
pablogsal 8b3ffa9
Update Doc/whatsnew/3.14.rst
pablogsal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.