On Fri, 7 Aug 2020 at 16:32, Alex Hall <[email protected]> wrote:
> Paul, do you want to write `[s for s in strings if 
> (packaging.specifiers.SpecifierSet(s) except 
> packaging.specifiers.InvalidSpecifier: False)]`? That's a mouthful.

No, I would (obviously?) use some from ... imports to simplify it. But
even with that I agree it's on the borderline of readability.

(And David - no, I didn't copy it, I retyped it from memory and that
was a typo, sorry).
Paul
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/I3PCT5B5JHISFM4XFM6YEX2D2VU4XWYX/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to