astitcher commented on a change in pull request #289:
URL:
https://github.com/apache/qpid-proton/pull/289#discussion_r558361959##########
File path: python/proton/_reactor.py
##########
@@ -60,7 +60,9 @@ def _generate_uuid():
def _now():
return time.time()
-#@total_ordering
Review comment:
As above actually available on 2.7
##########
File path: python/proton/_reactor.py
##########
@@ -19,7 +19,7 @@
from __future__ import absolute_import
-#from functools import total_ordering
Review comment:
Nope total_ordering is available on 2.7 - I should have just removed the comment markers!
##########
File path: python/proton/_data.py
##########
@@ -582,31 +582,31 @@ class Data:
* :const:`MAP`
"""
- NULL = PN_NULL; "A null value."
- BOOL = PN_BOOL; "A boolean value."
- UBYTE = PN_UBYTE; "An unsigned byte value."
- BYTE = PN_BYTE; "A signed byte value."
- USHORT = PN_USHORT; "An unsigned short value."
- SHORT = PN_SHORT; "A short value."
- UINT = PN_UINT; "An unsigned int value."
- INT = PN_INT; "A signed int value."
- CHAR = PN_CHAR; "A character value."
- ULONG = PN_ULONG; "An unsigned long value."
- LONG = PN_LONG; "A signed long value."
- TIMESTAMP = PN_TIMESTAMP; "A timestamp value."
- FLOAT = PN_FLOAT; "A float value."
- DOUBLE = PN_DOUBLE; "A double value."
- DECIMAL32 = PN_DECIMAL32; "A DECIMAL32 value."
- DECIMAL64 = PN_DECIMAL64; "A DECIMAL64 value."
- DECIMAL128 = PN_DECIMAL128; "A DECIMAL128 value."
- UUID = PN_UUID; "A UUID value."
- BINARY = PN_BINARY; "A binary string."
- STRING = PN_STRING; "A unicode string."
- SYMBOL = PN_SYMBOL; "A symbolic string."
- DESCRIBED = PN_DESCRIBED; "A described value."
- ARRAY = PN_ARRAY; "An array value."
- LIST = PN_LIST; "A list value."
- MAP = PN_MAP; "A map value."
Review comment:
Not sure about this change - for consistency maybe this should be triple quote rather than comment? Unles the '#: ' mark is a specific thing I don't know about?
##########
File path: python/proton/_delivery.py
##########
@@ -34,7 +34,7 @@
class NamedInt(int):
- values = {} # type: Dict[int, str]
Review comment:
Remove the extra comment:
Type annotations are _comments_ deliberately so they don't need changing fixing etc.
But my read of the doc is that this is available on 2.7 anyway.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[hidden email]
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]