PythonHub
2.33K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Everything You Can Do with Python's textwrap Module

Python has many options for formatting strings and text, including f-strings, format() function, templates and more. There's however one module that few people know about and it's called textwrap. This module is specifically built to help you with line-wrapping, indentation, trimming and more, and in this article we will look at all the things you can use it for.

https://martinheinz.dev/blog/108
Not just NVIDIA: GPU programming that runs everywhere

If you want to run GPU programs in CI, on Macs, and more, wgu-py is a good option.

https://pythonspeed.com/articles/gpu-without-cuda/
Engineering Practices for LLM Application Development

LLM engineering involves much more than just prompt design or prompt engineering. In this article, we share a set of engineering practices that helped us deliver a prototype LLM application rapidly and reliably in a recent project. We'll share techniques for automated testing and adversarial testing of LLM applications, refactoring, as well as considerations for architecting LLM applicat...

https://martinfowler.com/articles/engineering-practices-llm.html
Adopt-ruff: find uncobfigured rules easily

Adopt ruff faster into your existing repo: find the easiest rules to start with

https://github.com/ScDor/adopt-ruff
Meta loves Python

Meta engineers discuss their contributions to Python 3.12, including new features such as custom JIT hooks, Immortal Objects, type system improvements, and faster comprehensions, highlighting their collaboration with the Python community and the company's support for open source

https://engineering.fb.com/2024/02/12/developer-tools/meta-loves-python/
ml-mgie

Apple's new open-source AI model that can edit images based on natural language instructions.

https://github.com/apple/ml-mgie
Ask HN: Which Python type checker should I use?

https://news.ycombinator.com/item?id=39416443
Why AI has a Python Problem

Artificial Intelligence (AI) has propelled Python to unprecedented popularity, making it the go-to language for developers and researchers worldwide. Yet, beneath the surface, a significant challenge looms. Let's get into the specific difficulties Python poses for AI's evolution, backed by real-world examples and technical insights.

https://www.youtube.com/watch?v=cGgTvMmtzNU