René's URL Explorer Experiment


Title: classMap nesting, and so code object ids, depend on call order within a module · Issue #388 · getappmap/appmap-python · GitHub

Open Graph Title: classMap nesting, and so code object ids, depend on call order within a module · Issue #388 · getappmap/appmap-python

X Title: classMap nesting, and so code object ids, depend on call order within a module · Issue #388 · getappmap/appmap-python

Description: Summary The classMap position of a class, and therefore the code object id of its methods, depends on the order in which functions in its module are first called during a recording. If a module-level function is called before a method of...

Open Graph Description: Summary The classMap position of a class, and therefore the code object id of its methods, depends on the order in which functions in its module are first called during a recording. If a module-lev...

X Description: Summary The classMap position of a class, and therefore the code object id of its methods, depends on the order in which functions in its module are first called during a recording. If a module-lev...

Opengraph URL: https://github.com/getappmap/appmap-python/issues/388

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"classMap nesting, and so code object ids, depend on call order within a module","articleBody":"## Summary\n\nThe classMap position of a class, and therefore the code object id of its methods,\ndepends on the order in which functions in its module are first called during a\nrecording. If a module-level function is called before a method of a class in the same\nmodule, the module is written as a `class` node and the class is nested inside it. If\nthe method is called first, the module is a `package` node. The same method then has a\ndifferent id in different recordings (`demo/util::Box#get` versus `demo/util/Box#get`),\nso tools that match or compare code objects across recordings treat them as two\nfunctions.\n\n## Environment\n\n- appmap (Python agent) 3.0.1\n- Python 3.10, Ubuntu, pytest\n\n## Steps to reproduce\n\n```sh\nmkdir repro && cd repro\npython3 -m venv .venv\n.venv/bin/pip install appmap pytest\nmkdir -p demo tests\ntouch demo/__init__.py\ncat > demo/util.py \u003c\u003c'PY'\ndef helper(x):\n    return x + 1\n\n\nclass Box:\n    def get(self):\n        return 1\nPY\ncat > tests/test_util.py \u003c\u003c'PY'\nfrom demo.util import Box, helper\n\ndef test_method_first():\n    assert helper(Box().get()) == 2\n\ndef test_function_first():\n    helper(1)\n    assert Box().get() == 1\nPY\ncat > appmap.yml \u003c\u003c'YML'\nname: demo\nlanguage: python\nappmap_dir: tmp/appmap\npackages:\n- path: demo\nYML\n.venv/bin/appmap-python .venv/bin/python -m pytest -q\npython3 - \u003c\u003c'PY'\nimport json, glob\nfor f in sorted(glob.glob('tmp/appmap/pytest/*.json')):\n    def walk(n, p):\n        p = p + [f\"{n['type']}:{n['name']}\"]\n        if n['type'] == 'function':\n            print('   ', ' > '.join(p))\n        for c in n.get('children', []):\n            walk(c, p)\n    print(f.split('/')[-1])\n    for n in json.load(open(f))['classMap']:\n        walk(n, [])\nPY\n```\n\n## Expected\n\n`Box.get` has the same classMap path in both recordings, with `util` as a `package`\nnode in both.\n\n## Actual\n\n```\ntest_function_first.appmap.json\n    package:demo > class:util > function:helper\n    package:demo > class:util > class:Box > function:get\ntest_method_first.appmap.json\n    package:demo > package:util > class:Box > function:get\n    package:demo > package:util > function:helper\n```\n\nThe call events are the same in both cases (`defined_class` `demo.util.Box`, method\n`get`). Only the classMap differs.\n\nFirst seen on a real project indexed with `appmap index` (CLI 3.206.0) and read through\n`appmap query mcp`. There, `endaq.device.https_interface.HTTPSCommandInterface`\nmethods appear as `endaq/device/https_interface::HTTPSCommandInterface#_writeCommand` in\none recording and `endaq/device/https_interface/HTTPSCommandInterface#_writeCommand` in\nanother, and a `get_call_tree` focus on one id does not match the other recording.\n","author":{"url":"https://github.com/apps/devin-ai-integration","@type":"Person","name":"devin-ai-integration"},"datePublished":"2026-11-09T17:40:22Z","url":"https://github.com/getappmap/appmap-python/issues/388"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0acc4986-5bb8-8c38-6e96-7074c8f2505d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id86D4:177CF7:16D87FA:1D169F5:6B031025
html-safe-noncea43ba59559096129a08238d237c297351784fbb75230b5ebfb01a06975fa3578
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkQ0OjE3N0NGNzoxNkQ4N0ZBOjFEMTY5RjU6NkIwMzEwMjUiLCJ2aXNpdG9yX2lkIjoiMzcyMTQxMTY0NDE5MTA4NDU4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc5b3f8b876c3748ee68cb85370bf538f81245e4840f3d08a5fdbadc16daf7bcf
hovercard-subject-tagissue:6291380509
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getappmap/appmap-python/388/issue_layout
twitter:imagehttps://opengraph.githubassets.com/782e7b289051eb884dc9ea5d4c0c7d820c50d3ebee58c5e5c400cc930fab48f2/getappmap/appmap-python/issues/388
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/782e7b289051eb884dc9ea5d4c0c7d820c50d3ebee58c5e5c400cc930fab48f2/getappmap/appmap-python/issues/388
og:image:altSummary The classMap position of a class, and therefore the code object id of its methods, depends on the order in which functions in its module are first called during a recording. If a module-lev...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedevin-ai-integration[bot]
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/getappmap/appmap-python git https://github.com/getappmap/appmap-python.git
octolytics-dimension-user_id46610017
octolytics-dimension-user_logingetappmap
octolytics-dimension-repository_id314785884
octolytics-dimension-repository_nwogetappmap/appmap-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id314785884
octolytics-dimension-repository_network_root_nwogetappmap/appmap-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getappmap/appmap-python/issues/388#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetappmap%2Fappmap-python%2Fissues%2F388
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetappmap%2Fappmap-python%2Fissues%2F388
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getappmap%2Fappmap-python
Reloadhttps://github.com/getappmap/appmap-python/issues/388
Reloadhttps://github.com/getappmap/appmap-python/issues/388
Reloadhttps://github.com/getappmap/appmap-python/issues/388
getappmaphttps://github.com/getappmap
appmap-pythonhttps://github.com/getappmap/appmap-python
Codehttps://github.com/getappmap/appmap-python
Issues51 (51)https://github.com/getappmap/appmap-python/issues
Pull requests6 (6)https://github.com/getappmap/appmap-python/pulls
Discussionshttps://github.com/getappmap/appmap-python/discussions
Actionshttps://github.com/getappmap/appmap-python/actions
Projectshttps://github.com/getappmap/appmap-python/projects
Wikihttps://github.com/getappmap/appmap-python/wiki
Security and qualityhttps://github.com/getappmap/appmap-python/security
Insightshttps://github.com/getappmap/appmap-python/insights
https://github.com/getappmap/appmap-python
New issuehttps://github.com/login?return_to=https://github.com/getappmap/appmap-python/issues/388
New issuehttps://github.com/login?return_to=https://github.com/getappmap/appmap-python/issues/388
classMap nesting, and so code object ids, depend on call order within a modulehttps://github.com/getappmap/appmap-python/issues/388#top
https://github.com/apps/devin-ai-integration
devin-ai-integrationhttps://github.com/apps/devin-ai-integration
on Nov 9, 2026https://github.com/getappmap/appmap-python/issues/388#issue-6291380509
Sign up for freehttps://github.com/signup?return_to=https://github.com/getappmap/appmap-python/issues/388
Sign in to commenthttps://github.com/login?return_to=https://github.com/getappmap/appmap-python/issues/388
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.