Tagged articles
13 articles
Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Nov 20, 2025 · Fundamentals

10 Practical Python 3.14 Features That Boost Code Efficiency

Python 3.14 introduces a collection of subtle yet useful enhancements—such as TypedDict's NotRequired, improved static analysis, lazy imports, clearer error messages, a new contextlib.chdir manager, refined async task cancellation, better subprocess isolation, richer pattern‑matching errors, and import‑time profiling—that together make scripts run smoother, easier to debug, and more maintainable.

3.14PythonTypedDict
0 likes · 7 min read
10 Practical Python 3.14 Features That Boost Code Efficiency
Raymond Ops
Raymond Ops
Apr 27, 2025 · Fundamentals

9 Powerful Python Techniques to Copy Files Efficiently

Learn nine distinct Python approaches for copying files—including shutil functions, os commands, threading, and subprocess methods—while understanding their performance implications, error handling, platform compatibility, and when to choose each technique for optimal I/O efficiency.

copyfilefile I/Oshutil
0 likes · 12 min read
9 Powerful Python Techniques to Copy Files Efficiently
Code Mala Tang
Code Mala Tang
Apr 1, 2025 · Backend Development

Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess

This article explains why limiting a function's execution time is crucial for stability, and demonstrates multiple Python techniques—including the func-timeout library, custom multiprocessing, subprocess.run, and signal handling—to set and manage timeouts effectively.

Error HandlingPythonfunction timeout
0 likes · 8 min read
Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess
MaGe Linux Operations
MaGe Linux Operations
Jul 17, 2024 · Fundamentals

9 Powerful Python Techniques to Copy Files Efficiently

This tutorial explores nine different Python approaches—including shutil, os, threading, and subprocess—to copy files, explaining their behavior, performance implications, error handling, and platform considerations so you can choose the most suitable method for your application.

file copyosshutil
0 likes · 12 min read
9 Powerful Python Techniques to Copy Files Efficiently
Python Programming Learning Circle
Python Programming Learning Circle
Jun 16, 2022 · Backend Development

Python Script to Keep Campus Network Connection Alive

This article explains how to use a Python script that continuously pings an external address and automatically logs into a campus web authentication portal via HTTP POST when the connection drops, ensuring the computer stays online for remote access, and provides the full source code and setup instructions.

Base64Campus WiFiHTTP POST
0 likes · 4 min read
Python Script to Keep Campus Network Connection Alive
Python Programming Learning Circle
Python Programming Learning Circle
Mar 31, 2020 · Backend Development

Four Ways to Execute Shell Commands in Python

This article explains four Python techniques—os.system, os.popen, the commands module, and subprocess—for running shell commands, comparing their ability to capture output, return status, and recommending subprocess as the most flexible modern solution.

PythonShellcommands
0 likes · 3 min read
Four Ways to Execute Shell Commands in Python
NetEase Game Operations Platform
NetEase Game Operations Platform
Sep 21, 2019 · Backend Development

Investigation of Subprocess Pipe Blocking in a Python Agent

The article analyzes a rare blocking issue in a Python Agent where a subprocess created via subprocess.Popen hangs due to an unclosed pipe inherited by a forked child process, demonstrates debugging steps using thread frames and lsof, and provides a reproducible example and mitigation recommendations.

DebuggingLinuxPipe
0 likes · 10 min read
Investigation of Subprocess Pipe Blocking in a Python Agent
MaGe Linux Operations
MaGe Linux Operations
Jun 21, 2017 · Backend Development

How to Run External Programs in Python on Windows Using os, win32api, and ctypes

This guide explains multiple methods for executing external programs and scripts from Python on Windows, covering the simple os.system call, the win32api ShellExecute function, creating processes with win32process.CreateProcess, and invoking kernel32.dll functions via ctypes, complete with syntax, parameters, and example code.

ctypessubprocesswin32api
0 likes · 5 min read
How to Run External Programs in Python on Windows Using os, win32api, and ctypes