FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-103092: Isolate _ctypes, part 1 by erlend-aasland · Pull Request #103893 · python/cpython · GitHub

/ cpython Public

gh-103092: Isolate _ctypes, part 1 - #103893

Merged
erlend-aasland merged 9 commits into
python:mainfrom
erlend-aasland:isolate-ctypes/part1
Apr 27, 2023
Merged

gh-103092: Isolate _ctypes, part 1#103893
erlend-aasland merged 9 commits into
python:mainfrom
erlend-aasland:isolate-ctypes/part1

Conversation

erlend-aasland commented Apr 26, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Low-hanging fruit: port the easy types

erlend-aasland added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Apr 27, 2023

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit a276753 🤖

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Apr 27, 2023
erlend-aasland merged commit e9c7772 into python:main Apr 27, 2023
erlend-aasland deleted the isolate-ctypes/part1 branch April 27, 2023 12:57

swt2c commented Jul 18, 2023

Copy link
Copy Markdown

Hi @erlend-aasland, as part of this, it seems that CArgObject moved from builtins to _ctypes. Just confirming that was intentional?

3.11:

>>> import ctypes
>>> type(ctypes.byref(ctypes.c_int(0)))
<class 'CArgObject'>

3.12

>>> import ctypes
>>> type(ctypes.byref(ctypes.c_int(0)))
<class '_ctypes.CArgObject'>

erlend-aasland commented Jul 18, 2023
edited
Loading

Copy link
Copy Markdown
Contributor Author

CArgsObject still belongs to ctypes, just as it does in 3.11. What changed was its fully qualified name only. That change is deliberate because it is needed to be able to look up the module the heap type belongs to.

EDIT: Thinking about it, I think the last sentence I wrote above is not right; I'm pretty sure module lookup would work anyways (but I don't intend to pursue this right now).

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL