Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gc.DEBUG_STATS no longer print out anything #122298

Closed
Assignees
markshannon
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
@user202729

Description

@user202729

Bug report

Bug description:

The commandgc.set_debug(gc.DEBUG_STATS) no longer prints out any statistics, even thoughgc.set_debug(gc.DEBUG_COLLECTABLE) shows that thegc is still being run.

(Probably caused by the incremental GC implementation,#116206 .)

For testing you can use the following code --- in previous Python versions thecollecting generation 0 text is printed, now it's not

importgcimportsysfromtimeimportsleepgc.set_debug(gc.DEBUG_STATS|gc.DEBUG_COLLECTABLE)for__inrange(3000):a=[1]a[0]=adelaprint(__)sleep(0.001)sys.exit()

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp