PythonHub
2.44K subscribers
2.35K photos
49.2K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Tracking malicious code execution in Python

Recently, I have been working on a new library that statically analyzes Python scripts and detects ...

https://rushter.com/blog/python-code-exec/
2
Nested functions in Python

Functions in Python can be defined within another function.







Table of contents
...

https://www.pythonmorsels.com/nested-functions/
👍1
Anatomy of a Python Loop

Learn Python loops the fun way by rolling dice, casting fireballs, and finally understanding what continue really does.

https://orencodes.io/anatomy-of-a-python-loop/
How to Spot (and Fix) 5 Common Performance Bottlenecks in pandas Workflows

This post walks through five common pandas bottlenecks, how to recognize them, and some workarounds you can try on CPU with a few tweaks to your code plus a GPU-powered drop-in accelerator, cudf.pandas, that delivers order-of-magnitude speedups with no code changes.

https://developer.nvidia.com/blog/how-to-spot-and-fix-5-common-performance-bottlenecks-in-pandas-workflows/
Customize your IPython shell in Docker

You can heavily customize your IPython shell experience when using it inside Docker or in a Docker Compose project. Without your personal preferences annoying your teammates!

https://frankwiles.com/posts/customize-ipython-docker/
Build a Coding Agent from Scratch: The Complete Python Tutorial

The tutorial walks through building a baby version of the Claude Code AI coding agent from scratch in Python, covering creating a reasoning brain, instructions, tools, and memory with a ReAct loop for interactive coding tasks. It also progresses to adding safe code execution, sandboxing, and context management to handle large codebases, enabling the agent to write, test, debug, and itera...

https://www.siddharthbharath.com/build-a-coding-agent-python-tutorial/
👍1
A Python CLI for Verifying Assembly

This post describes Python CLI tool for verifying assembly programs using symbolic execution with Ghidra pcode semantics. It highlights novel features like embedding formal specifications directly into assembly through macros, handling invariants via control flow graph cuts, and providing detailed verification and countermodel feedback to ensure correctness of assembly code.

https://www.philipzucker.com/asm_verify3/
AsyncIO - Complete Guide to Asynchronous Programming with Animations

The video teaches how to write asynchronous code in Python using AsyncIO with async/await syntax. It covers core concepts like coroutines, tasks, and the event loop, shows how to convert synchronous code to async, and demonstrates performance benefits using real-world examples and animations.

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