Skip to content
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

BUG: fix for f2py string scalars (#23194) #23206

Merged
merged 1 commit into from Feb 14, 2023

Conversation

charris
Copy link
Member

@charris charris commented Feb 14, 2023

Backport of #23194.

Closes #23192

in previous version, any string scalar was converted to a string array of dimension len, i.e., a definition

character(len=N) :: X

effectively became

character(len=NNN), dimension(NNN) :: X

from the point of few of the numpy (python) interface:

X.shape == (NNN,)
X.dtype == '|SNNN'

in previous version, any string scalar was converted to a string array of dimension len, i.e., a definition

character(len=N) :: X
effectively became

character(len=NNN), dimension(NNN) :: X
from the point of few of the numpy (python) interface:

X.shape == (NNN,)
X.dtype == '|SNNN'

Closes numpygh-23192
@charris
Copy link
Member Author

charris commented Feb 14, 2023

Hmm, the refguide checks have gone bad.

@charris
Copy link
Member Author

charris commented Feb 14, 2023

@rossbar Have I missed a documentation check that needs fixing?

@charris charris closed this Feb 14, 2023
@charris charris reopened this Feb 14, 2023
@charris charris added this to the 1.24.3 release milestone Feb 14, 2023
@charris charris merged commit 40545d4 into numpy:maintenance/1.24.x Feb 14, 2023
@charris charris deleted the backport-23194 branch February 14, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants