help output truncated [solved]

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

help output truncated [solved]

Post by edwilliams16 »

Code: Select all

 s = Part.BSplineSurface()
 help(s)
gives a truncated output. I haven't found a reasonable work-around yet.


EDIT:

Code: Select all

def fullhelp(obj):
   list = [(getattr(obj, d), d) for d in obj.__dir__() if d[0] != '_' and not d[0].isupper()]
   [help(l[0]) for l in sorted(list, key = lambda s: s[1])]
does the job. That was arcane! I'm sure there's a better way.
User avatar
onekk
Veteran
Posts: 6206
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: help output truncated [solved]

Post by onekk »

I have noted the problem, probably it depends on the fact that output is truncated to a certain amount of character, and probably the output of help is returned as a single string.

If the workaround is working good to know.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply