Title: libpython-clj2.metadata/pyarglists is not returning 'defaults' · Issue #284 · clj-python/libpython-clj · GitHub
Open Graph Title: libpython-clj2.metadata/pyarglists is not returning 'defaults' · Issue #284 · clj-python/libpython-clj
X Title: libpython-clj2.metadata/pyarglists is not returning 'defaults' · Issue #284 · clj-python/libpython-clj
Description: When using fn libpython-clj2.metadata/pyarglists the deafults are not shown, see below. py-fn-argspec seems to find them, but then they get eaten up, to me on this line: libpython-clj/src/libpython_clj2/metadata.clj Line 150 in 97dff5c (...
Open Graph Description: When using fn libpython-clj2.metadata/pyarglists the deafults are not shown, see below. py-fn-argspec seems to find them, but then they get eaten up, to me on this line: libpython-clj/src/libpython...
X Description: When using fn libpython-clj2.metadata/pyarglists the deafults are not shown, see below. py-fn-argspec seems to find them, but then they get eaten up, to me on this line: libpython-clj/src/libpython...
Opengraph URL: https://github.com/clj-python/libpython-clj/issues/284
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"libpython-clj2.metadata/pyarglists is not returning 'defaults'","articleBody":"When using fn `libpython-clj2.metadata/pyarglists` the deafults are not shown, see below.\n`py-fn-argspec` seems to find them, but then they get eaten up, to me on this line:\nhttps://github.com/clj-python/libpython-clj/blob/97dff5cdf75ccd5f01efe3e4a51f42006620c270/src/libpython_clj2/metadata.clj#L150\n\n`[(symbol k) (keyword k)]` seems wrong, should be: `[(symbol k) (keyword v)]`\nbut (keyword x) returns for example \"nil\" on `true`, so defaults `true` are lost.\n\nI think `[(symbol k) v]` should work, but not sure if for all cases.\n\n```\n(libpython-clj2.python/from-import os fwalk)\n(-\u003e \n (libpython-clj2.metadata/py-fn-argspec fwalk)\n (libpython-clj2.metadata/pyarglists))\n\n;;=\u003e [[\u0026 [{top :top, topdown :topdown, onerror :onerror, follow_symlinks :follow_symlinks, dir_fd :dir_fd}]]\n;; [\u0026 [{top :top, topdown :topdown, follow_symlinks :follow_symlinks, dir_fd :dir_fd}]]\n;; [\u0026 [{top :top, follow_symlinks :follow_symlinks, dir_fd :dir_fd}]]\n;; [\u0026 [{follow_symlinks :follow_symlinks, dir_fd :dir_fd}]]]\n\n```\n\nin python:\n\n```\n\u003e\u003e\u003e import os\n\u003e\u003e\u003e help (os.fwalk)\nfwalk (top='.', topdown=True, onerror=None, *, follow_symlinks=False, dir_fd=None)\n```\n","author":{"url":"https://github.com/behrica","@type":"Person","name":"behrica"},"datePublished":"2026-04-10T21:40:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/284/libpython-clj/issues/284"}
| 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:8d8666f5-cec3-60a0-1f3e-1ba460f3e90d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAA8:30AAFB:2319778:3363BC8:6A60CC06 |
| html-safe-nonce | e12df89f7edf6875d76e203d6c6685a3c101ee3de21ca4e869fbc828bed263f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUE4OjMwQUFGQjoyMzE5Nzc4OjMzNjNCQzg6NkE2MENDMDYiLCJ2aXNpdG9yX2lkIjoiNDkzOTYzNzQzOTMyODIwOTkyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6a98b0ef68fa2e8109a2c0b755c07e80375ceab164a8b1546490a96b672685e8 |
| hovercard-subject-tag | issue:4241865829 |
| 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/clj-python/libpython-clj/284/issue_layout |
| twitter:image | https://opengraph.githubassets.com/738221e9a60da0af45ce556186c9496aced58c6f5166b3478038072b027134b4/clj-python/libpython-clj/issues/284 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/738221e9a60da0af45ce556186c9496aced58c6f5166b3478038072b027134b4/clj-python/libpython-clj/issues/284 |
| og:image:alt | When using fn libpython-clj2.metadata/pyarglists the deafults are not shown, see below. py-fn-argspec seems to find them, but then they get eaten up, to me on this line: libpython-clj/src/libpython... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | behrica |
| hostname | github.com |
| expected-hostname | github.com |
| None | a9556c67fd2e63f5fecafc192915a3b089ef8170a9384ff6b59d7b4a2f6b73f8 |
| turbo-cache-control | no-preview |
| go-import | github.com/clj-python/libpython-clj git https://github.com/clj-python/libpython-clj.git |
| octolytics-dimension-user_id | 60827878 |
| octolytics-dimension-user_login | clj-python |
| octolytics-dimension-repository_id | 187095617 |
| octolytics-dimension-repository_nwo | clj-python/libpython-clj |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 187095617 |
| octolytics-dimension-repository_network_root_nwo | clj-python/libpython-clj |
| 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 | f464e59c3a800187a50f3c89c36ee16df9992c1b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width