On Thu, Nov 5, 2009 at 11:32 AM, Mark Hammond <skippy.hamm...@gmail.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@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to