-
-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MRG] Add CI builds for Python 3.11 #1659
Changes from all commits
77824f1
d310978
aeb00f2
54c16c5
c32358c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -774,9 +774,9 @@ class TM(_DateTimeBase, datetime.time): | |
""" | ||
_RE_TIME = re.compile( | ||
r"(?P<h>^([01][0-9]|2[0-3]))" | ||
r"((?P<m>([0-5][0-9]))?" | ||
r"(?(5)(?P<s>([0-5][0-9]|60))?)" | ||
r"(?(7)(\.(?P<ms>([0-9]{1,6})?))?))$" | ||
r"((?P<m>([0-5][0-9]))" | ||
r"((?P<s>([0-5][0-9]|60))" | ||
r"(\.(?P<ms>([0-9]{1,6})?))?)?)?$" | ||
Comment on lines
+778
to
+779
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mrbean-bremen I'm sorry to bring this up but could you please elaborate why this pattern works? Looking at it I think that it's not the same as it used to be, e.g. I think that in some cases it allows for Also, I wonder whether this isn't a bug in Python There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I don't see this - as far as I understand, the group is an optional part of the expression above, while the
Yes, it is - but I think you filed it yourself? Anywhere, it will eventually be fixed, but it is not fixed in Python 3.11.0, so we cannot remove the fix yet. In case the fix (in pydicom) is incorrect, we have to change it of course, otherwise we can just leave it as is. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Ah you're right! Somehow I didn't notice the removal of the
Yes, I have filled in a bug report once I've confirmed that there is a problem with Python's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Thanks for that, by the way, should have done this myself!
It got me to re-check the fix, which is always a good thing. Anyway, I understand that leaving the fix in is ok, regardless of the Python |
||
) | ||
|
||
def __new__( # type: ignore[misc] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed 3.6 here as it is EOL since last year, but I'm not sure if this is correct - did we have some plan here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't recall if we had a plan, but it makes sense to drop it.