<div dir="ltr"><div dir="ltr"><p>Frequently, while globbing, one needs to work with multiple 
extensions. I’d like to propose for fnmatch.filter to handle a tuple of 
patterns (while preserving the single str argument functionality, alas str.endswith), as a first step for glob.i?glob to
 accept multiple patterns as well.</p>
<p>Here is the implementation I came up with:</p><p><a href="https://github.com/python/cpython/compare/master...andresdelfino:fnmatch-multiple-patterns?expand=1">https://github.com/python/cpython/compare/master...andresdelfino:fnmatch-multiple-patterns?expand=1</a><br></p><p>If this is deemed reasonable, I’ll write tests and documentation updates.</p><p>Any opinion?<br></p></div></div>