File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -894,7 +894,7 @@ \section{Extended Slices\label{section-slices}}
894894>>> a[::2] = [0,1,2]
895895Traceback (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
900900Deletion is more straightforward:
@@ -1000,7 +1000,7 @@ \section{Other Language Changes}
10001000>>> d.pop(1)
10011001Traceback (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
You can’t perform that action at this time.
0 commit comments