I don't see whats wrong with: def f(a): print 1 f.publish = 1 Its perfectly clear to me. As a bonus it works already. I'm -1 on inventing more syntax. Neil