mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Make the maxsize constructor argument default to 0 (an unlimited queue size).
This commit is contained in:
		
							parent
							
								
									7a15ba595a
								
							
						
					
					
						commit
						a41c691371
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -15,7 +15,7 @@ except TypeError:
 | 
			
		|||
    Full = 'Queue.Full'
 | 
			
		||||
 | 
			
		||||
class Queue:
 | 
			
		||||
    def __init__(self, maxsize):
 | 
			
		||||
    def __init__(self, maxsize=0):
 | 
			
		||||
        """Initialize a queue object with a given maximum size.
 | 
			
		||||
 | 
			
		||||
        If maxsize is <= 0, the queue size is infinite.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue