3 ms·
What kind of creation are you building that you are expecting to not know which methods are available while running your program? Well, metaprogramming is all
by area51org 13y ago
What kind of creation are you building that you are expecting to not know which methods are available while running your program?
Well, metaprogramming is all about exactly that kind of thing. Python is a fine language, but it's not cut from the same cloth as Ruby. That's not a value judgement; plenty of sane, creative, and intelligent people use Python. They're simply not the same kind of language.
- acjohnson55 13y agoYou can do this sort of metaprogramming in Python just fine, and then some. Things like metaclasses and abstract base classes give a lot of power to hook and modify the type system.
- area51org 13y agoYes, that all may be true, but white space has semantic meaning in Python. I just can't get past that. ;-)