kgiusti commented on a change in pull request #682: DISPATCH-1564 - Modified 
the way ulong is displayed on the output of …
URL: https://github.com/apache/qpid-dispatch/pull/682#discussion_r379102344
 
 

 ##########
 File path: python/qpid_dispatch_internal/tools/display.py
 ##########
 @@ -138,6 +143,33 @@ def num(self, value):
     value /= 1000
     return self.numCell(value, 'g')
 
+def PlainNum(value):
+    if value < 10:
+      return "%1d" % value
 
 Review comment:
   You might want to wrap this in a try/except block to catch formatting 
errors.   Simply return "%s" % value on error.
   
   Try  "%d" % "HI GANESH" in python -> TypeError

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to