Title: Request: normalization and `depythonize` · Issue #80 · davidhewitt/pythonize · GitHub
Open Graph Title: Request: normalization and `depythonize` · Issue #80 · davidhewitt/pythonize
X Title: Request: normalization and `depythonize` · Issue #80 · davidhewitt/pythonize
Description: When upgrading pythonize from version 0.21.0 to version 0.23.0 in tantivy-py's quickwit-oss/tantivy-py#401, we switched from extract to extract_bound (per PyO3/pyo3#3916). Now, we are hitting an issue where I64 values are becoming U64 af...
Open Graph Description: When upgrading pythonize from version 0.21.0 to version 0.23.0 in tantivy-py's quickwit-oss/tantivy-py#401, we switched from extract to extract_bound (per PyO3/pyo3#3916). Now, we are hitting an is...
X Description: When upgrading pythonize from version 0.21.0 to version 0.23.0 in tantivy-py's quickwit-oss/tantivy-py#401, we switched from extract to extract_bound (per PyO3/pyo3#3916). Now, we are hitting a...
Opengraph URL: https://github.com/davidhewitt/pythonize/issues/80
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Request: normalization and `depythonize`","articleBody":"When upgrading `pythonize` from version `0.21.0` to version `0.23.0` in `tantivy-py`'s https://github.com/quickwit-oss/tantivy-py/pull/401, we switched from `extract` to `extract_bound` (per https://github.com/PyO3/pyo3/pull/3916).\n\nNow, we are hitting an issue where `I64` values are becoming `U64` after `depythonize`.\n\nI came up with a solution in https://github.com/jamesbraza/tantivy-py/pull/1 that involves re-casting U64 back to I64 if it fits, but this is pretty hacky.\n\nIs there some way to preserve integer types across serialization/deserialization?\n\n- `I64` values remaining `I64`\n- `U64` values remaining `U64`\n\nI am wondering if there is some way `pythonize` can accommodate this, maybe by adding an opt-in flag somewhere?\n\nAlso, I am not 100% sure if this is a `pythonize` vs `pyo3` issue, but it seems to be a deserialization issue, so I opened this here.","author":{"url":"https://github.com/jamesbraza","@type":"Person","name":"jamesbraza"},"datePublished":"2025-03-02T23:11:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/80/pythonize/issues/80"}
| 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:4f85741a-dea2-f0d1-e9d6-690a465267cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DDA:E2E6A:9AD4A6:D1EF44:698F707C |
| html-safe-nonce | a60f3e7681fee9841391ef60f710f7db84a224cb0c8678e60c8a8be0395178d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RERBOkUyRTZBOjlBRDRBNjpEMUVGNDQ6Njk4RjcwN0MiLCJ2aXNpdG9yX2lkIjoiNjc0MzAxNDQ3NTEzMjAwNjUyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1823e58ae95d4976db342bf5458803c34bb6432780c117e8e87e927497558ab9 |
| hovercard-subject-tag | issue:2889848730 |
| 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/davidhewitt/pythonize/80/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03b5ca240c59a245ff34d2d654e032bda43ae90a067c40fbfc788add49daa6e1/davidhewitt/pythonize/issues/80 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03b5ca240c59a245ff34d2d654e032bda43ae90a067c40fbfc788add49daa6e1/davidhewitt/pythonize/issues/80 |
| og:image:alt | When upgrading pythonize from version 0.21.0 to version 0.23.0 in tantivy-py's quickwit-oss/tantivy-py#401, we switched from extract to extract_bound (per PyO3/pyo3#3916). Now, we are hitting an is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jamesbraza |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7ab1c9acb90dba91d5e994ebfb6bfb1130e0e0e6aca329cdbbd934d636e22ab6 |
| turbo-cache-control | no-preview |
| go-import | github.com/davidhewitt/pythonize git https://github.com/davidhewitt/pythonize.git |
| octolytics-dimension-user_id | 1939362 |
| octolytics-dimension-user_login | davidhewitt |
| octolytics-dimension-repository_id | 285867319 |
| octolytics-dimension-repository_nwo | davidhewitt/pythonize |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 285867319 |
| octolytics-dimension-repository_network_root_nwo | davidhewitt/pythonize |
| 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 | 1d6695367a1b2f05addc4030b791720f01693df4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width