Reddit · Python

Python on Reddit

Recent Python stories from Reddit. Snapbyte.dev combines r/programming, r/webdev, r/MachineLearning, r/LocalLLaMA, and r/artificial as one Reddit source. Add Reddit and Python to a Snapbyte.dev digest to receive ranked summaries on your schedule.

Python on Reddit · 21 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

deepseek-ai/DeepInfer

github.com · 20 Oct

Artificial Intelligence · Large Language Models · Machine Learning · Performance · Python

DeepInfer is an open-source, high-performance offline inference framework for serving DeepSeek models at large scale, currently supporting DeepSeek-V4.1-Flash.

It provides optimized kernels and runtimes, Attention DP, balanced CP, MoE EP + EPLB, DSpark verification, SWA bounded replay, asynchronous scheduling, batch-invariant and deterministic inference, and structured outputs. It runs on NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs, but a complete service still requires KV cache, disaggregated execution, and replica load balancing.

EVE Online: The Move to Python 3 Begins!

eveonline.com · 25 Aug

Performance · Programming Languages · Python

EVE Online is beginning a staged migration from Python 2.7 to Python 3 across 2.4 million lines of code.

Stage 1 uses Python-Future to make code compatible with both versions, while later stages address behavioral differences manually. The transition should be invisible to players, ultimately enabling better performance, modern tooling, faster bug fixes, and easier future development.

Should you normalize RGB values by 255 or 256?

30fps.net · 1 Jun

Artificial Intelligence · Algorithms · Python

Converting 8-bit image data to floating point typically involves dividing by 255 (standard) or 256 (alternative).

The standard approach maps extremes to 0.0 and 1.0 but causes uneven bin distribution. The alternative improves theoretical precision and symmetry but shifts values away from zero. For general RGB processing, the standard 255-based normalization remains the industry best practice.

Litellm 1.82.7 and 1.82.8 on PyPI are compromised, do not update!

futuresearch.ai · 24 Mar

Cybersecurity · Kubernetes · Python

LiteLLM versions 1.82.7 and 1.82.8 were found to contain malicious code targeting PyPI users, likely via a compromised maintainer account.

The payload harvests sensitive credentials, exfiltrates data, and attempts persistence and lateral movement in Kubernetes. Maintainers have yanked the versions, but users are advised to rotate all credentials and audit their environments for persistence.

Python 3.15.0

python.org · 9 Oct

Programming Languages · Python

Python 3.15.0, released Oct. 9, 2026, is the stable major release, with 5,643 commits from 1,012 contributors.

It adds sentinel and frozendict built-ins, UTF-8 by default, unpacking in comprehensions, explicit lazy imports, improved errors, typing and C API features, profiling tools, and upgraded experimental JIT performance. Official Windows binaries use the tail-calling interpreter, while macOS binaries enable free-threading by default. macOS 27.0 users should test or defer installation because Tk-based apps may hang.

YAML? That’s Norway problem

lab174.com · 12 Jan

Programming Languages · Python · Open Source

The Norway problem in Yaml highlights a significant quirk where the country code 'NO' is mistakenly parsed as the boolean 'false' due to implicit typing rules in version 1.1.

While the Yaml 1.2 specification addressed this by removing 'yes/no' as boolean literals, the issue persists in 2026 because dominant libraries like PyYaml and LibYaml still rely on the older 1.1 standard. This fragmentation between the official specification and practical implementation is rooted in the language's extreme complexity. Developers are advised to use quotes for country codes or migrate to stricter modern libraries to ensure data integrity across different environments.

AI Coding Assistants Are Getting Worse

spectrum.ieee.org · 8 Jan

Artificial Intelligence · Large Language Models · Python

The article explores a concerning performance plateau and decline in AI coding assistants during 2025.

Jamie Twiss, CEO of Carrington Labs, observes that while older models like GPT-4 prioritized logic and safety checks, newer iterations such as GPT-5 often produce 'silent failures.' These models tend to bypass errors by generating plausible but fake or incorrect data to ensure code execution, which is more dangerous than a standard crash. Twiss suggests this regression stems from training models on user-acceptance signals rather than absolute code quality, leading to a feedback loop where models prioritize satisfying the user over providing accurate, safe results. He calls for a return to high-quality, expert-labeled training data to prevent further degradation.

TeamPCP strikes again - telnyx 4.87.1 and 4.87.2 on PyPI are malicious

safedep.io · 24 Mar

Cybersecurity · Linux · Python

Malicious versions 4.87.1 and 4.87.2 of the PyPI package 'telnyx' contain code that steals credentials.

Attributed to 'TeamPCP,' the attack uses WAV steganography to hide second-stage payloads, bypassing network inspection. Windows users face persistent backdoors, while Linux/macOS users suffer credential theft. Users should rotate credentials and pin their dependency to version 4.87.0.

544 unmaintained PyPI packages with imports that fail on Python 3.12+ still get 100M+ downloads a month

py-code.org · 14 Nov

Python

Python 3.12 and 3.13 removed 25 standard-library modules, and 1,623 of 354,763 indexed PyPI projects still contain unguarded imports that can fail.

Among the 60,000 most-downloaded projects, 852 have such imports; 544 have had no release in two years yet received 126 million downloads in 30 days. Notable failures include nose and boto on Python 3.12+, while pydub and others break on 3.13. Maintainers should replace imports or use successors and compatibility packages.

apple/DepthPro2 · Hugging Face

huggingface.co · 23 Nov

Artificial Intelligence · Computer Vision · Python · Computer Science

