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 noxdafox
Recipients noxdafox
Date 2013-10-06.20:14:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381090470.56.0.579888919868.issue19185@psf.upfronthosting.co.za>
In-reply-to
Content
This patch allows the pool initializer function to return the initialized values. The returned values will be passed to the called function as first positional argument.

Previously the common pattern was to store the initialized objects into global variables making the code more difficult to manage.

The patch is not breaking any backward compatibility as the previous initializers were not supposed to return any value, if the initializer does not return anything the behavior is the same as usual.
History
Date User Action Args
2013-10-06 20:14:30noxdafoxsetrecipients: + noxdafox
2013-10-06 20:14:30noxdafoxsetmessageid: <1381090470.56.0.579888919868.issue19185@psf.upfronthosting.co.za>
2013-10-06 20:14:30noxdafoxlinkissue19185 messages
2013-10-06 20:14:30noxdafoxcreate