R. David Murray added the comment:
I'm guessing you are on Windows. Please read
https://docs.python.org/2/library/multiprocessing.html#windows. You can't do
what you show on windows (though you can on unix, since it uses fork).
--
nosy: +r.david.murray
resolution: - not a bug
New submission from ppperry:
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