3 ms·
And Lisps work internally by generating lists and evaluating those, but you don't see me complaining about macros! In all seriousness, though, if I really want
by chimeracoder 14y ago
And Lisps work internally by generating lists and evaluating those, but you don't see me complaining about macros!
In all seriousness, though, if I really wanted a functional implementation, I wouldn't be using Python. It's more just nice to know that I can create an object that's immutable and which functions more or less like a CLOS object, so that I can think in that mindset instead. Also, I believe it doesn't come with all of the hidden functions that it would otherwise.
In the end, if I really cared, I'd actually write a wrapper around the type() function.