[Python-Dev] Re: Descriptions in unittest and avoiding confusion

2022-04-04 Thread Coyot Linden (Glenn Glazer)
"Well, that escalated quickly." :-) How did we get from a specific issue with docstrings and the unittest package's test reporting to multi-line comments? If this was Discourse that entire subdiscussion would have been flagged as

[Python-Dev] Re: Descriptions in unittest and avoiding confusion

2022-04-04 Thread Coyot Linden (Glenn Glazer)
On 4/4/22 09:25, Paul Moore wrote: On Mon, 4 Apr 2022 at 17:22, Coyot Linden (Glenn Glazer) wrote: I would welcome a multiline comment format that didn't involve docstrings. Err, sorry, I meant multiline string format. I'm confused, what's wrong with """...&quo

[Python-Dev] Re: Descriptions in unittest and avoiding confusion

2022-04-04 Thread Coyot Linden (Glenn Glazer)
I would welcome a multiline comment format that didn't involve docstrings. Err, sorry, I meant multiline string format. Best, coyot ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https

[Python-Dev] Re: Descriptions in unittest and avoiding confusion

2022-04-04 Thread Coyot Linden (Glenn Glazer)
I would like to point out another use case of triple quotes outside of docstrings. We do a lot of SQL here and so doing a parameterized query like: """SELECT foo FROM bar WHERE baz = %s""" is a whole lot cleaner and more natural than ("SELECT foo" + "FROM bar" + "WHERE baz = %s") For this toy

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

2022-03-28 Thread Coyot Linden (Glenn Glazer)
On Sun, Mar 27, 2022 at 3:08 AM Paul Moore p.f.mo...@gmail.com wrote: ... exactly - let's say someone needs to write some JSON for the first time. With the json package included, all they need to do is `import json`. If that wasn't there,

[Python-Dev] Re: Which thing is "Development Mode"

2021-03-02 Thread Coyot Linden (Glenn Glazer)
On 3/1/21 08:49, Paul Moore wrote: On Mon, 1 Mar 2021 at 16:25, Coyot Linden (Glenn Glazer) wrote: This is one of those cases, where those of us who have been around Python for awhile can perhaps infer from context which his meant, but the

[Python-Dev] Re: Which thing is "Development Mode"

2021-03-01 Thread Coyot Linden (Glenn Glazer)
On 2/26/21 13:49, Steven D'Aprano wrote: Hi Coyot, and welcome! Can you explain the circumstances where a developer, or an end user, might be confused as to which development mode is meant? "Dev mode" is a very common term: Windows 10 has a development mode. So does the X-Box and the Samsung Ga