Datetime question

Simon Brunning simon at brunningonline.net
Thu Aug 3 09:42:27 EDT 2006


On 8/3/06, Rama <ramasubramani.g at gmail.com> wrote:
> But wont this create a new object? Whereas if you want to modify the same
> object, should we not be using replace? Or does it not matter in the global
> picture?

datetime objects are immutable. You can't change the value of an
existing datetime object, only create a new one.

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list