summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-05-04 01:41:20 (GMT)
committerGitHub <noreply@github.com>2017-05-04 01:41:20 (GMT)
commitaf71364c3f0e9cd6cb9d83194315af0ee3c783d2 (patch)
treeb627e3df907affec830432711f79e119ee903d21 /Doc/extending
parent833dcb62594cc7a834f63ac8f1c312f2ac24d393 (diff)
downloadcpython-af71364c3f0e9cd6cb9d83194315af0ee3c783d2.zip
cpython-af71364c3f0e9cd6cb9d83194315af0ee3c783d2.tar.gz
cpython-af71364c3f0e9cd6cb9d83194315af0ee3c783d2.tar.bz2
[3.6] bpo-28315: Improve code examples in docs (GH-1372) (#1445)
Replace File "<stdin>", line 1, in ? with File "<stdin>", line 1, in <module> (cherry picked from commit 8856940cf2e82cb17db2b684cd5732fe658605ca)
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 b8ce437..003b4e5 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