mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	pickle.py: new low-level persistency module (used to be called flatten) dbmac.py: stupid dbm clone for the Mac anydbm.py: generic dbm interface (should be extended to support gdbm)
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			182 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			182 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""A generic interface to all dbm clones."""
 | 
						|
 | 
						|
try:
 | 
						|
	import dbm
 | 
						|
	def open(file, mode = 'rw'):
 | 
						|
		return dbm.open(file, mode, 0666)
 | 
						|
except ImportError:
 | 
						|
	import dbmac
 | 
						|
	open = dbmac.open
 |