Can the "first-class" concept be applied to Python methods/attributes like it can functions?
>>>a=sum
>>>a([1,2,3])
6
I would like to do something like:
>>>case='lower'
>>>'UPPERCASE'.case()
To produce the string object 'uppercase'
. Otherwise, would I just have to use eval
?