Zahari Dim added the comment:
I would like to suggest a `dependency_resolver` API that I have been using that
goes in line with what Tim Peters proposes in
https://bugs.python.org/issue17005#msg359702
A DAG would be an object that can be iterated in topological order with
__iter__ (for
Changes by Zahari Dim :
--
pull_requests: +1418
___
Python tracker
<http://bugs.python.org/issue13349>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Zahari Dim :
When using ChainMap I have frequently needed to know the mapping inside the list
that contains the effective instance of a particular key. I have needed this
when using ChainMap to contain a piece of configuration with multiple sources,
like for example
Zahari Dim added the comment:
I believe an argument for including this functionality in the standard library
is that it facilitates writing better error messages and thus better code. Some
results that are returned when one searches for *python ChainMap* are:
-
<https://stackoverflow.
Zahari Dim added the comment:
> ISTM that this is the wrong stage to perform validation of allowable values.
> That should occur upstream when the underlying mappings are first created.
> At that earlier stage it possible to give a more timely response to erroneous
> input
Zahari Dim added the comment:
On Sat, Sep 8, 2018 at 1:15 PM Serhiy Storchaka wrote:
>
>
> Serhiy Storchaka added the comment:
>
> I concur with Raymond. The purpose of ChainMap is providing a mapping that
> hides the implementation detail of using several mappings as fa
Zahari Dim added the comment:
>
> I've discussed this with other core devs and spent a good deal of time
> evaluating this proposal. I'm going to pass on the this one but do think it
> was a inspired suggestion. Thank you for the proposal.
Thank you for taking the
New submission from Zahari Dim:
The globals() notification states:
Return a dictionary representing the current global symbol table.[...]
This doc and the fact that globals() is called as a function made me think that
globals() returns a copy of the global namespace dict, rather than an
Zahari Dim added the comment:
I am looking at the docs of the built-in functions:
http://docs.python.org/2/library/functions.html
--
___
Python tracker
<http://bugs.python.org/issue19
Zahari Dim added the comment:
Considering Python is used often to interact with lower level
languages, it seems interesting to have the ability to control the
"real" standard output and error that those languages use. Note that
redirecting to /dev/null is only one possible applicati
New submission from Zahari Dim:
When trying to see if the keys() of a collections.ChainMap object are empty, it
tries to compute the hash of the dicts that compose the ChainMap, giving rise
to an error:
In [1]: from collections import ChainMap
In [2]: m = ChainMap([{'a':1}, {'
Changes by Zahari Dim :
--
resolution: -> not a bug
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue27399>
___
___
Python-bugs-list
New submission from Zahari Dim:
See:
http://stackoverflow.com/questions/30943161/multiprocessing-pool-with-maxtasksperchild-produces-equal-pids
The documentation never makes clear what a "task" in the context of Pool.map.
At best, it says:
"This method chops the iterable i
New submission from Zahari Dim:
It is common to have an inflexible C wrapper with lots of undesired output.
However it is not so trivial to supress (or redirect) that output from Python
in a selective way. contextlib.redirect_stdout doesn't help, since it only
changes sys.sdout, wi
Changes by Zahari Dim :
--
title: xontextlib.redirect_stdout should redirect C output ->
contextlib.redirect_stdout should redirect C output
___
Python tracker
<http://bugs.python.org/issu
Zahari Dim added the comment:
Well, the simple minded example I posted has so many bugs (many of which I
don't understand, for example why it destroys the stdout of an interpreter
permanently) that I really think this feature is nece
New submission from Zahari Dim:
The following example should start two processes, but instead it starts three,
even though only two do_work(). A third process is incorrectly started after
the first one finishes.
import os
import time
from multiprocessing import Pool
def initprocess
Changes by Zahari Dim :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue24519>
___
___
Python-bugs-list mailing list
Unsubscrib
18 matches
Mail list logo