Skip to content

MAINT: Minor cleanups after merging gh-19805 #19961

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

Merged
merged 1 commit into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/release/upcoming_changes/19805.new_feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Symbolic parser for Fortran dimension specifications
----------------------------------------------------
A new symbolic parser has been added to f2py in order to correctly parse
dimension specifications. The parser is the basis for future improvements
and provides compatibility with Draft Fortran 202x.
4 changes: 2 additions & 2 deletions numpy/f2py/tests/test_crackfortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def test_multiple_relevant_spaces(self):


class TestDimSpec(util.F2PyTest):
"""This test site tests various expressions that are used as dimension
"""This test suite tests various expressions that are used as dimension
specifications.

There exists two usage cases where analyzing dimensions
Expand All @@ -183,7 +183,7 @@ class TestDimSpec(util.F2PyTest):
`lower` and `upper` are arbitrary expressions of input parameters.
The evaluation is performed in C, so f2py has to translate Fortran
expressions to valid C expressions (an alternative approach is
that a developer specifies the corresponing C expressions in a
that a developer specifies the corresponding C expressions in a
.pyf file).

In the second case, when user provides an input array with a given
Expand Down