Repository navigation
Conversation
| def python_type(self) -> type[builtins.sentinel]: | ||
| return self._cpython_type |
There was a problem hiding this comment.
we should unify _cpython_type and python_type.
|
Do you know if cpython migrated object() -> sentinel? If yes, we should migrate as well. |
It looks like some parts have, but not all. From the pep:
Claude identified dataclasses.MISSING as another place that started using sentinel, but that doesn't require any changes on dynamo's side. We could start migrating dynamo-internal sentinels, but I don't think it's worthwhile - since it's a new feature in 3.15 we'd need a fallback to object until 3.14 support is dropped, and the main advantage is a cleaner repr, which seems relatively minor to me |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: Merge rule check failed for stacked PR #188029: Approvers from one of the following sets are needed:
|
|
Starting merge as part of PR stack under #190312 |
1 similar comment
|
Starting merge as part of PR stack under #190312 |
Fix pygen_yf to account for virtual iterators in python 3.15 Pull Request resolved: #190312 Approved by: https://github.com/Skylion007 ghstack dependencies: #188029, #189592
This reverts commit 7ac8666. Reverted #189592 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#188029 (comment)))
This adds support for sentinels created outside of the compiled region and basic operations on them (identity comparsion and attribute access). Creating sentinels, as well as other operations, are not supported yet. This is the minimal amount of support needed for pytorch#185682 Generated with AI assistance Pull Request resolved: pytorch#189592 Approved by: https://github.com/guilhermeleobas ghstack dependencies: pytorch#188029
Fix pygen_yf to account for virtual iterators in python 3.15 Pull Request resolved: pytorch#190312 Approved by: https://github.com/Skylion007 ghstack dependencies: pytorch#188029, pytorch#189592
This reverts commit 7ac8666. Reverted pytorch#189592 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#188029 (comment)))
|
Starting merge as part of PR stack under #190312 |
Fix pygen_yf to account for virtual iterators in python 3.15 Pull Request resolved: #190312 Approved by: https://github.com/Skylion007 ghstack dependencies: #188029, #189592
This adds support for sentinels created outside of the compiled region and basic operations on them (identity comparsion and attribute access). Creating sentinels, as well as other operations, are not supported yet. This is the minimal amount of support needed for pytorch#185682 Generated with AI assistance Pull Request resolved: pytorch#189592 Approved by: https://github.com/guilhermeleobas ghstack dependencies: pytorch#188029
Fix pygen_yf to account for virtual iterators in python 3.15 Pull Request resolved: pytorch#190312 Approved by: https://github.com/Skylion007 ghstack dependencies: pytorch#188029, pytorch#189592
This reverts commit 7ac8666. Reverted pytorch#189592 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](pytorch#188029 (comment)))
Stack from ghstack (oldest at bottom):
This adds support for sentinels created outside of the compiled region and basic operations on them (identity comparsion
and attribute access). Creating sentinels, as well as other operations, are not supported yet. This is the minimal
amount of support needed for #185682
Generated with AI assistance
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @chauhang @amjames @jataylo @azahed98