I doubt it, although it might work anyway. Here's another from the same program: (a0, b0), (a1, b1), (a2, b2) = classprog.regs[:3] Nothing in the Python lib reference on the regs attribute for regex objects.