Re: [Python-Dev] [Python-checkins] bpo-5001: More-informative multiprocessing error messages (#3079)

2017年8月30日 07:35:43 -0700

On 2017年8月30日 03:16:42 -0700
Chris Jerdonek <[email protected]> wrote:
> https://github.com/python/cpython/commit/bd73e72b4a9f019be514954b1d40e64dc3a5e81c
> > commit: bd73e72b4a9f019be514954b1d40e64dc3a5e81c
> > branch: master
> > author: Allen W. Smith, Ph.D <[email protected]>
> > committer: Antoine Pitrou <[email protected]>
> > date: 2017年08月30日T00:52:18+02:00
> > summary:
> >
> > ...
> > @@ -307,6 +309,10 @@ def imap(self, func, iterable, chunksize=1):
> > ))
> > return result
> > else:
> > + if chunksize < 1:
> > + raise ValueError(
> > + "Chunksize must be 1+, not {0:n}".format(
> > + chunksize))
> > assert chunksize > 1 
> 
> It looks like removing this assert statement was missed.
Good catch, thanks.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to