AI Academy
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Group
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
CodeGym
/
Java Blog
/
Learning Python
Learning Python
208 members
Leaderboard
Popular
New
Old
Jesse Haniel
Learning Python
June 25, 2026 at 1:45 PM
Modern Python Logging in 2026: structlog, JSON, and the Standard Library
Python's logging module is older than most developers using it, but the 2026 stack is genuinely modern. The standard library still ships the same four components it had in 2003 (Logger, Handler, Formatter, Filter), but the canonical way to wire them together is dictConfig
Jesse Haniel
Learning Python
June 25, 2026 at 12:16 PM
raise, raise from, and Re-Raising Exceptions in Python
Python has four ways to raise an exception inside a handler, and each one tells a different story in the traceback. Bare raise re-throws the current exception unchanged. raise X starts a new one and lets Python add the previous as implicit context.
Jesse Haniel
Learning Python
June 25, 2026 at 12:00 PM
Convert String to datetime in Python: ISO 8601, strptime, and dateutil
Parsing a datetime in Python has three canonical answers and one rule. Pick by where the input comes from. datetime.fromisoformat() is the modern fast path for ISO 8601 strings (the standard that nearly all APIs ship in 2026)
Jesse Haniel
Learning Python
June 25, 2026 at 11:31 AM
Parsing Strings to int and float in Python (Safely, with Good Errors)
Converting a string to a number is one of the most common Python tasks and one of the most likely to crash. int("3") works. int("3.5") raises ValueError. int(None) raises TypeError. int("1_000") works in modern Python but not in 2.x leftovers.
Jesse Haniel
Learning Python
June 25, 2026 at 11:08 AM
Python's mkdir -p Equivalent: Creating Directories with pathlib
The Unix mkdir -p command is one of those small conveniences nobody appreciates until they don't have it. It creates intermediate directories on the way to the target, and it doesn't error out if the target already exists.
Jesse Haniel
Learning Python
June 25, 2026 at 10:52 AM
How to Check If a File or Directory Exists in Python (Without try/except)
"How do I check whether a file exists?" is one of the highest-voted Python questions on Stack Overflow (over 7,300 upvotes), and the answer has changed since the question was first asked in 2009. In 2026 the canonical answer is
Milan Vucic
Learning Python
June 25, 2026 at 10:24 AM
Modern Python 2026: The Complete Feature Adoption Guide
Modern Python in 2026 looks meaningfully different from Python in 2020. Type hints went from optional to near-universal. mypy lost its monopoly to Pyright, then to Pyrefly and ty (both written in Rust, both an order of magnitude faster).
Milan Vucic
Learning Python
June 25, 2026 at 10:08 AM
PEP 703 Free-Threaded Python: What It Means and When It Lands
The Global Interpreter Lock is the most-discussed limitation of CPython for thirty years. Every "why is threading slow in Python" article points to the GIL. Every workaround (multiprocessing, asyncio, C extensions that release the GIL) exists because of it.
Milan Vucic
Learning Python
June 25, 2026 at 9:48 AM
Threads vs Processes vs asyncio: Choosing Python Concurrency Models in 2026
Python ships three concurrency models in the standard library: threading, multiprocessing, and asyncio. They look like they're competing, but they actually solve different problems. The choice depends on two axes: whether your work is CPU-bound or I/O-bound
Milan Vucic
Learning Python
June 24, 2026 at 9:39 AM
The async/await Mental Model: What Asynchronous Python Actually Does
The most common mistake developers make with Python's async/await is thinking it's threading. It isn't. async/await is cooperative scheduling: a single thread runs an event loop that hands control to one coroutine at a time, and each coroutine voluntarily yields control back at await points so the loop can run someone else.
Milan Vucic
Learning Python
June 24, 2026 at 5:28 PM
What's New in Python 3.14: Features Worth Adopting in 2026
Python 3.14 released October 7, 2025, ending a development cycle dominated by free-threading work and template strings. Eight months later, the ecosystem has caught up: most major libraries ship 3.14-compatible wheels, the experimental free-threaded build is official
Milan Vucic
Learning Python
June 24, 2026 at 4:44 PM
Pydantic vs dataclasses vs attrs vs TypedDict: When to Use Each
Four tools, four genuine niches. The reason "which one should I use" is the most-asked Python typing question in 2026 is that the answer actually depends on context. Pydantic is the right choice for HTTP boundaries and untrusted input.
Show more
1
2
3
4
5
6
...
10
Please enable JavaScript to continue using this application.