<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>On Wed, Jan 25, 2017, at 03:33 PM, Todd wrote:<br></div>
<blockquote type="cite"><div dir="ltr"><div><div defang_data-gmailquote="yes"><div>On Wed, Jan 25, 2017 at 10:18 AM, Petr Viktorin <span dir="ltr"><<a href="mailto:encukou@gmail.com">encukou@gmail.com</a>></span> wrote:<br></div>
<blockquote defang_data-gmailquote="yes" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div>But what if the .tar.gz file is called "spam-4.2.5-final.tar.gz"?<br></div>
<div> Existing tools like glob and endswith() can deal with the ".tar.gz" extension reliably, but "fullsuffix" would, arguably, not give the answers you want.<br></div>
</blockquote><div><div><br></div>
<div><br></div>
<div>I wouldn't use it in that situation. <br></div>
</div>
</div>
</div>
</div>
</blockquote><div><br></div>
<div>You might not, but it seems like an attractive nuisance. You can't reliably use it as a test for .tar.gz files, but it would be easy to think that you can and write buggy code using it. And I can't currently think of a general example where it would be useful.<br></div>
<div><br></div>
<div>I thought about suggesting a 'hassuffix' method, but it doesn't pass the 'one way to do it' test when you can do:<br></div>
<div><br></div>
<div>p.name.endswith('.tar.gz')<br></div>
<div><br></div>
</body>
</html>