wdsmini 89e8341d87 fix(bytes): make bytes object iterable
Add __iter__ method to bytes type and implement bytes_iterator type.
This allows iterating over bytes objects to get individual byte values
as integers (0-255), matching Python's behavior.

Changes:
- include/pocketpy/objects/iterator.h: Add bytes_iterator struct
- include/pocketpy/pocketpy.h: Add tp_bytes_iterator type constant
- include/pocketpy/interpreter/vm.h: Declare pk_bytes_iterator__register
- src/bindings/py_str.c: Implement bytes__iter__ and bytes_iterator__next__
- src/interpreter/vm.c: Register bytes_iterator type

Fixes #450
2026-03-20 11:28:08 +08:00
..
2026-01-06 14:09:11 +08:00
2026-02-23 00:35:00 +08:00
2025-06-07 01:34:15 +08:00