Ah, true. Sorry. I got thrown by the ouput after the line got executed and assumed it was the value of a.
thanks,
Rama
On 03/08/06, Simon Brunning <[EMAIL PROTECTED]> wrote:
On 8/3/06, Rama <[EMAIL PROTECTED]> wrote:
> Just curious why when
> I call id(a) I get the same id after I call the replace method.
In your example, you called a's replace() method, but did nothing with
the new datetime object that it returned. The original object, a,
naturally still has the same ID, but it also still has the same value.
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
-- http://mail.python.org/mailman/listinfo/python-list