Changes between Initial Version and Version 1 of Ticket #36158


Ignore:
Timestamp:
Jan 30, 2025, 11:49:06 AM (6 hours ago)
Author:
Salvo Polizzi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36158

    • Property Summary `get_and_report_namespace` incorrectly reports the location where an object was created.get_and_report_namespace() incorrectly reports the location where an object was created.
  • Ticket #36158 – Description

    initial v1  
    1 
    21
    32When `get_and_report_namespace` is called with `verbosity=2`, it misreports the actual location where an object was created. This seems to happen because the function only considers objects with a `__module__` attribute. While this works correctly for functions and classes (which are defined in a module), it fails for instances. Since instances can be created elsewhere, the function incorrectly reports the module where the class was defined rather than where the instance was created.
Back to Top