Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197439
| Path | csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Lawrence D'Oliveiro <ldo@nz.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: backslash in triple quoted string (Posting On Python-List Prohibited) |
| Date | Thu, 8 May 2025 23:07:54 -0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| 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> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Fri, 09 May 2025 01:07:54 +0200 (CEST) |
| Injection-Info | dont-email.me; posting-host="f688fb82bfdbd1d9fb6edb26b3dd8b1f"; logging-data="2343416"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pM/5v0mKR6pVhf+BS9qnd" |
| User-Agent | Pan/0.162 (Pokrosvk) |
| Cancel-Lock | sha1:m+Vyz/j3Z1Z8oibIHIStNAa9nDk= |
| Xref | csiph.com comp.lang.python:197439 |
Show key headers only | View raw
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