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

Python help(f3d) is not helpful #1019

Open
Meakk opened this issue Sep 30, 2023 · 2 comments
Open

Python help(f3d) is not helpful #1019

Meakk opened this issue Sep 30, 2023 · 2 comments

Comments

@Meakk
Copy link
Member

Meakk commented Sep 30, 2023

Describe the bug
Running help(f3d) is not helpful and returns:

Help on package f3d:

NAME
    f3d

DESCRIPTION
    # This file is auto-generated by CMake, do not edit!
    # Refer to python/__init__.py.in source file

PACKAGE CONTENTS
    pyf3d

FUNCTIONS
    add_deprecation_warnings()

    deprecated_decorator(f, reason)

    f3d_options_update(self, arg)

DATA
    F3D_ABSOLUTE_DLLS = []
    F3D_RELATIVE_DLLS = ['bin']
    rel_path = 'bin'
    root = WindowsPath('C:/Users/Michael/AppData/Local/Programs/Python/Pyt...

VERSION
    2.2.0-RC2

FILE
    c:\users\michael\appdata\local\programs\python\python39\lib\site-packages\f3d\__init__.py

To Reproduce
Steps to reproduce the behavior:

import f3d
help(f3d)

Expected behavior
We should fill the expected information

F3D Information
2.2 RC2

@mwestphal mwestphal added this to the 2.4.0 milestone Oct 1, 2023
@mwestphal mwestphal added the help wanted Please help with this issue! label Jan 7, 2024
@mwestphal
Copy link
Contributor

@Meakk @snoyer do you know what we need to do to improve this ?

@mwestphal mwestphal removed the help wanted Please help with this issue! label Jan 26, 2024
@snoyer
Copy link
Contributor

snoyer commented Jan 26, 2024

I believe it is generated through https://docs.python.org/3/library/pydoc.html so we'd need to study the documentation.

off the top of my head:

  • having a doctring at the top of the file ("""triple quoted text""") should avoid it picking up the # This file is auto-generated by comment as description
  • the internal stuff we don't want to show up can be prefixed with underscore to "make it private", ie. rename F3D_ABSOLUTE_DLLS to _F3D_ABSOLUTE_DLLS and so on
  • not sure how to make it list the functions from the pybind lib tho

@Meakk Meakk added this to F3D Feb 2, 2024
@mwestphal mwestphal removed this from the 2.4.0 milestone Feb 3, 2024
@mwestphal mwestphal moved this to To do in F3D Feb 10, 2024
@mwestphal mwestphal mentioned this issue Jan 25, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

3 participants