daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Nov 16th, 2013 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import multiprocessing
  2.  
  3. class Persona():
  4.     def __init__(self):
  5.         self.nombre = 'Nicolas'
  6.         self.trabajar()
  7.  
  8.     def trabajar(self):
  9.         while True:
  10.             pass
  11.  
  12.  
  13. # Lanzo el proceso
  14. z = multiprocessing.Process(target=Persona)
  15. z.start()
  16.  
  17. # Quisiera obtener mediante 'z' el valor del atributo nombre del proceso lanzado
  18. print(z)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top