Dynamically patch a Python function's source code at runtime
ππ¨ Oh, look at you, Mr. #Python Wizard, magically monkey-patching #code at runtime like it's a circus act! π©β¨ Because who doesn't love trading #security for a few moments of smug brilliance? π
https://ericmjl.github.io/blog/2025/8/23/wicked-python-trickery-dynamically-patch-a-python-functions-source-code-at-runtime/ #MonkeyPatch #SmugBrilliance #CircusAct #HackerNews #ngated
Dynamically patch a Python function's source code at runtime
#HackerNews #Dynamically #patch #a #Python #source #code #at #runtime #Python #Tricks #Dynamic #Patching #Runtime #Code #Modification #Hacker #News
PyfirebirdSQL drops support for Python 2.7
https://github.com/nakagami/pyfirebirdsql/pull/124
π Getting started with #Python + #PyCharm in just minutes!
Just dropped a beginner-friendly walkthrough: βInstalling Python and PyCharm: A Beginnerβs Guideβ β your first step into coding made simple, fast, and fun! Learn how to:
Get Python 3 (the modern, supported version) installed and running under your fingertips
Set up PyCharm Community Editionβa fully equipped, free IDE perfect for newbies
Write and launch your first "Hello, World!" program in no time!
π Why #Python is THE language for beginners β and your fast track to coding success!
Just published βIntroduction to Python: Why This Language Is Perfect for Beginnersβ β and trust me, this is the kickstart you need! From zero learning curve syntax to its massive versatility in jobs, web dev, data science, automation, AI, and more β Python has got you covered.
Check it out here: https://www.youtube.com/@idebasispaul/
ΠΠΊΠΎΠ½ΠΊΠΈ ΠΏΡΡΠΌΠΎ Π² ΠΊΠΎΠ΄Π΅: ΠΊΠ°ΠΊ ΠΌΡ ΠΈΠ·Π±Π°Π²ΠΈΠ»ΠΈΡΡ ΠΎΡ assets, ΠΏΠΎΡΡΠΈΡΡΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ Π½Π° Linux ΠΈ macOS
ΠΡΠΈΠ²Π΅Ρ, Π₯Π°Π±Ρ! ΠΡ Π² ChameleonLab ΡΠ°Π·ΡΠ°Π±Π°ΡΡΠ²Π°Π΅ΠΌ ΡΡΠ»ΠΊΠΈΡ Π΄Π»Ρ ΡΡΠ΅Π³Π°Π½ΠΎΠ³ΡΠ°ΡΠΈΠΈ, ΠΊΠΎΡΠΎΡΡΠΉ ΡΠΆΠ΅ ΡΠ°Π±ΠΎΡΠ°Π΅Ρ Π½Π° Windows ΠΈ macOS . Π‘Π΅ΠΉΡΠ°Ρ ΠΌΡ ΠΏΠΎΡΡΠΈΡΡΠ΅ΠΌ Π΅Π³ΠΎ Π½Π° Linux, ΠΈ, ΠΊΠ°ΠΊ ΡΡΠΎ ΡΠ°ΡΡΠΎ Π±ΡΠ²Π°Π΅Ρ, ΠΈΠΌΠ΅Π½Π½ΠΎ Π½Π° ΡΡΠΎΠΌ ΡΡΠ°ΠΏΠ΅ ΠΊΠ»Π°ΡΡΠΈΡΠ΅ΡΠΊΠΈΠ΅ ΠΏΡΠΎΠ±Π»Π΅ΠΌΡ Ρ ΡΠ΅ΡΡΡΡΠ°ΠΌΠΈ (ΠΈΠΊΠΎΠ½ΠΊΠ°ΠΌΠΈ, ΠΊΠ°ΡΡΠΈΠ½ΠΊΠ°ΠΌΠΈ) ΠΏΡΠΎΡΠ²ΠΈΠ»ΠΈ ΡΠ΅Π±Ρ Π²ΠΎ Π²ΡΠ΅ΠΉ ΠΊΡΠ°ΡΠ΅. ΠΠΎΡΠ»Π΅ ΡΠ΅Π»ΠΈΠ·Π° ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»ΠΈ ΡΠ²ΠΈΠ΄Π΅Π»ΠΈ Π½Π°ΡΠ΅ ΡΠ΅ΡΠ΅Π½ΠΈΠ΅ ΠΈ ΡΡΠ°Π»ΠΈ ΡΠΏΡΠ°ΡΠΈΠ²Π°ΡΡ, ΠΊΠ°ΠΊ ΠΎΠ½ΠΎ ΡΡΡΡΠΎΠ΅Π½ΠΎ ΠΈ ΠΏΠΎΡΠ΅ΠΌΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ Π½Π΅ ΡΠ°ΡΠΈΡ Π·Π° ΡΠΎΠ±ΠΎΠΉ ΠΏΠ°ΠΏΠΊΡ Ρ ΠΊΠ°ΡΡΠΈΠ½ΠΊΠ°ΠΌΠΈ. Π Π°Π· ΡΠΆ ΡΠΎΠΎΠ±ΡΠ΅ΡΡΠ²Ρ ΡΡΠΎ ΠΈΠ½ΡΠ΅ΡΠ΅ΡΠ½ΠΎ, ΠΌΡ ΡΠ΅ΡΠΈΠ»ΠΈ Π΄Π°ΡΡ ΡΠ°Π·Π²ΡΡΠ½ΡΡΡΠΉ ΠΎΡΠ²Π΅Ρ. Π Π°ΡΡΠΊΠ°ΠΆΠ΅ΠΌ, ΠΊΠ°ΠΊ Π²ΡΡΡΠΎΠΈΠ»ΠΈ Π²ΡΠ΅ ΠΈΠΊΠΎΠ½ΠΊΠΈ ΠΏΡΡΠΌΠΎ Π² ΠΊΠΎΠ΄ Ρ ΠΏΠΎΠΌΠΎΡΡΡ SVG, ΠΈ ΠΊΠ°ΠΊ Π²Π½ΡΡΡΠ΅Π½Π½ΠΈΠ΅ ΠΈΡΠ΅ΡΠ°ΡΠΈΠΈ ΠΈ ΠΏΠΎΠΈΡΠΊΠΈ ΠΈΠ΄Π΅Π°Π»ΡΠ½ΠΎΠ³ΠΎ ΡΠ΅ΡΠ΅Π½ΠΈΡ ΠΏΡΠΈΠ²Π΅Π»ΠΈ Π½Π°Ρ ΠΊ ΡΠΈΠ½Π°Π»ΡΠ½ΠΎΠΌΡ Π²Π°ΡΠΈΠ°Π½ΡΡ.
https://habr.com/ru/articles/940180/
#python #PyQt #PySide #Qt #SVG #Π²Π΅ΠΊΡΠΎΡΠ½Π°Ρ_Π³ΡΠ°ΡΠΈΠΊΠ° #ui #PyInstaller #hidpi #ΠΊΡΠΎΡΡΠΏΠ»Π°ΡΡΠΎΡΠΌΠ΅Π½Π½Π°Ρ_ΡΠ°Π·ΡΠ°Π±ΠΎΡΠΊΠ°
Is it only me or does uv not have a convenient way to update packages? Trivial to install and get going, but once my packages are in pyproject.toml I can't seem to find any way to update the versions, the file still refers to old versions.
I love the speed of uv, but by god is it unnecessarily complicated to manage packages.
Not yet sure if it's a #python #debian (raspi bookworm) #setuptools or #saltstack thing, but had errors loading a package installed as `--editable`
It created a `<package>.pth` file that looked fine, but couldn't seem to load it until I renamed it to `__editable__.<package>.pth`
Need to investigate further before I'm satisfied on what's actually going on, but at least I'm unstuck for now.
(may require some combination of `pip install -e /path/ --config-settings editable_mode=...`)
DEMINEUR
πΉοΈ https://pyxelstudio.net/mbekf9r7
#gamedev #retrogames #game #python #pyxel
Python AsyncIO tutorial: Discover 9 powerful secrets to master async programming, write faster code, and level up your Python skills! #Python #AsyncIO #Programming #Concurrency #DevTips
ThinkMesh: A Python lib for parallel thinking in LLMs
https://github.com/martianlantern/ThinkMesh
#HackerNews #ThinkMesh #Python #LLMs #ParallelThinking #GitHub #AI