CodeGym University
Java FullStack
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Java Blog
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
You must belong to more groups
Create article
All groups
New
Jesse Haniel
Learning Python
June 25, 2026 at 2:28 PM
Python Standard Library Essentials: 8 Tasks You'll Do Every Day
Most Python tutorials cover the standard library in alphabetical order, walking through argparse and asyncio and base64 until your eyes glaze. That's not how you actually USE the stdlib. You use it to answer 8 specific questions that show up in every codebase
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 1:19 PM
Running Shell Commands from Python with subprocess: The Right Way in 2026
"How do I run a shell command from Python" is the sixth-most-upvoted Python question on Stack Overflow (over 6,200 upvotes), and it has one clean answer for most cases: subprocess.run(['cmd', 'arg'], check=True, capture_output=True, text=True).
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:22 AM
Find the Directory Your Python Script Lives In (__file__ and Beyond)
"Where is my script?" sounds like a question with one answer. It has four. __file__ is the script's own path. os.getcwd() is the user's shell directory. sys.argv[0] is whatever the user typed on the command line. sys.executable is the Python interpreter
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
Show more
1
2
3
...
83
Please enable JavaScript to continue using this application.