[Python-Dev] Re: Changing unittest verbose output.

2022-03-27 Thread Gregory P. Smith
On Sun, Mar 27, 2022 at 2:50 PM Guido van Rossum wrote: > Hopefully it only prints the first line of the docstring? > Indeed, it's just the first line (traditionally a one line summary per style).

[Python-Dev] Re: Changing unittest verbose output.

2022-03-27 Thread Guido van Rossum
Hopefully it only prints the first line of the docstring? On Sun, Mar 27, 2022 at 2:42 PM Gregory P. Smith wrote: > For many of us, this isn't a nuisance. It is a desirable feature. > > test_xxx functions and methods typically don't have docstrings at all as > the majority of tests tend to be

[Python-Dev] Re: Changing unittest verbose output.

2022-03-27 Thread Gregory P. Smith
For many of us, this isn't a nuisance. It is a desirable feature. test_xxx functions and methods typically don't have docstrings at all as the majority of tests tend to be concise and obvious with the function name itself describes what its purpose is. When we added printing the docstring, it

[Python-Dev] Re: Changing unittest verbose output.

2022-03-27 Thread Barry Warsaw
On Mar 26, 2022, at 17:48, Itay Yeshaya wrote: > > When running unittest with the -v flag, if a test has errors, and has a > docstring, the test name is shown on one line, and the docstring is shown on > the next line with the `ERROR` word. This has been a long-standing nuisance, but I’m like

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-27 Thread Barry Warsaw
On Mar 27, 2022, at 11:52, Dan Stromberg wrote: > > It might make sense to have CPython's release cadence decoupled from the > Standard Library's release cadence. That is, maybe they should be separate > downloads. While I don’t underestimate the work and complexity, we can do both. I.e.

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-27 Thread lincoln auster [they/them]
> On the other hand, it's nice to get it all in one go. Perhaps the > installer could gain controls to download optional parts of the > standard library or update those parts that have been installed. I'm not sure the proposed is really a standard library if it's distributed like that. If a

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-27 Thread MRAB
On 2022-03-27 19:52, Dan Stromberg wrote: On Sat, Mar 26, 2022 at 5:58 PM Ethan Furman > wrote: [apologies for the late post, just found this in my drafts folder] On 2/7/22 12:49 AM, Stéfane Fermigier wrote: > 3. Overall, I think the days where

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-27 Thread Dan Stromberg
On Sat, Mar 26, 2022 at 5:58 PM Ethan Furman wrote: > [apologies for the late post, just found this in my drafts folder] > > On 2/7/22 12:49 AM, Stéfane Fermigier wrote: > > > 3. Overall, I think the days where "battery included" was a positive > argument are over > > I strongly disagree. Being

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-27 Thread Steve Holden
Time for a __legacy__ package? Kind regards, Steve On Sun, Mar 27, 2022 at 7:06 PM Paul Moore wrote: > On Sun, 27 Mar 2022 at 17:11, Christopher Barker > wrote: > > > > With the json package included, all they need to do is `import json`. If > that wasn't there, they's look in PyPi for a

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-27 Thread Paul Moore
On Sun, 27 Mar 2022 at 17:11, Christopher Barker wrote: > > With the json package included, all they need to do is `import json`. If that > wasn't there, they's look in PyPi for a JSON implementation, and find an > absolutely astonishing number of options. I just did a search for "JSON" > on

[Python-Dev] Re: Changing unittest verbose output.

2022-03-27 Thread Eric V. Smith
> On Mar 27, 2022, at 11:20 AM, Eric V. Smith wrote: > >  > On 3/27/2022 10:51 AM, Jelle Zijlstra wrote: >> >> >> El sáb, 26 mar 2022 a las 17:51, Itay Yeshaya () >> escribió: >>> >>> Any thoughts on the mentioned solutions? >> >> This is a bit more out there, but can anyone explain why

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-27 Thread lincoln auster [they/them]
> Back to the topic at hand, rather than remove urllib, maybe it could > be made better -- an as-easy-to-use-as-requests package in the stdlib > would be really great. Agreed. I think one thing that's easy to forget is that Python is useful not just for very large applications but also for your

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-27 Thread Christopher Barker
On Sun, Mar 27, 2022 at 3:08 AM Paul Moore wrote: > > > 3. Overall, I think the days where "battery included" was a positive > argument are over > > > > I strongly disagree. Being able to download something and immediately > get something to work and see results is hugely > > rewarding; on the

[Python-Dev] Re: Changing unittest verbose output.

2022-03-27 Thread Guido van Rossum
I recall actually really liking the docstring. I think there are situations where the test name just can't be sufficiently explanatory. IIRC in the past we didn't print the docstring at all and it felt right when it was added. ATM I'm not using unittest for anything so I don't have a strong

[Python-Dev] Re: Changing unittest verbose output.

2022-03-27 Thread Eric V. Smith
On 3/27/2022 10:51 AM, Jelle Zijlstra wrote: El sáb, 26 mar 2022 a las 17:51, Itay Yeshaya () escribió: Any thoughts on the mentioned solutions? This is a bit more out there, but can anyone explain why we show the docstring at all? As far as I can tell it causes a bunch of confusion

[Python-Dev] Re: Changing unittest verbose output.

2022-03-27 Thread Jelle Zijlstra
El sáb, 26 mar 2022 a las 17:51, Itay Yeshaya () escribió: > > Any thoughts on the mentioned solutions? > This is a bit more out there, but can anyone explain why we show the docstring at all? As far as I can tell it causes a bunch of confusion and helps little. If there's a failing test, I want

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-27 Thread Paul Moore
On Sun, 27 Mar 2022 at 00:52, Ethan Furman wrote: > > [apologies for the late post, just found this in my drafts folder] > > On 2/7/22 12:49 AM, Stéfane Fermigier wrote: > > > 3. Overall, I think the days where "battery included" was a positive > > argument are over > > I strongly disagree.