Why is the Queue class max_size set to None?


In this exercise, the Queue class sets the max_size to the value of None instead of a number. Why is None used?


The value of None is used to indicate that the Queue will have no maximum value. Choosing a numeric value to indicate the maximum value can arbitrarily limit the size. Using None is a better option since it doesn’t have the same limiting property.