Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: f2py character array variables now broken #6308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2sn opened this issue Sep 12, 2015 · 1 comment · Fixed by #19388
Closed

BUG: f2py character array variables now broken #6308

2sn opened this issue Sep 12, 2015 · 1 comment · Fixed by #19388

Comments

@2sn
Copy link
Contributor

2sn commented Sep 12, 2015

in current devel version when a character variable is defined using the asterisk form

character*8  name

and I then use

common name(12)

I get an error message from f2py like

analyzevars: character array "character*8 name(12)" is considered as "character name(12,8)"; "intent(c)" is forced.

if the first definition is changed to

character(8)

then the error goes away.

The old behaviour that is consistent with FORTRAN should be restored.
Any suggestion on bug fix?

@2sn
Copy link
Contributor Author

2sn commented Sep 12, 2015

In [1]: np.version
Out[1]: '1.11.0.dev0+3397fce'

pearu added a commit to pearu/numpy that referenced this issue Jul 2, 2021
@pearu pearu self-assigned this Jul 3, 2021
@pearu pearu linked a pull request Jul 3, 2021 that will close this issue
pearu added a commit to pearu/numpy that referenced this issue Sep 1, 2021
pearu added a commit to pearu/numpy that referenced this issue Sep 6, 2021
TST: added test for issue numpy#18684

ENH: f2py opens files with correct encoding, fixes numpy#635

TST: added test for issue numpy#6308

TST: added test for issue numpy#4519

TST: added test for issue numpy#3425

ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook.

ENH: Add support for detecting utf-16 and utf-32 encodings.
melissawm pushed a commit to pearu/numpy that referenced this issue Apr 4, 2022
TST: added test for issue numpy#18684

ENH: f2py opens files with correct encoding, fixes numpy#635

TST: added test for issue numpy#6308

TST: added test for issue numpy#4519

TST: added test for issue numpy#3425

ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook.

ENH: Add support for detecting utf-16 and utf-32 encodings.
HaoZeke pushed a commit to pearu/numpy that referenced this issue Jun 5, 2022
TST: added test for issue numpy#18684

ENH: f2py opens files with correct encoding, fixes numpy#635

TST: added test for issue numpy#6308

TST: added test for issue numpy#4519

TST: added test for issue numpy#3425

ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook.

ENH: Add support for detecting utf-16 and utf-32 encodings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants