> On 5 Sep 2021, at 17:07, C. Titus Brown via Python-ideas
> wrote:
>
> Hi all,
>
> the product of Sunday morning idle curiosity...
>
> I’ve been using the csv module a lot, and I’m wondering if there would be
> value in adding a standard mechanism for opening a CSV file (correctly) using
> Some parts of the stdlib output some logs like urllib, I think only the
> configuration of the handlers is up to the application.
>
> I don't see any logging calls in urllib. If you know of any, can you point me
> to them? (There are some warnings.warn() calls, but that's different.)
I
> But couldn't you just write a simple helper function/class that handles your
> usual workflow?
I do when I’m the one calling subprocess.run() but it’s not possible to do that
when it’s a library that does the call.
> Why does this deserve in the stdlib?
> (The stdlib does very little
Every time I use subprocess.run and others I find myself writing boilerplate
code to log program calls and their results.
Could we log those directly in subprocess.py so that we could just set a
"subprocess" logger instead?
Rémi
___
Python-ideas
Le 21 mars 2019 à 17:43:31, Steven D'Aprano
(st...@pearwood.info(mailto:st...@pearwood.info)) a écrit:
> I'd like to make a plea to people:
>
> I get it, there is now significant opposition to using the + symbol for
> this proposed operator. At the time I wrote the first draft of the PEP,
> there
Le 17 mars 2019 à 02:01:51, Greg Ewing
(greg.ew...@canterbury.ac.nz(mailto:greg.ew...@canterbury.ac.nz)) a
écrit:
> Richard Damon wrote:
> > Rémi, I believe, is assuming in their example that by defining the field
> > of mathematics being used, there is at least an implicit definition (if
> > not
Le 18 mars 2019 à 12:15:05, Juancarlo Añez
(apal...@gmail.com(mailto:apal...@gmail.com)) a écrit:
> It came to my attention that:
>
> > In the original PEP True and False are said to be singletons
> > https://www.python.org/dev/peps/pep-0285/, but it's not in the Data Model
> >
Le 16 mars 2019 à 10:02:31, Greg Ewing
(greg.ew...@canterbury.ac.nz(mailto:greg.ew...@canterbury.ac.nz)) a
écrit:
> Rémi Lapeyre wrote:
> > I think this omit a very important property of
> > mathematic equations thought, maths is a very strongly typed language
> > which
Le 16 mars 2019 à 13:15:37, Dan Sommers
(2qdxy4rzwzuui...@potatochowder.com(mailto:2qdxy4rzwzuui...@potatochowder.com))
a écrit:
> On 3/16/19 6:17 AM, Richard Damon wrote:
> > On 3/16/19 4:39 AM, Greg Ewing wrote:
> >> Rémi Lapeyre wrote:
> >>> I think this
Le 16 mars 2019 à 13:15:37, Dan Sommers
(2qdxy4rzwzuui...@potatochowder.com(mailto:2qdxy4rzwzuui...@potatochowder.com))
a écrit:
> On 3/16/19 6:17 AM, Richard Damon wrote:
> > On 3/16/19 4:39 AM, Greg Ewing wrote:
> >> Rémi Lapeyre wrote:
> >>> I think this
Le 15 mars 2019 à 18:52:51, Guido van Rossum
(gu...@python.org(mailto:gu...@python.org)) a écrit:
…
> The power of visual processing really becomes apparent when you combine
> multiple operators. For example, consider the distributive law:
>
> mul(n, add(x, y)) == add(mul(n, x), mul(n, y)) (5)
Le 15 mars 2019 à 19:44:15, francismb
(franci...@email.de(mailto:franci...@email.de)) a écrit:
>
>
> On 3/14/19 9:47 PM, Chris Angelico wrote:
> > What happens when someone wants to support multiple Python versions?
> > "Requires Python 3.5 or newer" is easy. Forcing people to install the
> >
Hi everybody,
I would like to add a new method to unittest.TestProgram that would let
the user add its own arguments to TestProgram so its behavior can be
changed from the command line, and make them accessible from a TestCase.
This would allow for more customization when running the tests.
Le 6 mars 2019 à 10:26:15, Brice Parent
(cont...@brice.xyz(mailto:cont...@brice.xyz)) a écrit:
>
> Le 05/03/2019 à 23:40, Greg Ewing a écrit :
> > Steven D'Aprano wrote:
> >> The question is, is [recursive merge] behaviour useful enough and
> > > common enough to be built into dict itself?
> >
>
I’m having issues to understand the semantics of d1 + d2.
I think mappings are more complicated than sequences it some things
seems not obvious to me.
What would be OrderedDict1 + OrderedDict2, in which positions would be
the resulting keys, which value would be used if the same key is
present
15 matches
Mail list logo