ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-win32
python-win32
Re: [python-win32] multiprocessing pickle problem in win32
by Rob Brown-Bayliss other posts by this author
Nov 4 2009 3:32PM messages near this date
Re: [python-win32] multiprocessing pickle problem in win32 | Re: [python-win32] multiprocessing pickle problem in win32
On Thu, Nov 5, 2009 at 11:32 AM, Mark Hammond <skippy.hammond@[...].com>  wrote:
>  On 5/11/2009 4:57 AM, Rob Brown-Bayliss wrote:

>  In that case you probably need to reduce your sample to the smallest
>  possible code which demonstrates the problem.
> 
>  (At face value, it almost looks like you have 2 discrete interpreters in the
>  same process, so have 2 different 'None' objects, but that should be very
>  difficult to make happen...)
> 

Hi Again, This would be about as simple as it can get.  Processes that
do nothing, but the same error.  Does multiprocessing library work in
windows?  Has any one an example?

Thanks


from __future__ import print_function
import MySQLdb
import multiprocessing

class Connection(multiprocessing.Process):

	def __init__(self):
		multiprocessing.Process.__init__(self)

	def run(self):
		print(self)
		return

if __name__ == "__main__":
	pool = []
	pool.append(Connection())
	pool.append(Connection())
	pool.append(Connection())

	print(pool)
	for c in pool:
		c.start()



-- 
--

Rob
_______________________________________________
python-win32 mailing list
python-win32@[...].org
http://mail.python.org/mailman/listinfo/python-win32
Thread:
Rob Brown-Bayliss
Aahz
Rob Brown-Bayliss
Mark Hammond
Rob Brown-Bayliss
Mark Hammond
Paul Bilokon
Mark Hammond
Paul Bilokon
Rob Brown-Bayliss
Harald Armin Massa
Rob Brown-Bayliss

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved