mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			365 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			365 B
		
	
	
	
		
			Python
		
	
	
	
	
	
class B(object):
 | 
						|
    def __init__(self, x):
 | 
						|
        if x: self._o = True
 | 
						|
        else: self._o = False
 | 
						|
    def __getattribute__(self, attr):
 | 
						|
        print "ga called", attr
 | 
						|
        return object.__getattribute__(self, attr)
 | 
						|
    def _sqlquote(self):
 | 
						|
        if self._o == True:
 | 
						|
            return 'It is True'
 | 
						|
        else:
 | 
						|
            return 'It is False'
 | 
						|
        
 |