> > So main.py contains: > > def get_field(value, start_bit, end_bit): > <snip> > > and I see: > > >>> import main > >>> help(get_field) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > NameError: name 'get_field' is not defined > > > help(main) works ok but is rather verbose.
Try: import main help(main.get_field) _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor