More Efficient fnmatch.fnmatch for multiple patterns?

Gabriel Genellina gagsl-py at yahoo.com.ar
Mon Jan 8 14:19:04 EST 2007


At Monday 8/1/2007 15:55, Wojciech =?ISO-8859-2?Q?Mu=B3a?= wrote:

>pats = re.compile('|'.join(fnmatch.translate(p) for p in patterns))

Hmm, fnmatch.translate does not appear in the docs.
But it does on the module docstring, and in __all__, so certainly 
it's supposed to be public.
I'll file a bug report.


-- 
Gabriel Genellina
Softlab SRL 


	

	
		
__________________________________________________ 
Preguntá. Respondé. Descubrí. 
Todo lo que querías saber, y lo que ni imaginabas, 
está en Yahoo! Respuestas (Beta). 
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas 




More information about the Python-list mailing list