This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author davin
Recipients Jose Miguel Colella, davin
Date 2016-12-30.03:20:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483068042.35.0.0994027399552.issue29108@psf.upfronthosting.co.za>
In-reply-to
Content
This appears to be working as designed.  The purpose of the callback is to receive a single argument (nominally, the ready result from the map operation) and perform its task (whatever it may be) very quickly so as not to further delay the handing back of results from the map operation.

Attempting to read into your comments, it sounds like you were perhaps expecting the return from the callback to appear somewhere?  If that was your expectation then no, that is not the purpose of a callback here.  Any transformation of input data to the final output data is performed by the function being applied by the map.  While there are many potential uses for a callback, its stated requirement is that it be as quick an operation as possible as opposed to something that further transforms the results or anything like a "reduce" operation which is not necessarily quick.

If you think this needs clarification in the documentation, please suggest something?
History
Date User Action Args
2016-12-30 03:20:42davinsetrecipients: + davin, Jose Miguel Colella
2016-12-30 03:20:42davinsetmessageid: <1483068042.35.0.0994027399552.issue29108@psf.upfronthosting.co.za>
2016-12-30 03:20:42davinlinkissue29108 messages
2016-12-30 03:20:41davincreate