Re: [Mesa-dev] [PATCH 19/26] python: Don't abuse hex()

2018-07-05 Thread Eric Engestrom
On Thursday, 2018-07-05 15:17:50 +0200, Mathieu Bridon wrote: > The hex() builtin returns a string containing the hexa-decimal > representation of an integer. > > When the argument is not an integer, then the function calls that > object's __hex__() method, if one is defined. That method is suppos

Re: [Mesa-dev] [PATCH 19/26] python: Don't abuse hex()

2018-07-05 Thread Dylan Baker
This is nice change in itself, Reviewed-by: Dylan Baker Quoting Mathieu Bridon (2018-07-05 06:17:50) > The hex() builtin returns a string containing the hexa-decimal > representation of an integer. > > When the argument is not an integer, then the function calls that > object's __hex__() method,

[Mesa-dev] [PATCH 19/26] python: Don't abuse hex()

2018-07-05 Thread Mathieu Bridon
The hex() builtin returns a string containing the hexa-decimal representation of an integer. When the argument is not an integer, then the function calls that object's __hex__() method, if one is defined. That method is supposed to return a string. While that's not explicitly documented, that str