Re: [Distutils] PEP 517 again
![](https://secure.gravatar.com/avatar/e1a2ac3e1eba0c0d26672b2a55948b77.jpg?s=120&d=mm&r=g)
Should probably take Guido out of this email chain now. And does everyone agree with what Nathaniel said on sys.path? On Aug 26, 2017 11:00 AM, "Daniel Holth" <dholth@gmail.com> wrote: I'm bored with that On Sat, Aug 26, 2017, 11:59 xoviat <xoviat@gmail.com> wrote:
Is everyone on board with that?
On Aug 26, 2017 4:29 AM, "Paul Moore" <p.f.moore@gmail.com> wrote:
On 26 August 2017 at 03:17, Guido van Rossum <guido@python.org> wrote:
In pretty much any other context, if you have an operation that returns an regular value or an error value, the error value should be None. (Exceptions include e.g. returning a non-negative int or -1 for errors, or True for success and False for errors.)
So, given that build_sdist returns the path of the newly built sdist, the correct way to signal "I didn't manage to build a sdist" would be to return None.
Now that it's put this way, it seems glaringly obvious to me that this is the correct thing to do. Paul
_______________________________________________
Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig
participants (1)
-
xoviat