On Sat, Sep 25, 2021 at 00:56 Steven D'Aprano <st...@pearwood.info> wrote:
> On Fri, Sep 24, 2021 at 11:23:00PM -0700, Guido van Rossum wrote: > > > > Is there no room for making it easier to do this with less invasive > > > changes to the stdlib, or are Steven d'A's "heroic measures in an > > > import hook" the right way to go? > > > > > > Other Steve > > > > > > There’s room for that, but that’s not what’s being proposed (yet :-). > > I'm confused. My reading of the pre-PEP is that that is precisely what > it is proposing: changing the way assert works so that the value of each > sub-expression is available to be displayed to the user. Presumably any > framework or library would be able to access that information. > > Have I missed something? I don't see anything in the proposal about > creating new stdlib frameworks or changing unittest. But others were. Anyway, I admit that I didn’t read the PRP carefully enough and was confused about what it proposes. My next responses: - The name “Power Assertions” is terrible. It sounds like a Microsoft product. :-) - I was envisioning something that provides an API that would allow a test framework to do what pytest does; not a behavior chance to the assert statement by default. - Please, please collaborate with the pytest developers on the design. —Guido -- --Guido (mobile)
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/6OSPVMGPPOKRNIQ7ITSM57MWHQCBQSA6/ Code of Conduct: http://python.org/psf/codeofconduct/