Title: gc.DEBUG_STATS no longer print out anything · Issue #122298 · python/cpython · GitHub
Open Graph Title: gc.DEBUG_STATS no longer print out anything · Issue #122298 · python/cpython
X Title: gc.DEBUG_STATS no longer print out anything · Issue #122298 · python/cpython
Description: Bug report Bug description: The command gc.set_debug(gc.DEBUG_STATS) no longer prints out any statistics, even though gc.set_debug(gc.DEBUG_COLLECTABLE) shows that the gc is still being run. (Probably caused by the incremental GC impleme...
Open Graph Description: Bug report Bug description: The command gc.set_debug(gc.DEBUG_STATS) no longer prints out any statistics, even though gc.set_debug(gc.DEBUG_COLLECTABLE) shows that the gc is still being run. (Proba...
X Description: Bug report Bug description: The command gc.set_debug(gc.DEBUG_STATS) no longer prints out any statistics, even though gc.set_debug(gc.DEBUG_COLLECTABLE) shows that the gc is still being run. (Proba...
Opengraph URL: https://github.com/python/cpython/issues/122298
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gc.DEBUG_STATS no longer print out anything","articleBody":"# Bug report\n\n### Bug description:\n\nThe command `gc.set_debug(gc.DEBUG_STATS)` no longer prints out any statistics, even though `gc.set_debug(gc.DEBUG_COLLECTABLE)` shows that the `gc` is still being run.\n\n(Probably caused by the incremental GC implementation, #116206 .)\n\nFor testing you can use the following code --- in previous Python versions the `collecting generation 0` text is printed, now it's not\n\n```python\nimport gc\nimport sys\nfrom time import sleep\ngc.set_debug(gc.DEBUG_STATS | gc.DEBUG_COLLECTABLE)\n\nfor __ in range(3000):\n\ta=[1]\n\ta[0]=a\n\tdel a\n\tprint(__)\n\tsleep(0.001)\n\nsys.exit()\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-123261\n* gh-123268\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/user202729","@type":"Person","name":"user202729"},"datePublished":"2024-07-26T02:55:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/122298/cpython/issues/122298"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a033094b-29ee-6c84-3bdd-ffe31dd0d53c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E686:3B04AD:96222B:CED341:696A3109 |
| html-safe-nonce | 368b03a8ccb2d97d7ade99e1e0474c9f438257e243c9b23006ddb49f4044d1de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjg2OjNCMDRBRDo5NjIyMkI6Q0VEMzQxOjY5NkEzMTA5IiwidmlzaXRvcl9pZCI6IjY1NjkzNDA5NjEzNDUzODQ3MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3fd84e09bc878b5b22d11f1467d00616fcc0c9c67605a08e141a28a63a4db760 |
| hovercard-subject-tag | issue:2431311630 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/122298/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf9f0e8c474921c656c6a83bd7ed26db6822f26340a44f87683587f818fcaa01/python/cpython/issues/122298 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf9f0e8c474921c656c6a83bd7ed26db6822f26340a44f87683587f818fcaa01/python/cpython/issues/122298 |
| og:image:alt | Bug report Bug description: The command gc.set_debug(gc.DEBUG_STATS) no longer prints out any statistics, even though gc.set_debug(gc.DEBUG_COLLECTABLE) shows that the gc is still being run. (Proba... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | user202729 |
| hostname | github.com |
| expected-hostname | github.com |
| None | ade130928b3890d20ecf9c887468a17e88d5c9a740ea2a85c2c2162e7c58e623 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c00842167ca2e5b13e8171812965d503e925ece6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width