naught101 added the comment:
I want to do something like this:
hashlib.md5(json.dumps(d, sort_keys=True))
So I can check if a dict's contents are the same as a DB version, but I can't
guarantee that all the keys are strings, so it breaks, annoyingly. I would very
much like
naught101 added the comment:
Here you go.
--
keywords: +patch
Added file: http://bugs.python.org/file44851/mp.map.starmap.patch
___
Python tracker
<http://bugs.python.org/issue27
naught101 added the comment:
OK, one question, is Pool.map preferable to Pool.starmap in any particular
cases?
--
___
Python tracker
<http://bugs.python.org/issue27
naught101 added the comment:
Happy to. What is the process? hg clone cpython, and make a patch from that and
post it here? Or is there some pull-request style process available?
--
___
Python tracker
<http://bugs.python.org/issue27
naught101 added the comment:
It would be helpful if the docs at
https://docs.python.org/3/library/multiprocessing.html#multiprocessing.pool.Pool.map
and in `help(Pool.map)` mentioned starmap in a "see also" section at the
bottom.
--
nosy: