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

Skip to content

Commit ccf0465

Browse files
committed
Correctly create new-style classes in the examples
Mention change to _PyTuple_Resize
1 parent dc47a89 commit ccf0465

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

Doc/whatsnew/whatsnew22.tex

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ \subsection{Descriptors}
236236
this:
237237

238238
\begin{verbatim}
239-
class C:
239+
class C(object):
240240
def f(arg1, arg2):
241241
...
242242
f = staticmethod(f)
@@ -263,7 +263,7 @@ \subsection{Descriptors}
263263
\begin{verbatim}
264264
from eiffel import eiffelmethod
265265
266-
class C:
266+
class C(object):
267267
def f(self, arg1, arg2):
268268
# The actual function
269269
def pre_f(self):
@@ -375,7 +375,7 @@ \subsection{Attribute Access}
375375
computed, but also settable, you could write:
376376

377377
\begin{verbatim}
378-
class C:
378+
class C(object):
379379
def get_size (self):
380380
result = ... computation ...
381381
return result
@@ -1246,6 +1246,11 @@ \section{Interpreter Changes and Fixes}
12461246
bounds of the buffer used to protect against buffer overruns.
12471247
(Contributed by M.-A. Lemburg.)
12481248

1249+
\item The \cfunction{_PyTuple_Resize()} function has lost an unused
1250+
parameter, so now it takes 2 parameters instead of 3. The third
1251+
argument was never used, and can simply be discarded when porting
1252+
code from earlier versions to Python 2.2.
1253+
12491254
\end{itemize}
12501255

12511256

@@ -1404,9 +1409,10 @@ \section{Acknowledgements}
14041409
The author would like to thank the following people for offering
14051410
suggestions, corrections and assistance with various drafts of this
14061411
article: Fred Bremmer, Keith Briggs, Andrew Dalke, Fred~L. Drake, Jr.,
1407-
Carel Fellinger, David Goodger, Mark Hammond, Stephen Hansen, Michael Hudson, Jack
1408-
Jansen, Marc-Andr\'e Lemburg, Martin von L\"owis, Fredrik Lundh,
1409-
Michael McLay, Nick Mathewson, Paul Moore, Tim Peters, Jens Quade, Tom
1410-
Reinhardt, Neil Schemenauer, Guido van Rossum, Greg Ward.
1412+
Carel Fellinger, David Goodger, Mark Hammond, Stephen Hansen, Michael
1413+
Hudson, Jack Jansen, Marc-Andr\'e Lemburg, Martin von L\"owis, Fredrik
1414+
Lundh, Michael McLay, Nick Mathewson, Paul Moore, Gustavo Niemeyer,
1415+
Don O'Donnell, Tim Peters, Jens Quade, Tom Reinhardt, Neil
1416+
Schemenauer, Guido van Rossum, Greg Ward.
14111417

14121418
\end{document}

0 commit comments

Comments
 (0)