|
[
Permlink
| « Hide
]
Graham Dumpleton added a comment - 30/Jan/05 09:48 AM
Doing this would require a special case check. At the moment the fact that a class is callable takes precedence and so all it does is create the object. To be able to convert that then back to a string requires an extra step.
Whoops. Sorry, current behaviour is not that callable() takes precedence in this case but conversion of class to a string, which is just yielding a name of the class in appropriate module context. Thus apply_fs_data() needs to understand the type which I see you have done. Since all results of callables have to be converted to strings anyway by str(), then yes it would automatically be converted to custom string if __str__() defined. Thus my comments are redundant.
Nicolas Lehuen made changes - 01/May/05 07:28 PM
Nicolas Lehuen made changes - 01/May/05 07:28 PM
Nicolas Lehuen made changes - 22/Oct/05 03:58 PM
Nicolas Lehuen made changes - 22/Oct/05 03:59 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||