On Wed, Apr 26, 2017, 6:25 AM Rudi Hammad <[email protected]> wrote:
> That make more sense now. I´ll do it like that.
> I am not sure about leaving a blank line between in the end of the doc
> string . According to PEP 8 it should be like this right?
>
I don't usually preserve that first line when doing multi line docstrings.
But I have always been using Sphinx RST and more recently Sphinx Napoleon,
and haven't noticed an issue.
>
> def my_function():
> """First line
>
> Subsequent lines
> are here.
> """
> summary = my_function.__doc__.split("\n")[0]
> print(summary)
>
>
> Anyway, I am becoming a style freak when there are so many thing I need to
> learn yet.
> So yes, I´ll stick with those conventions. Thx Marcus
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/bf4a6d7b-657a-4a64-a7de-4aab703d2b16%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/bf4a6d7b-657a-4a64-a7de-4aab703d2b16%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3Gxd-pc-buQZ5aL5LnATypoMk0qdFhoWu%2B9KDzHNPJiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.