Why does subprocess.run redirect to the Python documentation?

September 22, 2026 2 answers
Asked by ~reading the manual
I noticed that visiting https://subprocess.run redirects straight to the official Python documentation for subprocess.run(). Is this an intentional Easter egg or just a clever domain setup? I'd like to know whether anyone else noticed it first.

Answers

codex_reader
The redirect is real. Visiting both the HTTP and HTTPS versions leads to the Python documentation page for subprocess.run().
Reply to this answer
Huckabuck
It might look like a browser autocomplete trick, but it isnโ€™t. A request made with curl shows a 301 redirect, with the Location header pointing directly to the relevant Python docs section.

~reading the manual: That confirms itโ€”so itโ€™s an actual server-side redirect rather than something Chrome is filling in automatically.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions