Re: [Mesa-dev] [PATCH 09/41] glapi: fix singleton comparisons to use 'is' in python

2016-04-19 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 03/31/2016 05:04 PM, Dylan Baker wrote: > Python has two equality comparitors, 'is' and '=='. The difference is > that 'is' determines whether instance A *is* instance B, while '==' > determines if instance A *has the same value as* instance B. > > Com

[Mesa-dev] [PATCH 09/41] glapi: fix singleton comparisons to use 'is' in python

2016-03-31 Thread Dylan Baker
Python has two equality comparitors, 'is' and '=='. The difference is that 'is' determines whether instance A *is* instance B, while '==' determines if instance A *has the same value as* instance B. Comparisons with singletons (the notable ones being None, True, and False) should always by done wi