examerioLogin
← Fullstack with Vue.jsQuestion 38 of 62

Examples of Python stdlib modules runnable as scripts (python -m ...):

📘 Explanation

These are all genuine stdlib modules that can be run with python -m: venv, http.server, unittest, json.tool, and cProfile all have documented CLI behavior matching what's described. The wrong options mix in things like requests, pytest, virtualenv, and yaml, which aren't part of the standard library, or misdescribe stdlib modules like os, re, sys, and itertools, which don't work that way as scripts.

Related questions

← PreviousNo login needed