[issue5738] multiprocessing example wrong
Ask Solem a...@opera.com added the comment: Are we sure this fits the scope of multiprocessing? It's a nice feature, but such a long and complex example in the documentation is wrong IMHO, if this is something people need it should be implemented as a reusable solution, not as an example people copy and paste. -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5738] multiprocessing example wrong
Jesse Noller jnol...@gmail.com added the comment: On Sat, Nov 21, 2009 at 8:41 AM, Ask Solem rep...@bugs.python.org wrote: Ask Solem a...@opera.com added the comment: Are we sure this fits the scope of multiprocessing? It's a nice feature, but such a long and complex example in the documentation is wrong IMHO, if this is something people need it should be implemented as a reusable solution, not as an example people copy and paste. In hindsight; I agree - this belongs in an addons module someplace outside the standard library. I'll remove it today - the one thing we are short on though is manager examples. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5738] multiprocessing example wrong
Jesse Noller jnol...@gmail.com added the comment: I've removed the example on all active branches. r76433 is the changelist -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5738] multiprocessing example wrong
Justin MacCallum justin.maccal...@me.com added the comment: I think this should either be fixed or removed from the documentation. It is very confusing as is. I have next to no idea what I'm doing, but I've attached a patch that allows this code to function, at least sort of. You can now create cluster and pool objects and run jobs using map or apply_async, for example. However, there are still problems with the shutdown of the pool. I would very much like to see this functionality working correctly and robustly. A distributed Pool class would be very useful in, e.g. scientific programming. -- keywords: +patch nosy: +jlmaccal Added file: http://bugs.python.org/file14602/mp_patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5738] multiprocessing example wrong
Garrett Cooper yaneg...@gmail.com added the comment: Priorities shifted again at work, so I'll get around to this some time around early June when I get an opportunity to implement multiprocessing in my work code... Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5738] multiprocessing example wrong
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: Garrett, I use FreeBSD myself too, so feel free to bounce anything my way. -- nosy: +asmodai ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5738] multiprocessing example wrong
New submission from Garrett Cooper yaneg...@gmail.com: The last example on the multiprocessing documentation page is clearly wrong. It references a lot of renamed / deprecated API's from processing that are no longer in multiprocessing. I'll try and come up with a comparable working example on all platforms (I use FreeBSD). -- assignee: georg.brandl components: Documentation messages: 85874 nosy: georg.brandl, yaneurabeya severity: normal status: open title: multiprocessing example wrong type: feature request versions: Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5738] multiprocessing example wrong
Changes by Benjamin Peterson benja...@python.org: -- assignee: georg.brandl - jnoller nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5738] multiprocessing example wrong
Jesse Noller jnol...@gmail.com added the comment: Ugh, I thought that was cleaned up. Don't bother with FreeBSD, or any other BSDes. If you're willing to do it, just make it work on linux. MP support on BSD is severely broken right now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5738] multiprocessing example wrong
Garrett Cooper yaneg...@gmail.com added the comment: How about this? I'll do both :). I'm avoiding sync + semaphore stuff because it's still non-portable (Issue 3770 fun), even though I have a functioning copy of FreeBSD... but I do have a Mac, VMware fusion, etc, and I'll toss in a working example with Fedora 10. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5738 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com