Skip to content

[struct] Add struct.pack and struct.unpack polyfills#156977

Closed
guilhermeleobas wants to merge 6 commits intogh/guilhermeleobas/190/basefrom
gh/guilhermeleobas/190/head
Closed

[struct] Add struct.pack and struct.unpack polyfills#156977
guilhermeleobas wants to merge 6 commits intogh/guilhermeleobas/190/basefrom
gh/guilhermeleobas/190/head

Conversation

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Jun 26, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/156977

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit b578fe9 with merge base 1b772de (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

[ghstack-poisoned]
guilhermeleobas added a commit that referenced this pull request Jul 8, 2025
@guilhermeleobas guilhermeleobas marked this pull request as ready for review July 8, 2025 22:13
[ghstack-poisoned]
guilhermeleobas added a commit that referenced this pull request Jul 8, 2025
@XuehaiPan XuehaiPan requested a review from jansel July 9, 2025 00:29


@substitute_in_graph(struct.pack, can_constant_fold_through=True) # type: ignore[arg-type]
def pack(fmt: Union[bytes, str], /, *v: Any) -> bytes:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def pack(fmt: Union[bytes, str], /, *v: Any) -> bytes:
def pack(fmt: str | bytes, /, *v: Any) -> bytes:

[ghstack-poisoned]
guilhermeleobas added a commit that referenced this pull request Jul 10, 2025
[ghstack-poisoned]
[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #156976

pytorchmergebot pushed a commit that referenced this pull request Jul 23, 2025
Pull Request resolved: #156976
Approved by: https://github.com/zou3519
ghstack dependencies: #156975, #156977
@github-actions github-actions bot deleted the gh/guilhermeleobas/190/head branch August 23, 2025 02:12
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.

5 participants