chained-comparsion tag

1 questions


1 answers
18 views
0
Why does Python (0<0==0) return False?

When I was looking at Queue.py on Python 2.6, I saw this code.def full(self): Return True if the queue is full, False otherwise (not reliable!). self.mutex.acquire() n = 0 < self.maxsize == self._q...


© 2024 OneMinuteCode. All rights reserved.