I asked Python folks what they really think about AI taking over programming. Their answers (and a few surprises) are in my latest post 👇
blog.adarshd.dev/posts/pycon-...
I asked Python folks what they really think about AI taking over programming. Their answers (and a few surprises) are in my latest post 👇
blog.adarshd.dev/posts/pycon-...
I'll be walking through how to do this live at @pycon.us poster session this weekend. Let’s write some code, analyze some blunders, and build something fun together. ♟️
I'll be walking through how to do this live at @pycon.us poster session this weekend. Let’s write some code, analyze some blunders, and build something fun together. ♟️
💎: Peek - Replace print() for debugging code.
github.com/salabim/peek
- A superset of github.com/gruns/icecream
- Supports debugging function calls, benchmarking execution time etc.
💎: Peek - Replace print() for debugging code.
github.com/salabim/peek
- A superset of github.com/gruns/icecream
- Supports debugging function calls, benchmarking execution time etc.
💎: Pydantic releases PydanticAI: AI agent framework
ai.pydantic.dev
- Can create LLM-powered agents that can run tools/functions based on user prompts, all with the type-safety guarantees provided by Pydantic.
- Can also be run locally using Ollama models that support tools.
💎: Pydantic releases PydanticAI: AI agent framework
ai.pydantic.dev
- Can create LLM-powered agents that can run tools/functions based on user prompts, all with the type-safety guarantees provided by Pydantic.
- Can also be run locally using Ollama models that support tools.
💎: Avoid Counting in Django Pagination by Nik Tomazic: testdriven.io/blog/django-...
- Default Django paginator uses SELECT COUNT(*). Slow for big tables.
- Discusses an implementation of paginator class without COUNT.
(1/2)
💎: Avoid Counting in Django Pagination by Nik Tomazic: testdriven.io/blog/django-...
- Default Django paginator uses SELECT COUNT(*). Slow for big tables.
- Discusses an implementation of paginator class without COUNT.
(1/2)
Python in production #1 (Cloud Native vs Stack Native) by @mkennedy.codes
💎: mkennedy.codes/posts/opposi...
Covers the architecture of production apps which handle:
- 9M req per month
- 10 TB traffic (1 TB served by Python)
Hosted on a 8 CPU / 16 GB Hetzner server.
Python in production #1 (Cloud Native vs Stack Native) by @mkennedy.codes
💎: mkennedy.codes/posts/opposi...
Covers the architecture of production apps which handle:
- 9M req per month
- 10 TB traffic (1 TB served by Python)
Hosted on a 8 CPU / 16 GB Hetzner server.
💎: nedbatchelder.com/blog/202411/... by @nedbat.com
for loops can assign to dict keys (and much more)..
𝚙𝚊𝚛𝚊𝚖𝚜 = {}
𝚏𝚘𝚛 𝚙𝚊𝚛𝚊𝚖𝚜["𝚙𝚊𝚐𝚎"] 𝚒𝚗 𝚒𝚝𝚎𝚛𝚝𝚘𝚘𝚕𝚜.𝚌𝚘𝚞𝚗𝚝():
# 𝚝𝚑𝚒𝚜 𝚠𝚘𝚛𝚔𝚜
💎: nedbatchelder.com/blog/202411/... by @nedbat.com
for loops can assign to dict keys (and much more)..
𝚙𝚊𝚛𝚊𝚖𝚜 = {}
𝚏𝚘𝚛 𝚙𝚊𝚛𝚊𝚖𝚜["𝚙𝚊𝚐𝚎"] 𝚒𝚗 𝚒𝚝𝚎𝚛𝚝𝚘𝚘𝚕𝚜.𝚌𝚘𝚞𝚗𝚝():
# 𝚝𝚑𝚒𝚜 𝚠𝚘𝚛𝚔𝚜
💎https://pyzzles.gptengineer.run/
Python puzzles where we are given test files and need to write solutions to satisfy the tests.
💎https://pyzzles.gptengineer.run/
Python puzzles where we are given test files and need to write solutions to satisfy the tests.
Python is said to be the second-best language for everything.
💎: blog.miguelgrinberg.com/post/is-pyth...
@miguelgrinberg.bsky.social shares his benchmark comparing Python (multiple Cpython versions, Pypy), NodeJS & Rust.
Python is said to be the second-best language for everything.
💎: blog.miguelgrinberg.com/post/is-pyth...
@miguelgrinberg.bsky.social shares his benchmark comparing Python (multiple Cpython versions, Pypy), NodeJS & Rust.
Since threads in Python share the memory space of their parent process, we might need to define thread-specific variables for specific use cases to avoid unintended side effects.
Read at: blog.adarshd.dev/posts/thread...
Since threads in Python share the memory space of their parent process, we might need to define thread-specific variables for specific use cases to avoid unintended side effects.
Read at: blog.adarshd.dev/posts/thread...
This article from my "Python in the Wild" newsletter discusses the evolution of sorting from Python 2 to 3, and features an open-source example illustrating the usage of `functools.cmp_to_key` for sort operations.
This article from my "Python in the Wild" newsletter discusses the evolution of sorting from Python 2 to 3, and features an open-source example illustrating the usage of `functools.cmp_to_key` for sort operations.
Read the full post: adarshd.substack.com/p/til-list-f...
#python #typing #list
Read the full post: adarshd.substack.com/p/til-list-f...
#python #typing #list