Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee1bded

Browse files
committed
Correct typos in example code.
1 parent c99b675 commit ee1bded

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/whatsnew/whatsnew23.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ \section{Extended Slices\label{section-slices}}
894894
>>> a[::2] = [0,1,2]
895895
Traceback (most recent call last):
896896
File "<stdin>", line 1, in ?
897-
ValueError: attempt to assign list of size 3 to extended slice of size 2
897+
ValueError: attempt to assign sequence of size 3 to extended slice of size 2
898898
\end{verbatim}
899899

900900
Deletion is more straightforward:
@@ -1000,7 +1000,7 @@ \section{Other Language Changes}
10001000
>>> d.pop(1)
10011001
Traceback (most recent call last):
10021002
File "stdin", line 1, in ?
1003-
KeyError: pop(): dictionary is empty
1003+
KeyError: 'pop(): dictionary is empty'
10041004
>>> d
10051005
{}
10061006
>>>
@@ -1682,7 +1682,7 @@ \subsection{Date/Time Type}
16821682
'2002-12-30T21:27:03.994956'
16831683
>>> now.ctime() # Only available on date, datetime
16841684
'Mon Dec 30 21:27:03 2002'
1685-
>>> now.strftime('%Y %d %h')
1685+
>>> now.strftime('%Y %d %b')
16861686
'2002 30 Dec'
16871687
\end{verbatim}
16881688

0 commit comments

Comments
 (0)