bschoening commented on code in PR #1300:
URL:
https://github.com/apache/cassandra-python-driver/pull/1300#discussion_r3621701856
##########
cassandra/util.py:
##########
@@ -1692,15 +1709,17 @@ def __repr__(self):
self.lower_bound, self.upper_bound, self.value
)
+
VERSION_REGEX =
re.compile("^(\\d+)\\.(\\d+)(\\.\\d+)?(\\.\\d+)?([~\\-]\\w[.\\w]*(?:-\\w[.\\w]*)*)?(\\+[.\\w]+)?$")
+
@total_ordering
class Version(object):
"""
Representation of a Cassandra version. Mostly follows the implementation
of the same logic in the Java driver;
see
https://github.com/apache/cassandra-java-driver/blob/4.19.2/core/src/main/java/com/datastax/oss/driver/api/core/Version.java.
- Cassandra versions are assumed to correspond to major.minor.patch with an
optional additional numeric build field as well as a
+ Cassandra's versions are assumed to correspond to major.minor.patch with
an optional additional numeric build field as well as a
Review Comment:
It was a little wordy, I reworded it "Versions correspond to
major.minor.patch with an optional additional numeric build field and string
prerelease field."
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]