[ZODB-Dev] B-Tree API
Guido van Rossum
guido@python.org
Tue, 03 Dec 2002 05:16:24 -0500
> > > I believe the language Ruby has the notion of distinguishing operations
> > > that mutate an object, and those that do not.
> >
> > Scheme does too, I believe. I'm afraid it's a little late to add this
> > to Python, except as an optional naming convention.
>
> Maybe that could be an inspectable property of a function/method in
> newer versions of python, at least then something like idle with it's
> arg hints could also tell you if the method modifies or returns a copy
> of the object
Hm, I'm not sure what you mean. Maybe you can make a more detailed
proposal? (Not quite a PEP just yet.)
--Guido van Rossum (home page: http://www.python.org/~guido/)