python

Back Open Paginator
04.03.2026 12:06
social (@social@fennell.dev)
I started using pdb while writing some stuff in #Python, and it's really nice to interact with!

I like that:

* You can define breakpoints just using the breakpoint() function, making conditional breakpoints very natural:

if [condition]:
breakpoint()
* You don't need any special invocation to start the debugger - just run the script as you normally would and you end up in a pdb shell when a breakpoint is hit.

In other languages, I slightly dread starting a debug session because I have to remember the flag to pass extra args, add all the breakpoints on startup etc. This leads to long sessions because I don't want to lose the investment I've put into my breakpoints.

But in Python, I have much shorter debug sessions and I can get right to a point of invocation really quickly, verify something, and close the debugger straight away.

* It interacts nicely with the repl:

I use the repl much more because I can end up in a repl right with the context and variables that I need.

Defining more breakpoints within the repl is really nice to unpack nested datastructures in the same way it would be done in the code:

>>> for key, some_list in some_dict.items():
... for value in some_list:
... breakpoint()
I end up writing things in the repl first, but within the context that the code would be written in reality.

It's really thoughtfully designed - thank you to the people who made it so!



Show Original Post


04.03.2026 12:04
hiltsu (@hiltsu@mastodon.social)

Brainfart of the day: "Linssi (Lens in Finnish) is an AI-powered image recognition application that runs entirely on your local machine. It scans your photos, identifies their content, learns to recognize faces, and builds a searchable database from your image collection. Requires an NVIDIA CUDA-capable GPU."

Currently running 107352 photos to the database...

Very first initial version available codeberg.org/hiltsu/linssi





Show Original Post


04.03.2026 11:26
bbelderbos (@bbelderbos@fosstodon.org)

New Pybites podcast is live -> Why #Python developers are learning #Rust

Check it out here: youtube.com/watch?v=-5uLLBvWK5Q and let me know if you're into Rust or planning to learn it this year ...




Show Original Post


04.03.2026 11:13
sheena (@sheena@fosstodon.org)

#PyTV is now LIVE!
youtube.com/watch?v=qKkyBhXIJJU

Join us :)

#Python




Show Original Post


04.03.2026 11:12
habr (@habr@zhub.link)

Ускоряем pandas, не переписывая код. Мой опыт с FireDucks

Привет! Меня зовут Егор Лукьянов, я старший аналитик данных в Ozon Tech. В своей работе я часто сталкиваюсь с проблемой масштабируемости в pandas . Код, который быстро работает на гигабайте данных, начинает невыносимо тормозить на десяти. Уверен, эта боль знакома многим. Сейчас есть быстрые альтернативы, например, Polars . Я сам пробовал переводить на него свои проекты. Скорость действительно впечатляет, но как в анекдоте есть нюанс: приходится переписывать чуть ли не весь код и привыкать к новому синтаксису. А это большая работа, на которую не всегда есть время. И вот здесь я наткнулся на FireDucks — библиотеку, которая обещает решить эту проблему, просто заменив одну строку импорта. Звучало слишком хорошо, чтобы быть правдой. После опыта с Polars я был уверен, что где-то должен быть подвох. Я решил проверить FireDucks на нескольких типичных задачах. В этой статье я хочу без лишнего хайпа поделиться тем, что у меня получилось. Мы посмотрим на реальные примеры кода, сравним скорость и разберёмся, где эта библиотека действительно хороша, а где могут быть проблемы.

habr.com/ru/companies/ozontech

#pandas #data_analysis #data_engineering #python




Show Original Post


04.03.2026 11:01
PythonPeak (@PythonPeak@mastodon.social)

Python Spotlight: Hack Emoji Count Loop

Python Spotlight: Hack Emoji Count Loop This content explores interesting aspects of this topic. The information provided offers valuable insights and perspectives. Understanding this reveals how everyday things are more thoughtful than they appear. Next time you'll notice this detail. This fascinating detail shows how much thought goes into things we take for granted.

#python #coding #programming #juniorde...

youtube.com/watch?v=wpXdwQIK_VI




Show Original Post


04.03.2026 10:59
TechKeysX (@TechKeysX@mastodon.social)

Tuple Methods and Built in functions Explained - S1 EP06 P5 -





Show Original Post


04.03.2026 10:29
feed (@feed@igeek.gamer-geek-news.com)

🐧 7 Best Free and Open Source Python Object-Relational Mapping Software

Object–relational mapping (ORM) is a programming technique for converting data between incompatible type systems using object-oriented languages. The post 7 Best Free and Open Source Python Object-...

📰 Source: LinuxLinks
🔗 Link: https://www.linuxlinks.com/best-free-open-source-object-relational-mapping-software-python/

#Python #DataScience




Show Original Post


04.03.2026 10:11
mundschenk (@mundschenk@chaos.social)

Excel und andere #Spreadsheets sind für mich die größten Automatisierungsverhinderer in Organisationen. Ich nutze sie höchstens für Wegwerf-Tabellen. Alles, was komplexer ist oder Massendaten verarbeitet, gehört in Microservices – z. B. in #Python oder #JavaScript. GUI-basierte Tabellen bremsen Automatisierung und lassen sich schlecht in Workflows integrieren. Moderne #IT sollte solche Aufgaben als Code lösen. #Digitalisierung #Automatisierung #VibeCoding




Show Original Post


04.03.2026 10:03
david_guillot (@david_guillot@social.tchncs.de)

🎉 Best deal ever on #jetbrains : if your #PyCharm subscription has just ended or is about to end, you get a perpetual "fallback" license to PyCharm 2024.3, aka the best PyCharm version ever, since 2025.* was all about #AI bullshit features and reduced stability.

#python #ide #webdev #django #resistGenAI #noAI #noGenAI




Show Original Post


04.03.2026 09:57
brodriguesco (@brodriguesco@fosstodon.org)

In T, pipelines are first class, and mixing #Python and #Rstats nodes is easy! Passing objects to and from R or Python is handled seamlessly with built-in serializers, with the option for users to provide their own!

github.com/b-rodrigues/tlang/





Show Original Post


04.03.2026 09:42
habr (@habr@zhub.link)

«Анализ данных. Как стать профессионалом». Обзор книги

Издательская практика в настоящее время требует оценивать англоязычные книги, а в идеале — отлавливать бестселлеры — задолго до выхода, по первым черновикам. Занятие увлекательное, но порой рискованное. Поэтому в потенциальной переводной книге мы ищем сочетание «широкого контекста» и заключённой внутри него «необходимой новизны». Книга должна быть понятна и интересна широкой аудитории, но не перемалывать в очередной раз широко известные вещи, к тому же разобранные в блогах, а серьёзно облегчать повседневный труд и при этом предлагать ступеньку для роста.

habr.com/ru/companies/bhv_publ

#data_science #анализ_данных #проектирование_систем #python #книги #развитие_продукта




Show Original Post


1 ...385 386 387 388 389 390 391 392 393 394 395 ...1592
UP