[Python] How should I format a long url in a python comment and still be PEP8 compliant

Discussão em 'Python' iniciado por Stack, Junho 6, 2025.

  1. Stack

    Stack Membro Participativo

    In a block comment, I want to reference a URL that is over 80 characters long.

    What is the preferred convention for displaying this URL?

    I know bit.ly is an option, but the URL itself is descriptive. Shortening it and then having a nested comment describing the shortened URL seems like a crappy solution.

    Continue reading...

Compartilhe esta Página