Skip to content

BUG: f2py does not print names of COMMON data block items #15308

Closed
@melissawm

Description

@melissawm

This can be seen if one executes this example from the docs: running

f2py -c -m common common.f

and then importing in python gives the following output:

>>> import common
>>> print(common.data.__doc__)
'i'-scalar
'i'-array(4)
'f'-array(2,3)

The expected output is

>>> print(common.data.__doc__)
i - 'i'-scalar
x - 'i'-array(4)
a - 'f'-array(2,3)

This has been introduced sometime in the past as the correct output is listed in the current version of the docs.

>>> import sys, numpy; print(numpy.__version__, sys.version)
1.19.0.dev0+b7d0258 3.6.7 | packaged by conda-forge | (default, Jul  2 2019, 02:18:42) 
[GCC 7.3.0]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions