Skip to content

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

Merged
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-23194
Feb 14, 2023
Merged

BUG: fix for f2py string scalars (#23194)#23206
charris merged 1 commit intonumpy:maintenance/1.24.xfrom
charris:backport-23194

Conversation

@charris
Copy link
Copy Markdown
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
Copy Markdown
Member Author

charris commented Feb 14, 2023

Hmm, the refguide checks have gone bad.

@charris
Copy link
Copy Markdown
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.

2 participants