Why does subprocess.run redirect to the official Python documentation?

0
0
Asked By MellowOrbit42 On

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.

2 Answers

Answered By SunnyHarbor3 On

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.

Answered By PaperKite7 On

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.

CobaltFern88 -

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.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.