#!/usr/bin/env python # Using a shared namespace. import processing def f(ns): print ns ns.old_coords = (ns.x, ns.y) ns.x += 10 ns.y += 10 if __name__ == '__main__': # Initialize the namespace manager = processing.Manager() ns = manager.Namespace() ns.x = 10 ns.y = 20 # Use the namespace in another process p = processing.Process(target=f, args=(ns,)) p.start() p.join() # Show the resulting changes in this process print ns