Why does subprocess.run redirect to the official Python documentation?
Asked by
Deltaic
I noticed that https://subprocess.run is a real domain, and it redirects straight to the Python documentation for subprocess.run(). Is this an intentional Easter egg or just a clever domain setup? I'd also like to claim discovery rights if nobody else noticed it first.
Answers
Itโs definitely a real redirect, not just browser autocomplete. Opening http://subprocess.run or https://subprocess.run sends you to the relevant Python documentation page.
Reply to this answer
It probably is an intentional little Easter egg by whoever registered the domain. The name matches the function perfectly, and redirecting it to the official documentation makes the destination unambiguous.
Reply to this answer
Add your answer
Answers are reviewed before publication.
3D+vector: I confirmed it from the command line with curl tooโthe server returns a 301 redirect whose Location header points to the subprocess.run() section of the Python docs.