RE: [Python-Dev] Decimal - context manipulation

21 Apr
2004
21 Apr
'04
6:55 p.m.
[Tim Peters]
#- Note that __copy__ is a special name, and the standard #- copy.copy(thing) #- automatically invokes thing.__copy__() if thing has a #- __copy__() method. #- The "copy = __copy__" line then supplies that method #- directly to class users #- too under a conventional name. So, after the above, #- copy.copy(thing) and #- thing.copy() both work.
I'm +1 on introducing this behaviour to Context.
. Facundo
6920
Age (days ago)
6920
Last active (days ago)
0 comments
1 participants
participants (1)
-
Batista, Facundo