Standard behaviour of a getSomething method

Batista, Facundo FBatista at uniFON.com.ar
Thu Jul 24 17:09:53 EDT 2003


Resending... get no answers, don't remember if this mail reached the list.


When I want to know about a attribute (e.g.: myAttrib) of an object, I
should use the specific method (e.g.: getMyAttrib).

Considering that this attribute is always another object (everything is an
object in Python), what should getMyAttrib do?

	1) Return the object
	2) Return a copy of the object

How do I return a copy of the object?

Thanks for all.

.	Facundo





More information about the Python-list mailing list