fromisotime cleanup when 3.11 is Python miniumum
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Open pyodata/v2/model.py and inspect parse_datetime_literal and EdmDateTimeOffsetTypTraits.from_literal. Confirm the Python 3.11 fromisoformat behavior, then remove the fractional-seconds padding blocks and the Z replacement described in the issue. Done means the compatibility workarounds are gone while fractional seconds and Z inputs remain supported.
Written by the indexing model from the issue text.
Description
Matrix builds for #303 exposed change in fromisotime for fractional-seconds between Python 3.10 and 3.11. Since 3.10 EOL is quite soon, adding what can be changed when support for 3.10 will be dropped as well.
Cleanup tasks for when Python 3.11 becomes minimum version
-
parse_datetime_literalinpyodata/v2/model.py: remove fractional-seconds padding workaround (theif '.' in valueblock),fromisoformataccepts any number of fractional digits in 3.11+ -
EdmDateTimeOffsetTypTraits.from_literalinpyodata/v2/model.py: remove fractional-seconds padding workaround (theif '.' in normalizedblock) for the same reason -
EdmDateTimeOffsetTypTraits.from_literal: remove the.replace('Z', '+00:00')normalisation,fromisoformatacceptsZnatively in 3.11+
- Dominant language
- Python
- Stars
- 268
- Forks
- 100
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SAP/python-pyodata
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SAP/python-pyodata#108 ·
-
chore
SAP/python-pyodata#302 · 1 assignee ·
-
question
SAP/python-pyodata#294 · 1 comment · 1 assignee ·
-
bug
SAP/python-pyodata#282 · 2 comments · 1 assignee ·
-
bug
SAP/python-pyodata#280 · 13 comments · 1 assignee ·
All issues in SAP/python-pyodata
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100