[Distutils] Are chained comparisons allowed in environment markers?

Daniel Holth dholth at gmail.com
Sat Apr 27 18:16:44 CEST 2013


It seems slow to check. Do we also check for python_version == 'squid' and
throw an error because the version can't parse? I think adults should be
able to write true and false in these silly ways.

+1 on always using _ instead of.l . In makers though.
On Apr 27, 2013 11:57 AM, "Vinay Sajip" <vinay_sajip at yahoo.co.uk> wrote:

> Daniel Holth <dholth <at> gmail.com> writes:
>
> > Surely getting farther away from python by trying to prohibit useless
> > makers just makes the implementation needlessly complex.
>
> I'm not quite sure what you mean by "useless" markers. For example, distlib
> checks for e.g. "'2' == '2'" and e.g. "'os.name' == 'os.name'" as these
> are
> pointless to include in an environment marker, but that's only on the basis
> that (probable) errors shouldn't pass silently.
>
> Regards,
>
> Vinay Sajip
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130427/d63a0cf7/attachment-0001.html>


More information about the Distutils-SIG mailing list