Loading topic
pip and virtual environments at a basic level, and read a pyproject.toml or requirements.txt. The goal is to answer one question reliably: which Python, and which version of each library, will execute the code an assistant just wrote6 min readpip in a virtual environment, and read a function signature such as f(a, b=1, *, c=None). Earlier chapters covered how to find your installed versions. Here you check, in code, whether a name an assistant wrote exists in those versions an4 min readpyproject.toml. You don't need prior experience with type a7 min readrequirements.txt file, and run Python scripts in a virtual environment. It covers a failure that differs from an invented function. Here the assistant suggests a whole package that does not exist, or one whose name is close to a real package but is not 6 min readinspect, importlib), type checkers, warning filters, and pytest. Everything so far has been about catching invented and outdated API usage. This chapter covers what still gets through7 min read