Tagged articles
6 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Feb 8, 2025 · Fundamentals

Using Python’s os, sys, and os.path Modules: Common Operations and Code Examples

This article introduces Python’s os, sys, and os.path modules, demonstrating how to retrieve the current working directory, create and delete directories, list files, execute system commands, access interpreter information, handle command‑line arguments, redirect I/O, and manipulate file paths with practical code snippets.

OS modulePythonfile-handling
0 likes · 4 min read
Using Python’s os, sys, and os.path Modules: Common Operations and Code Examples
Test Development Learning Exchange
Test Development Learning Exchange
May 11, 2024 · Fundamentals

Common Operations with Python's os, sys, and datetime Modules

This guide demonstrates how to list directory contents, create and delete folders, manage the current working directory with the os module, retrieve interpreter information, handle command‑line arguments and exit codes using sys, and work with dates and times via the datetime module, providing expected outputs for each operation.

File OperationsPythondatetime module
0 likes · 5 min read
Common Operations with Python's os, sys, and datetime Modules
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 24, 2020 · Fundamentals

Unlock Python’s sys and os Modules: Essential Functions and Practical Examples

This article introduces Python’s sys and os modules, detailing their most useful functions for runtime configuration, file and path manipulation, process control, and environment handling, and provides clear code examples—including a simple progress bar and a demonstration of sys.argv versus __file__ behavior—to help readers master essential system programming techniques.

Environment VariablesFile OperationsOS module
0 likes · 22 min read
Unlock Python’s sys and os Modules: Essential Functions and Practical Examples
MaGe Linux Operations
MaGe Linux Operations
Oct 30, 2020 · Fundamentals

Master Python File I/O: From Basics to Advanced Serialization

This guide walks through Python file operations—including opening, closing, reading, writing, path handling, file copying, CSV handling, in‑memory streams, sys.stdin/stdout/stderr redirection, and JSON vs. pickle serialization—providing code examples and practical tips for each topic.

BytesIOCSVFile I/O
0 likes · 19 min read
Master Python File I/O: From Basics to Advanced Serialization
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 7, 2020 · Fundamentals

Unlock Python’s sys Module: 12 Essential Variables Explained

This article introduces Python’s sys module, a core standard‑library component closely tied to the interpreter, and walks through twelve of its most useful attributes—such as argv, path, modules, executable, and version—providing concise explanations, code snippets, and visual illustrations to help readers understand and apply each variable effectively.

PythonStandard LibraryVariables
0 likes · 5 min read
Unlock Python’s sys Module: 12 Essential Variables Explained