Skip to content

Defining a module foo results in foo.foo being available #1399

@not-my-profile

Description

@not-my-profile

Run maturin new -b pyo3 foo, followed by maturin dev in a venv.

>>> import foo
>>> foo.foo
<module 'foo.foo' from '/tmp/venv/lib/python3.9/site-packages/foo/foo.cpython-39-x86_64-linux-gnu.so'>

I would expect foo.foo to be undefined. The same can be observed when using rust-cpython.

Versions:

  • maturin 0.14.8
  • Python 3.9.2
  • pip 20.3.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions