[issue4620] Memory leak with datetime used with time.strptime

Skip Montanaro report at bugs.python.org
Wed Dec 10 16:22:03 CET 2008


Skip Montanaro <skip at pobox.com> added the comment:

Can you reproduce this with a script that does nothing more
than

while True:
  myDate = datetime.datetime(*(time.strptime("2008-12-10T14:00:03",
"%Y-%m-%dT%H:%M:%S")[:6]))

I tried with both Python 2.4.5 on Solaris and Python built from
CVS (aka 2.7a0) on my Mac and see no memory growth of the
processes.  If there's a memory leak my guess is that it is
somewhere else.

----------
nosy: +skip.montanaro

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4620>
_______________________________________


More information about the Python-bugs-list mailing list