#!/usr/bin/python3
In my tests it works specifically for macOS‘ own /usr/bin/python3

For my installations I can upgrade to 3.14.10 for the fix
October 29, 2026 at 5:01 PM
Three things I check on every stdio MCP server:

1. stdout is the JSON-RPC channel. One stray print() breaks it, so logs go to stderr.
2. The client starts the process, often without your shell's PATH. Use absolute paths.
3. Tool descriptions are what the model reads. Keep them short and specific.
November 2, 2026 at 11:03 AM
Ну можно строки использовать...

```py
#!/usr/bin/python3

"""
Copyright (c) Starrysparklez 2026. All rights reserved.

Тут какие-то условия
И ещё условия
"""

from kapets import kapets
...
```

Чем не комментарии? Хотя зачастую используется как документация к файлу, классам и функциям, но все же
October 25, 2026 at 8:29 AM
======================
> #!/usr/bin/python3
> from scapy.all import *
> pkt = sniff(iface='swablusky', filter='icmp or udp', count=10)
> pkt.summary()
======================
October 20, 2026 at 11:46 PM
Update: the X-39 verifier is now hardened and open. It checks an evidence
bundle without trusting us — and now handles bundles repackaged on macOS too.
Open ZIP profile + a JS reference kept in parity with Python, so anyone can
audit the rules.

Run it. Break it.
→ x39matrix.org/verify_bundle.py
https://x39matrix.org/verify_bundle.py
#!/usr/bin/env python3 """ verify_bundle.py - verificador de referencia offline de X-39 Notaria. Verifica un bundle de evidencia (x39-evidencia-<aid>.zip) SIN confiar en X-39: 1. Integridad : s...
x39matrix.org
October 14, 2026 at 1:36 PM
But if you bundle your package with zipapp (see tip #281), __file__ points INSIDE the ".pyz" file, so reading that path fails:

NotADirectoryError: [Errno 20] Not a directory: 'dinner.pyz/dinner/recipes.json'
Trey Hunner (@trey.io)
Python Tip #281 (of 365): Bundle your package into one runnable file with zipapp. 🧵 $ python3 -m zipapp src -m "greet.cli:main" -p "/usr/bin/env python3" -o greet.pyz $ python3 greet.pyz Hello from…
bsky.app
October 9, 2026 at 1:27 PM
Python Tip #281 (of 365):

Bundle your package into one runnable file with zipapp. 🧵

$ python3 -m zipapp src -m "greet.cli:main" -p "/usr/bin/env python3" -o greet.pyz
$ python3 greet.pyz
Hello from greet!
$ ./greet.pyz
Hello from greet!

#Python #DailyPythonTip
October 8, 2026 at 5:27 PM
For the records: `cat >/tmp/mixed-script-test.py <<'PY' #!/usr/bin/env python3 import sys import re import unicodedata words = re.compile(r"[^\W\d_]+", re.UNICODE) def script(ch): if not ch.isalpha(): return None name = unicodedata.name(ch, "") if "LATIN" in name: return "LATIN" if "CYRILLIC" in […]
Original post on mastodon.trueten.de
mastodon.trueten.de
October 3, 2026 at 11:53 AM
The files are in /usr/local/bin/ and /usr/local/bin/python3-helpers/

Същата работа.
September 25, 2026 at 7:38 AM
Nice snippet I just saw for Python and its command line parser. Put it into your toolbox and use it:

```python
cli = argparse.ArgumentParser(description=__doc__)
```

#python
September 24, 2026 at 11:10 AM
I guess we live here now
September 15, 2026 at 6:16 AM
it took literally half the day to chew through the prefill (i wonder what's in there? 13788 tok is a lot, i should probably clean up my AGENTS md), but i'm able to use the local K3 instance in maki to work on code
(assuming the prefix is static, caching will help)
September 6, 2026 at 9:13 PM
Oh yeah, and reminder to also run either "sudo systemctl enable nbfc_service.service" or "sudo systemctl enable nbfc_service" so it runs on startup, and also to add the command "python3 /usr/bin/nbfc-qt-tray" as a startup application to have a tray icon for speed control.
September 1, 2026 at 1:36 PM
So first you change...

'#! /usr/bin/python' to '#! /usr/bin/python3'

And start debugging. :D
August 28, 2026 at 5:58 AM
But what do you think @alphamonster.creature.cool
August 27, 2026 at 7:38 AM
#!/usr/bin/python3
"""Generate AI company value"""
import random

def main():
"""Calculate value"""
random_number = random.randint(10000000000000, 100000000000000)
print("Company value is: ", random_number, "Dollars")

if __name__ == "__main__":
main()
August 25, 2026 at 7:01 PM
Just discovered `ldd` — shows all shared library dependencies of any binary on Linux. Great for figuring out why a compiled program won't run on a different system. Try `ldd /usr/bin/python3` and prepare to be amazed. #linux
May 4, 2026 at 5:00 AM
When you realize you have 3.8.2 installed as /usr/bin/python3 and 3.9 as /usr/local/bin/python3
November 26, 2024 at 3:52 PM
#!/usr/bin/env python3
import datetime
today = datetime.date.today()
first = today.replace(day=1)
last_month = first - datetime.timedelta(days=1)
print("It's the 1st "+today.strftime("%B")+"! Feels like only yesterday it was "+last_month.strftime("%B")+".")
February 1, 2026 at 10:34 AM
Out of curiosity, asked ChatGPT. It was a bit fluffy with comments and a needless status line (and added argument parsing thanks to how I phrased it), but it got the job done.

This guy uses LLMs like someone who buys books to give the shelves some color.
February 6, 2025 at 10:20 PM
PATH
September 23, 2024 at 6:35 PM
I've used this 'seed' a few times now (code in alt text), with multiple models and every time I get something useful out. Tell it to "improve this script" once, then bootstrap to taste. It does need an Opus-4.6 level model to one-shot it, but cheaper models can get you there eventually.
March 2, 2026 at 2:59 PM
I hate python I hate pyevn I hate brew install python I hate usr/local/bin symlink python and I hate python alias for python3
January 17, 2024 at 12:17 AM