Skip to content

Define __iter__ method in iterator types#39182

Merged
vbraun merged 2 commits intosagemath:developfrom
antonio-rojas:python-3.13-iter
Jan 18, 2025
Merged

Define __iter__ method in iterator types#39182
vbraun merged 2 commits intosagemath:developfrom
antonio-rojas:python-3.13-iter

Conversation

@antonio-rojas
Copy link
Copy Markdown
Contributor

This is required for iterator types and seems to be enforced in Python 3.13

https://docs.python.org/3/library/stdtypes.html#iterator-types

This is required for iterator types and seems to be enforced in Python 3.13

https://docs.python.org/3/library/stdtypes.html#iterator-types
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 21, 2024

Documentation preview for this PR (built with commit 9ec9a9a; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Copy Markdown
Contributor

@user202729 user202729 left a comment

Choose a reason for hiding this comment

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

It has always been required, just that the implementation detail of Python < 3.13 probably happen to ignore this issue.

(I don't think test is necessary for such a trivial thing)

@antonio-rojas antonio-rojas changed the title Define __iter__ method in SetSystemIterator Define __iter__ method in iterator types Dec 22, 2024
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 7, 2025
sagemathgh-39182: Define __iter__ method in iterator types
    
This is required for iterator types and seems to be enforced in Python
3.13

https://docs.python.org/3/library/stdtypes.html#iterator-types
    
URL: sagemath#39182
Reported by: Antonio Rojas
Reviewer(s): user202729
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 7, 2025
sagemathgh-39188: Declare Python 3.13 as supported in sagelib
    
### ⌛ Dependencies
- sagemath#39145
- sagemath#39147
- sagemath#39182
- sagemath#39184
- sagemath#39185
- sagemath#39187
- sagemath#39201
    
URL: sagemath#39188
Reported by: Antonio Rojas
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 9, 2025
sagemathgh-39182: Define __iter__ method in iterator types
    
This is required for iterator types and seems to be enforced in Python
3.13

https://docs.python.org/3/library/stdtypes.html#iterator-types
    
URL: sagemath#39182
Reported by: Antonio Rojas
Reviewer(s): user202729
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 9, 2025
sagemathgh-39188: Declare Python 3.13 as supported in sagelib
    
### ⌛ Dependencies
- sagemath#39145
- sagemath#39147
- sagemath#39182
- sagemath#39184
- sagemath#39185
- sagemath#39187
- sagemath#39201
    
URL: sagemath#39188
Reported by: Antonio Rojas
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 10, 2025
sagemathgh-39182: Define __iter__ method in iterator types
    
This is required for iterator types and seems to be enforced in Python
3.13

https://docs.python.org/3/library/stdtypes.html#iterator-types
    
URL: sagemath#39182
Reported by: Antonio Rojas
Reviewer(s): user202729
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 10, 2025
sagemathgh-39188: Declare Python 3.13 as supported in sagelib
    
### ⌛ Dependencies
- sagemath#39145
- sagemath#39147
- sagemath#39182
- sagemath#39184
- sagemath#39185
- sagemath#39187
- sagemath#39201
    
URL: sagemath#39188
Reported by: Antonio Rojas
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 12, 2025
sagemathgh-39182: Define __iter__ method in iterator types
    
This is required for iterator types and seems to be enforced in Python
3.13

https://docs.python.org/3/library/stdtypes.html#iterator-types
    
URL: sagemath#39182
Reported by: Antonio Rojas
Reviewer(s): user202729
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 12, 2025
sagemathgh-39188: Declare Python 3.13 as supported in sagelib
    
### ⌛ Dependencies
- sagemath#39145
- sagemath#39147
- sagemath#39182
- sagemath#39184
- sagemath#39185
- sagemath#39187
- sagemath#39201
    
URL: sagemath#39188
Reported by: Antonio Rojas
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 16, 2025
sagemathgh-39182: Define __iter__ method in iterator types
    
This is required for iterator types and seems to be enforced in Python
3.13

https://docs.python.org/3/library/stdtypes.html#iterator-types
    
URL: sagemath#39182
Reported by: Antonio Rojas
Reviewer(s): user202729
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 16, 2025
sagemathgh-39188: Declare Python 3.13 as supported in sagelib
    
### ⌛ Dependencies
- sagemath#39145
- sagemath#39147
- sagemath#39182
- sagemath#39184
- sagemath#39185
- sagemath#39187
- sagemath#39201
    
URL: sagemath#39188
Reported by: Antonio Rojas
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 17, 2025
sagemathgh-39188: Declare Python 3.13 as supported in sagelib
    
### ⌛ Dependencies
- sagemath#39145
- sagemath#39147
- sagemath#39182
- sagemath#39184
- sagemath#39185
- sagemath#39187
- sagemath#39201
    
URL: sagemath#39188
Reported by: Antonio Rojas
Reviewer(s): Tobias Diez
@vbraun vbraun merged commit c1dbfad into sagemath:develop Jan 18, 2025
@antonio-rojas antonio-rojas deleted the python-3.13-iter branch January 18, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants