Re: Re[2]: Re: Mutable Bytes
Greg Ewing <[email protected]> Fri, 30 Jul 2004 14:44:04 +1200
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <[email protected]> |
> The function object also keeps a copy of the name, the doc string > and the list of default argument values You're right, I had forgotten about those. Essentially, it holds all the stuff that can change from one def execution to another, while the code object holds everything that remains constant. The __doc__ attribute could also be implemented as a property that looks up the __doc__ of the code object, if desired. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | [email protected] +--------------------------------------+