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 ppperry
Recipients ppperry
Date 2015-04-19.17:21:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429464061.97.0.0459539459978.issue24006@psf.upfronthosting.co.za>
In-reply-to
Content
An AttributeError is raised when starting a new process with an object defined in the interactive interpreter
>>>def test():print "test"
>>>test()
test
>>>from threading import Thread
>>>Thread(target=test).start()
test
>>>from multiprocessing import Process
>>>Process(target=test).start()
<traceback, ending with>
File <path to python>/Lib/pickle.py, line 1126, in find_class
      klass = getattr(mod, name)
AttributeError: 'module' object has no attribute 'test'
running similar code in a file works and does not raise an error.
History
Date User Action Args
2015-04-19 17:21:02ppperrysetrecipients: + ppperry
2015-04-19 17:21:01ppperrysetmessageid: <1429464061.97.0.0459539459978.issue24006@psf.upfronthosting.co.za>
2015-04-19 17:21:01ppperrylinkissue24006 messages
2015-04-19 17:21:01ppperrycreate