Why does subprocess.run redirect to the Python documentation?
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
The redirect is real. Visiting both the HTTP and HTTPS versions leads to the Python documentation page for subprocess.run().
Reply to this answer
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.
Reply to this answer
Add your answer
Answers are reviewed before publication.
~reading the manual: That confirms itโso itโs an actual server-side redirect rather than something Chrome is filling in automatically.