[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2021-01-07 Thread naught101
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 the apply

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-09-27 Thread naught101
naught101 added the comment: Here you go. -- keywords: +patch Added file: http://bugs.python.org/file44851/mp.map.starmap.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-09-27 Thread naught101
naught101 added the comment: OK, one question, is Pool.map preferable to Pool.starmap in any particular cases? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-09-27 Thread naught101
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 <rep...@bugs.python.org> <http://bugs.p

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2016-09-26 Thread naught101
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: