Skip to content

memory leak with math.log/exp #522

Closed
@wrobell

Description

@wrobell

When running

import math

def calc(data):
    #data = tuple(math.exp(1) for v in data)
    data = [math.log(1) for v in data]
    return data

data = list(range(16))
for i in range(10000):
    data = calc(data)

print(data)

I am getting

MemoryError: 

Is that to be expected with current implementation of GC?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions