Title: Multiprocessing returns Array, RawArray of wrong length python 3.10.4 · Issue #98447 · python/cpython · GitHub
Open Graph Title: Multiprocessing returns Array, RawArray of wrong length python 3.10.4 · Issue #98447 · python/cpython
X Title: Multiprocessing returns Array, RawArray of wrong length python 3.10.4 · Issue #98447 · python/cpython
Description: Bug report When initializing Array or RawArray of type int, wrong length of the arrays is returned Reproducible example: from multiprocessing import RawArray, RawValue, Array, Value a = Array('d',12) X = np.frombuffer(a.get_obj()) print(...
Open Graph Description: Bug report When initializing Array or RawArray of type int, wrong length of the arrays is returned Reproducible example: from multiprocessing import RawArray, RawValue, Array, Value a = Array('d',1...
X Description: Bug report When initializing Array or RawArray of type int, wrong length of the arrays is returned Reproducible example: from multiprocessing import RawArray, RawValue, Array, Value a = Array('...
Opengraph URL: https://github.com/python/cpython/issues/98447
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multiprocessing returns Array, RawArray of wrong length python 3.10.4","articleBody":"# Bug report\r\nWhen initializing Array or RawArray of type int, wrong length of the arrays is returned\r\n\r\nReproducible example:\r\n```\r\nfrom multiprocessing import RawArray, RawValue, Array, Value\r\na = Array('d',12)\r\nX = np.frombuffer(a.get_obj())\r\nprint(X) # [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\r\n\r\na = Array('i',12)\r\nX = np.frombuffer(a.get_obj())\r\nprint(X) # [0. 0. 0. 0. 0. 0.]\r\n\r\na = RawArray('d',12)\r\nX = np.frombuffer(a)\r\nprint(X) # [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]\r\n\r\na = RawArray('i',12)\r\nX = np.frombuffer(a)\r\nprint(X) # [0. 0. 0. 0. 0. 0.]\r\n```\r\n\r\n# Your environment\r\nworking with vscode\r\nconda-forge python 3.10.4\r\nusing ubuntu uname-a: 5.11.0-46-generic #51~20.04.1-Ubuntu SMP Fri Jan 7 06:51:40 UTC 2022\r\n\r\n- CPython versions tested on: conda-forge python 3.10.4\r\n- Operating system and architecture: using ubuntu uname-a: 5.11.0-46-generic 51~20.04.1-Ubuntu\r\n","author":{"url":"https://github.com/tendermonster","@type":"Person","name":"tendermonster"},"datePublished":"2022-10-19T13:59:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/98447/cpython/issues/98447"}
| 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:c154c9e2-1019-07d6-c509-1c4dc4589afa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB4C:C16D8:60A652:88A198:696A4A88 |
| html-safe-nonce | 7fb216e8cb3d58ded0038e1221c8e965b54fbb4c5da16147cf89164814f7f0e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjRDOkMxNkQ4OjYwQTY1Mjo4OEExOTg6Njk2QTRBODgiLCJ2aXNpdG9yX2lkIjoiMzA3NDc1OTQ4MjU4Nzg5MjM2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 655c2375cf18542f23b0a1c043e6e17793ba19855c42ad279c598e449fdf237e |
| hovercard-subject-tag | issue:1415032409 |
| 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/python/cpython/98447/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8f4a024fcdca65232e7dbdf2ef463b3964d6d0bb8b9fda1335d948d572e44b1/python/cpython/issues/98447 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8f4a024fcdca65232e7dbdf2ef463b3964d6d0bb8b9fda1335d948d572e44b1/python/cpython/issues/98447 |
| og:image:alt | Bug report When initializing Array or RawArray of type int, wrong length of the arrays is returned Reproducible example: from multiprocessing import RawArray, RawValue, Array, Value a = Array('d',1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tendermonster |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width