But Python has more general metaprogramming capabilities. The secret to metaprogramming is treating code as just another kind of data. (The DRY principle applies to any kind of data, especially the ...