Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197439
| From | Lawrence D'Oliveiro <ldo@nz.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: backslash in triple quoted string (Posting On Python-List Prohibited) |
| Date | 2025-05-08 23:07 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <vvjdg9$27gfo$6@dont-email.me> (permalink) |
| References | <CA+HdcZhMPvojVkAnGNy6-qA1Lf8LDG_Wjxef0xfSNQzU=BUEzw@mail.gmail.com> <CAJQBtgmV0+EViR6yWoY22VjHiVZOD6eaPiAhDfUMJRQRj=PfCQ@mail.gmail.com> <CAJQBtgk7ZoURixi3404asBzJX4X2A5pbCsd6SVWuqbqnMgOgQw@mail.gmail.com> <mailman.34.1746684378.3008.python-list@python.org> <documentation-20250508163928@ram.dialup.fu-berlin.de> |
I mostly don’t bother with triple-quoted strings. I think they’re
badly designed.
Here’s an example of what my docstrings look like:
class Matrix :
"representation of a 3-by-2 affine homogeneous matrix. This does not" \
" actually use any Cairo routines to implement its calculations; these" \
" are done entirely using Python numerics. The from_cairo and to_cairo" \
" methods provide conversion to/from cairo_matrix_t structs. Routines" \
" elsewhere expect this Matrix type where the underlying Cairo routine" \
" wants a cairo_matrix_t, and return this type where the Cairo routine" \
" returns a cairo_matrix_t."
...
#end Matrix
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar
Re: backslash in triple quoted string Left Right <olegsivokon@gmail.com> - 2025-05-08 08:05 +0200 Re: backslash in triple quoted string (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-05-08 23:07 +0000
csiph-web