Title: Debug cannot be disabled when running MemoryModule · Issue #11 · naksyn/PythonMemoryModule · GitHub
Open Graph Title: Debug cannot be disabled when running MemoryModule · Issue #11 · naksyn/PythonMemoryModule
X Title: Debug cannot be disabled when running MemoryModule · Issue #11 · naksyn/PythonMemoryModule
Description: Once pythonmemorymodule is imported, if you attempt to call the MemoryModule function and explicitly set debugging to False, it is ignored import pythonmemorymodule pythonmemorymodule.MemoryModule(data=dll, debug=False) Running the above...
Open Graph Description: Once pythonmemorymodule is imported, if you attempt to call the MemoryModule function and explicitly set debugging to False, it is ignored import pythonmemorymodule pythonmemorymodule.MemoryModule(...
X Description: Once pythonmemorymodule is imported, if you attempt to call the MemoryModule function and explicitly set debugging to False, it is ignored import pythonmemorymodule pythonmemorymodule.MemoryModule(...
Opengraph URL: https://github.com/naksyn/PythonMemoryModule/issues/11
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Debug cannot be disabled when running MemoryModule","articleBody":"Once pythonmemorymodule is imported, if you attempt to call the MemoryModule function and explicitly set debugging to False, it is ignored\n\n```python\nimport pythonmemorymodule\npythonmemorymodule.MemoryModule(data=dll, debug=False)\n```\n\nRunning the above will still result in debug level logging being output.\n\nThe reason for this appears to be on line 478 of the `__init__` file, which has the following content:\n\n```python\nself._debug_ = debug or debug_output\n```\n\nThe issue is the use of `or` here, if you explicitly set debug to False, then it checks the value for debug_output, which is set earlier to `__debug__`. This value always equates to True unless you call python with a `-o` based on my reading, which makes the debug kwarg not actually do anything because it will always result in a True in most cases.\n\nIdeally, this would be fixed by removing the `or` and just letting the debug kwarg dictate if debugging is desired. If debug logging is the intended default, then setting the default value of debug to True in the function definition would likely be the better solution.\n\nThanks for your time.","author":{"url":"https://github.com/rkbennett","@type":"Person","name":"rkbennett"},"datePublished":"2025-04-11T20:56:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/11/PythonMemoryModule/issues/11"}
| 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:eeeb4bbe-aed9-ff76-8f7c-21583888ac2f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C64:100A1E:93075B:C4C3A2:698EDE51 |
| html-safe-nonce | b0dec66f97f162c45134f5fa8763380825e17887a749d694cb479e7b753c0f6c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzY0OjEwMEExRTo5MzA3NUI6QzRDM0EyOjY5OEVERTUxIiwidmlzaXRvcl9pZCI6IjU1ODQ3MDExNTQ0ODEwNjk2NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9f1a1ba4412349120bd676434b8742cb162113bbd5128ce302628add8004da75 |
| hovercard-subject-tag | issue:2989713174 |
| 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/naksyn/PythonMemoryModule/11/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5930d091b9329c0ebf5d16cb4bba70112335bc0c5600eeb6c13337d7e14375ef/naksyn/PythonMemoryModule/issues/11 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5930d091b9329c0ebf5d16cb4bba70112335bc0c5600eeb6c13337d7e14375ef/naksyn/PythonMemoryModule/issues/11 |
| og:image:alt | Once pythonmemorymodule is imported, if you attempt to call the MemoryModule function and explicitly set debugging to False, it is ignored import pythonmemorymodule pythonmemorymodule.MemoryModule(... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rkbennett |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/naksyn/PythonMemoryModule git https://github.com/naksyn/PythonMemoryModule.git |
| octolytics-dimension-user_id | 59816245 |
| octolytics-dimension-user_login | naksyn |
| octolytics-dimension-repository_id | 585501613 |
| octolytics-dimension-repository_nwo | naksyn/PythonMemoryModule |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 585501613 |
| octolytics-dimension-repository_network_root_nwo | naksyn/PythonMemoryModule |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width