[New-bugs-announce] [issue4620] Memory leak with datetime used with time.strptime

BEGUE report at bugs.python.org
Wed Dec 10 15:40:58 CET 2008


New submission from BEGUE <seb.begue at gmail.com>:

When I use the following line in my process (my process run these line
each 10 seconds), memory size increases progressively :
myDate = datetime.datetime(*(time.strptime(dateString,
"%Y-%m-%dT%H:%M:%S")[0:6]))

the '*' operator unpacks the tuple, producing the argument list for
datetime.datetime but it seems that the structure return by
time.strptime is not correctly flushed in memory.

----------
components: None
messages: 77543
nosy: sebegue
severity: normal
status: open
title: Memory leak with datetime used with time.strptime
type: resource usage
versions: Python 2.5

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


More information about the New-bugs-announce mailing list