mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 01:37:31 +03:00 
			
		
		
		
	Update docs
Update documentation of __init__ method of ThreadedPoolConnection. The old documentation was incorrect because it says "initialze a threading lock."
This commit is contained in:
		
							parent
							
								
									1b255b7dc3
								
							
						
					
					
						commit
						e9a62bf418
					
				
							
								
								
									
										19
									
								
								lib/pool.py
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								lib/pool.py
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -156,7 +156,24 @@ class ThreadedConnectionPool(AbstractConnectionPool):
 | 
			
		|||
    """A connection pool that works with the threading module."""
 | 
			
		||||
 | 
			
		||||
    def __init__(self, minconn, maxconn, *args, **kwargs):
 | 
			
		||||
        """Initialize the threading lock."""
 | 
			
		||||
        """Initializes a new instance of ThreadedConnectionPool.
 | 
			
		||||
 | 
			
		||||
        Parameters
 | 
			
		||||
        ----------
 | 
			
		||||
        minconn : int
 | 
			
		||||
            The minimum number of connections that should be automatically
 | 
			
		||||
            created when you initialize the connection pool.
 | 
			
		||||
        maxconn : int
 | 
			
		||||
            The maximum number of connections that will be supported by this
 | 
			
		||||
            connection pool
 | 
			
		||||
        args : optional, positional arguments
 | 
			
		||||
            Usually these are passed to the underlying ``connect`` method
 | 
			
		||||
            of psycopg2
 | 
			
		||||
        kwargs : optional, keyword only arguments
 | 
			
		||||
            Usually these are passed to the underlying ``connect`` method
 | 
			
		||||
            of psycopg2
 | 
			
		||||
        """
 | 
			
		||||
        
 | 
			
		||||
        import threading
 | 
			
		||||
        AbstractConnectionPool.__init__(
 | 
			
		||||
            self, minconn, maxconn, *args, **kwargs)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user