Skip to content

Commit 6782fa2

Browse files
authored
ctypes buffer (#6311)
* Fix array * from buffer * AsBuffer * Fix instruction * constructable pointer * thunk * in_dll * fix sizeof/alignment
1 parent e5aec9d commit 6782fa2

File tree

13 files changed

+2721
-195
lines changed

13 files changed

+2721
-195
lines changed

.cspell.dict/cpython.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ stackdepth
5050
stringlib
5151
structseq
5252
subparams
53+
swappedbytes
5354
ticketer
5455
tok_oldval
5556
tvars

.github/copilot-instructions.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cargo run -- script.py
4444
cargo run
4545

4646
# With specific features
47-
cargo run --features ssl
47+
cargo run --features jit
4848

4949
# Release mode (recommended for better performance)
5050
cargo run --release -- script.py
@@ -176,13 +176,6 @@ cargo build --target wasm32-wasip1 --no-default-features --features freeze-stdli
176176
cargo run --features jit
177177
```
178178

179-
### SSL Support
180-
181-
```bash
182-
# Enable SSL support
183-
cargo run --features ssl
184-
```
185-
186179
## Test Code Modification Rules
187180

188181
**CRITICAL: Test code modification restrictions**

Lib/ctypes/wintypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The most useful windows datatypes
22
import ctypes
33

4-
BYTE = ctypes.c_byte
4+
BYTE = ctypes.c_ubyte
55
WORD = ctypes.c_ushort
66
DWORD = ctypes.c_ulong
77

0 commit comments

Comments
 (0)