summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-01-17 16:20:23 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-01-17 16:20:23 (GMT)
commitee1bded0466f4b215f39cb37c53a00d65e2a0bf0 (patch)
tree49658ec2cf973467da40d36d0a65344606d023c8 /Doc/whatsnew
parentc99b675ff42602b659fc85a140e20d6b842d38e1 (diff)
downloadcpython-ee1bded0466f4b215f39cb37c53a00d65e2a0bf0.zip
cpython-ee1bded0466f4b215f39cb37c53a00d65e2a0bf0.tar.gz
cpython-ee1bded0466f4b215f39cb37c53a00d65e2a0bf0.tar.bz2
Correct typos in example code.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/whatsnew23.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/whatsnew/whatsnew23.tex b/Doc/whatsnew/whatsnew23.tex
index ce997cc..285c2dd 100644
--- a/Doc/whatsnew/whatsnew23.tex
+++ b/Doc/whatsnew/whatsnew23.tex
@@ -894,7 +894,7 @@ the same number of items as the slice it is replacing:
>>> a[::2] = [0,1,2]
Traceback (most recent call last):
File "<stdin>", line 1, in ?
-ValueError: attempt to assign list of size 3 to extended slice of size 2
+ValueError: attempt to assign sequence of size 3 to extended slice of size 2
\end{verbatim}
Deletion is more straightforward:
@@ -1000,7 +1000,7 @@ KeyError: 4
>>> d.pop(1)
Traceback (most recent call last):
File "stdin", line 1, in ?
-KeyError: pop(): dictionary is empty
+KeyError: 'pop(): dictionary is empty'
>>> d
{}
>>>
@@ -1682,7 +1682,7 @@ objects:
'2002-12-30T21:27:03.994956'
>>> now.ctime() # Only available on date, datetime
'Mon Dec 30 21:27:03 2002'
->>> now.strftime('%Y %d %h')
+>>> now.strftime('%Y %d %b')
'2002 30 Dec'
\end{verbatim}