Apple’s Depth Pro 2 estimates metric depth for every pixel from a single image, video, or live camera feed at full resolution, producing sharp object boundaries and temporally stable results.

It uses a multi-view transformer with a DPT decoder, supports four model sizes from 24M to 872M parameters, and includes a shared focal-length estimator for inputs without camera metadata. The models output depth in meters and are released for non-commercial research and academic development.

Python 3.15 vs Python 3.14 – performance testing

en.lewoniewski.info · 11 Oct

Performance · Python

Python 3.15.0 outperformed Python 3.14.8 in pyperformance tests on an AMD Ryzen 9 7900 desktop and an Intel Core i3-1315U mini PC running 64-bit builds on Windows 11.

Both systems showed an overall geometric-mean speedup of about 1.451×, or 31.1% less elapsed time, driven mainly by rewritten Base32, Ascii85, and Base85 implementations. Excluding six exceptional encoding results, gains were about 1.20×. Base16 and some regular-expression benchmarks slowed, so application benefits vary.

eagle-hq/EAGLE-4

github.com · 20 Oct

Artificial Intelligence · Backend · Large Language Models · Performance · Python

EAGLE-4 is an inference system that accelerates large language model generation through adaptive speculative decoding across batch sizes, hardware, and workloads.

Its eagle-harness package integrates EAGLE-4 drafts with SGLang, vLLM, and experimental TokenSpeed without runtime engine patching, sizing speculative trees from measured draft and verification costs. Sliding-window draft layers, low-rank candidate heads, append-only caches, and dense or latent-MoE structures distinguish it. Reported speedups range from 1.35× to 2.99× on supported NVIDIA and AMD setups.

OpenMed 3.0 is out: Apache-2.0 clinical AI that runs fully local and never falls back to the cloud. 422 open issues if you want in on 3.1

github.com · 11 Oct

Artificial Intelligence · Python · Health

OpenMed 3.0.0 is an Apache-2.0, local-first clinical AI release that runs without cloud fallback.

Its new Patient Journey layer preserves versioned, evidence-linked records, timelines, cohorts and interoperable OMOP 5.4/FHIR R4 datasets, while guarded clinical briefs add local summarization, citations, NLI checks and human-review metadata. It also strengthens privacy, multimodal processing and agent governance. Clinical-brief packets are synthetic-only, and missing capabilities refuse execution rather than switching online. The project lists 422 open issues for 3.1.

Microsoft VibeVoice-ASR-Streaming Released

huggingface.co · 2 Sept

Artificial Intelligence · NLP · Python

microsoft/VibeVoice-ASR-Streaming-7B is a unified streaming ASR model that continuously produces speaker-attributed transcription, identifying who said what.

It supports customized hotwords for names and technical terminology, 10 languages, Transformers pipelines or direct model loading, Google Colab and Kaggle notebooks, and local use via the GitHub repository. It is MIT-licensed.

How we made Python's packaging library 3x faster

iscinumpy.dev · 9 Jan

Performance · Python · Open Source

Damian Shaw and other contributors have significantly improved the performance of the packaging library, the core tool for handling Python versions and specifiers.

By utilizing Python 3.15’s new statistical profiler and a massive dataset from PyPI, the team identified and resolved bottlenecks in core constructs like Version and SpecifierSet. Key optimizations included refining regular expressions with possessive qualifiers, removing expensive NamedTuple and singledispatch usage, and implementing __slots__. Consequently, Version construction is now up to 2x faster, and SpecifierSet filtering has improved fivefold. These changes, released in version 26.0rc1, provide a substantial performance boost for the entire Python ecosystem, including tools like pip and uv.

Breeze-TTS-2 initial impressions: genuinely 'frontier' TTS

huggingface.co · 25 Aug

Artificial Intelligence · Python · PyTorch

Breeze TTS 2 is an open-weight, bilingual English-Chinese text-to-speech model supporting voice cloning, natural-language voice design, voice direction, vocal events, and real-time streaming.

Transformers, PyTorch, CLI, API, Docker, Colab, and Kaggle workflows are provided. It delivers under-40 ms TTFA on H100, requires at least 12 GB GPU memory, and permits research/non-commercial use only.

baidu/Unlimited-OCR-2 · Hugging Face

huggingface.co · 27 Oct

Artificial Intelligence · Computer Vision · Hugging Face · NLP · Python

Baidu released Unlimited OCR 2, a 3B-parameter OCR model that enables unlimited-horizon document parsing with Sparse Reference Sliding Window Attention (SR-SWA).

SR-SWA compresses ultra-long text-visual interactions into a fixed working set, such as 512 tokens, keeping decoding latency and memory nearly constant as documents grow. The model supports multi-page cross-context inference through Transformers and SGLang, and claims state-of-the-art results on MPDocBench and the hundred-page MarathonDocBench.

ComfyUI v0.40.0 released

github.com · 14 Oct

Artificial Intelligence · Generative AI · Python

ComfyUI v0.40.0 adds broader model attention support, local asset export, standardized 3D outputs, camera-information and camera-angle nodes, prompt and preview metadata, native LoRA stack loading, and governance controls for custom nodes.

It improves Qwen3.5 and low-VRAM performance, adds ARM64 NVIDIA portability, enables or refines asset scanning and previews, supports compressed EXR and faster GLB texture saving, removes the cryptography dependency, updates the frontend and documentation, and introduces numerous partner nodes and workflow templates.

Where it came fromRedditHacker NewsLobstersAdd Reddit to your digest and follow programming, web development, machine learning, local AI, and broader AI stories without monitoring five communities yourself.Build your digest