Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197030
| From | Lawrence D'Oliveiro <ldo@nz.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Spot The Syntax Error (Posting On Python-List Prohibited) |
| Date | 2024-11-21 01:11 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <vhm1c1$bbm8$1@dont-email.me> (permalink) |
We’ve all seen it happen: some small screwup in the whitespace when posting some Python code online turns the code into gibberish. Here’s another example: <https://www.tomshardware.com/raspberry-pi/raspberry-pi-pico/how-to-send-and-receive-bluesky-posts-with-a-raspberry-pi-pico-w>. Luckily, this is a small mistake, and it should be easy to guess what the correct code is. (Actually, there might be a second mistake, though this one affects the logic rather than the syntax.) This is yet another reason why I like to put “#end” comments in my code: they provide some extra redundancy, which makes it easier to recover from mistakes like this.
Back to comp.lang.python | Previous | Next | Find similar
Spot The Syntax Error (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-21 01:11 +0000
csiph-web