RE: Adaptation and typecasting (was Re: [Python-Dev] replacing 'global')

Oct. 28, 2003
11:03 p.m.
From: Phillip J. Eby [mailto:pje@telecommunity.com]
Because (IMO anyway) adaption is *not* "give me X, rendered as Y". Adaption is "here is an X, can it be used as a Y?". They are two distinct concepts, although obviously there are crossover points. A string cannot be used as an int, although an int can be created from the string representation of an int. Adaption should not involve any change to the underlying data - mutating operations on the adapted object should (attempt to) mutate the original object (assuming the adapted object and original object are not one and the same). Tim Delaney
7812
Age (days ago)
7812
Last active (days ago)
0 comments
1 participants
participants (1)
-
Delaney, Timothy C (Timothy)