GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `gzip.GzipFile` creates reference cycle that requires a deep garbage collection cycle to cleanup. · Issue #129640 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:During debugging memory buildup, I've noticed Steps to reproduce
import gc import gzip import io gc.collect() gc.disable() gc.set_debug(gc.DEBUG_LEAK) with io.BytesIO() as buffer: with gzip.GzipFile(mode="wb", fileobj=buffer): pass gc.collect() gc.set_debug(0) Potential solutionclass _WriteBufferStream(io.RawIOBase): ... def __del__(self): del self.gzip_file CPython versions tested on:3.12 Operating systems tested on:macOS Linked PRsReacted by Iga Karbowiak, Patryk Zawadzki, Jakub and Przemysław Łada Activity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |