summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorUltimateCoder <jaysinhp@gmail.com>2017-05-03 16:46:45 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-05-03 16:46:45 (GMT)
commit8856940cf2e82cb17db2b684cd5732fe658605ca (patch)
treeb185e240823e78a7b5b3829185140b0f18da1509 /Doc/extending
parenta5c62a8e9f0de6c4133825a5710984a3cd5e102b (diff)
downloadcpython-8856940cf2e82cb17db2b684cd5732fe658605ca.zip
cpython-8856940cf2e82cb17db2b684cd5732fe658605ca.tar.gz
cpython-8856940cf2e82cb17db2b684cd5732fe658605ca.tar.bz2
bpo-28315: Improve code examples in docs (GH-1372)
Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module>
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index 449c1e2..bd09aa6 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -124,7 +124,7 @@ our objects and in some error messages, for example::
>>> "" + noddy.new_noddy()
Traceback (most recent call last):
- File "<stdin>", line 1, in ?
+ File "<stdin>", line 1, in <module>
TypeError: cannot add type "noddy.Noddy" to string
Note that the name is a dotted name that includes both the module name and the