BUG: Fix multiple modules in F2PY and COMMON handling#27695
BUG: Fix multiple modules in F2PY and COMMON handling#27695mattip merged 2 commits intonumpy:mainfrom
Conversation
|
@2sn could you confirm that this patch works? You can test by checking out this PR and setting up |
|
@HaoZeke Thank you very much for the fix! I installed using Yes, it is including the but it is accessible, and returns This may not be new behaviour (I do not recall having tried this before), but is a bit curious, and might be confusing. Before allocating and after allocating ( |
|
Awesome, thanks for the quick confirmation. That is kind of odd. I see its because allocatable arrays get proxied into a dimension helper This shouldn't be new behavior, but it is definitely worth reporting (and fixing). |
|
@HaoZeke should we merge this as a fix to |
Yup this fixes the |
|
Thanks @HaoZeke. It might be nice to backport this, and it probably deserves a mention in the release notes |
Closes #27622. The issue stemmed from #25186 which was patched in #25361, #26156, and #25337 but really the original change should have been scoped better.
Essentially:
f2pywrappers when modules and subroutines are present #25361commonblocks are presentThis simplification (and additional test) ensures backwards compatibility.