]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91611: Use example.com for documentation, not mydomain.com (#91613)
authorMotoki Naruse <motoki@naru.se>
Sat, 30 Apr 2022 21:52:13 +0000 (06:52 +0900)
committerGitHub <noreply@github.com>
Sat, 30 Apr 2022 21:52:13 +0000 (15:52 -0600)
example.com is reserved by the IANA as special-use domain name for documentation
purposes. The domain names are used widely in books, tutorials, sample network
configurations, and generally as examples for the use of domain name.

On the other hand, mydomain.com is real Domain Name Registration service.

Doc/library/secrets.rst
Doc/library/ssl.rst

index afa8e2d385fa46581976c123f32f80efb3bf0da1..c22da727b55c9bffc2e561910ec8db3af4d9ec5e 100644 (file)
@@ -193,7 +193,7 @@ suitable for password recovery applications:
 .. testcode::
 
    import secrets
-   url = 'https://mydomain.com/reset=' + secrets.token_urlsafe()
+   url = 'https://example.com/reset=' + secrets.token_urlsafe()
 
 
 
index 04818f824d10588856c3833c9bb735a91950bb8f..54bd335282699cb3d594f11ffe815919d4644f5a 100644 (file)
@@ -2357,7 +2357,7 @@ waiting for clients to connect::
    context.load_cert_chain(certfile="mycertfile", keyfile="mykeyfile")
 
    bindsocket = socket.socket()
-   bindsocket.bind(('myaddr.mydomain.com', 10023))
+   bindsocket.bind(('myaddr.example.com', 10023))
    bindsocket.listen(5)
 
 When a client connects, you'll call :meth:`accept` on the socket to get the