python

Back Open Paginator
07.08.2025 19:25
sergio_101 (@sergio_101@social.sixdegreesofohio.com)

@HelenJoScott @maartenballiauw

i am split pretty equally between #elixir , #python, and #csharp ..

All of which are very different approaches to problem solving. I am super impressed that the solutions presented are "in the spirit of" the current language/framework.




Show Original Post


07.08.2025 19:22
GripNews (@GripNews@mastodon.social)

🌘 防止 Python 套件安裝程式的 ZIP 解析器混淆攻擊
➤ PyPI 加強安全性,封鎖 ZIP 混淆攻擊,保護 Python 生態系
blog.pypi.org/posts/2025-08-07
Python 套件索引 (PyPI) 已實施新的安全措施,旨在防範利用 ZIP 檔案格式曖昧性所導致的套件安裝程式混淆攻擊。此類攻擊可能允許惡意套件繞過審查。PyPI 將拒絕包含無效記錄、重複檔名、標頭不符、尾隨資料或錯誤目錄定位值的 ZIP 檔案。此外,PyPI 將就 ZIP 內容與 RECORD 檔案不符的套件發送警告,並預計於 2026 年 2 月開始拒絕此類套件。建議套件維護者更新建置流程,安裝程式則應確保其 ZIP 解析遵循標準並檢查 Central Directory,同時驗證 RECORD 檔案。
+ 這項更新對 PyPI 的安全性至關重要,希望其他套件管理器也能跟進。
+ 感謝 Seth Larson 的貢獻,這能讓 Python 生




Show Original Post


07.08.2025 19:17
treyhunner (@treyhunner@mastodon.social)

Python allows for some funny code sometimes.

>>> numbers = [2, 1, 3, 4, 7]
>>> numbers[::-1] = reversed(numbers)
>>> numbers
[2, 1, 3, 4, 7]
>>> numbers[::-1] = sorted(numbers)
>>> numbers
[7, 4, 3, 2, 1]




Show Original Post


07.08.2025 19:14
meejah (@meejah@mastodon.social)

Terminals, pseudoterminals, PTYs, oh my.

How does e.g. "tmux" do its "switch screen" stuff, and can I do it with + Rich? I've found "pymux", which appears to be emulating vt100 in Python ... and then I guess re-rendering to the "real" screen? Is that what does (too much C for me to grok)?

There's also jvns.ca/blog/2025/06/24/new-zi from @b0rk which is great




Show Original Post


07.08.2025 18:40
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

PyPI: Preventing ZIP parser confusion attacks on Python package installers

blog.pypi.org/posts/2025-08-07




Show Original Post


07.08.2025 18:37
notes (@notes@cafe.jyrgi.de)

Der Hörgeräteakustiker hat einen Hörtest gemacht. Hat sich nicht viel verändert.
Die Kurven habe ich gleich auch in meine
#AirPods versucht einzulesen. Hat nicht geklappt, also hab ich fix selbst ein Diagramm mit #Python erstellt. Damit ging es.
Falls jemand Interesse hat, ich kann den schnell zusammengehackten Code schicken.




Show Original Post


07.08.2025 18:27
vossisboss (@vossisboss@fosstodon.org)

I gave some #AI tools this time around when I was working on a Wagtail CMS project. TLDR: They were a net positive, but they didn't always get things right for Wagtail. I wrote up a couple things you should watch out for if you're experimenting or #vibecoding with these tools.

Have you used these tools for your Wagtail projects yet. How's it going?

wagtail.org/blog/what-ai-tools

#WagtailCMS #Django #Python #Programming




Show Original Post


07.08.2025 18:14
pawamoy (@pawamoy@fosstodon.org)

I find it cumbersome to type `help(`, then a symbol name, then `)` and enter to see help for this symbol, in a #Python interpreter.

So I added this to my `~/.pythonrc` file:

```python
import builtins

class _Help:
def __call__(self, o):
return builtins.help(o)

def __truediv__(self, o):
return builtins.help(o)

def __rtruediv__(self, o):
return builtins.help(o)

help = _Help()
```

...which lets me type `name / help` or `help / name` 😄




Show Original Post


07.08.2025 18:13
ajaxStardust (@ajaxStardust@social.vivaldi.net)

What's your go-to, super-simple, publishing stack?

What is #Gatsby ? You use it? #Gatsbyjs #netlify maybe? someone is building a new site w/ that. VS Codium maybe? i think. maybe? #Codium #VScodium @Liquidream

I want simple. Something like this. Not so spartan as my .md notes,
and
not
in
#Python I suppose.

thoughts?

i mess w/ #WinterCMS but i'm thinking even more simple. wanna mess w/ opts to mod server-side content

do people still do that?





Show Original Post


07.08.2025 18:12
bterwijn (@bterwijn@fosstodon.org)

SOLUTION: raw.githubusercontent.com/bter
explanation: github.com/bterwijn/memory_gra

#Python #memory_graph #Quiz #Mutable #Immutable





Show Original Post


07.08.2025 16:58
carlton (@carlton@chaos.social)

There’s a uv livestream on the PyCharm YouTube channel any minute (like now!) It’s got @mkennedy, our very own @wsvincent, and I think maybe some other notables.

I can’t go. Something about having 4 kids, and these things always being scheduled at tea time. But maybe you’d like it? 🍿

youtube.com/watch?v=Uh8CMtaWPpc #Python




Show Original Post


07.08.2025 16:41
eobet (@eobet@oldbytes.space)

As soon as I learned about it I had to make this etymologically correct Python logo! 😁 #Python #Logo #Design





Show Original Post


1 ...1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 ...1546
UP