It's more a thing of them taking measures to liberalize much of the economy and creating special economic zones, government itself stayed communist for the most part. It was the force of the market combined with good old fashioned economic thuggery that pulled them out. You don't actually HAVE to be communist in all ways to still be communist, it's extremely inefficient to be politically communist but with enough luck and willpower it can work to a point.This month China celebrates 70 years of communist rule. Did the communists pull themselves out of the "dark ages"?