Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 1 | **************************** |
| 2 | What's New in Python 3.0 |
| 3 | **************************** |
| 4 | |
Andrew M. Kuchling | bbb809e | 2007-09-01 19:26:28 +0000 | [diff] [blame] | 5 | :Author: Guido van Rossum |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 6 | :Release: 0.1 |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 7 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 8 | .. Rules for maintenance: |
| 9 | |
| 10 | * Anyone can add text to this document. Do not spend very much time |
| 11 | on the wording of your changes, because your text will probably |
| 12 | get rewritten to some degree. |
| 13 | |
| 14 | * The maintainer will go through Misc/NEWS periodically and add |
| 15 | changes; it's therefore more important to add your changes to |
| 16 | Misc/NEWS than to this file. |
| 17 | |
| 18 | * This is not a complete list of every single change; completeness |
| 19 | is the purpose of Misc/NEWS. Some changes I consider too small |
| 20 | or esoteric to include. If such a change is added to the text, |
| 21 | I'll just remove it. (This is another reason you shouldn't spend |
| 22 | too much time on writing your addition.) |
| 23 | |
| 24 | * If you want to draw your new text to the attention of the |
| 25 | maintainer, add 'XXX' to the beginning of the paragraph or |
| 26 | section. |
| 27 | |
| 28 | * It's OK to just add a fragmentary note about a change. For |
| 29 | example: "XXX Describe the transmogrify() function added to the |
| 30 | socket module." The maintainer will research the change and |
| 31 | write the necessary text. |
| 32 | |
| 33 | * You can comment out your additions if you like, but it's not |
| 34 | necessary (especially when a final release is some months away). |
| 35 | |
| 36 | * Credit the author of a patch or bugfix. Just the name is |
| 37 | sufficient; the e-mail address isn't necessary. |
| 38 | |
| 39 | * It's helpful to add the bug/patch number as a comment: |
| 40 | |
| 41 | % Patch 12345 |
| 42 | XXX Describe the transmogrify() function added to the socket |
| 43 | module. |
| 44 | (Contributed by P.Y. Developer.) |
| 45 | |
| 46 | This saves the maintainer the effort of going through the SVN log |
| 47 | when researching a change. |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 48 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 49 | This article explains the new features in Python 3.0, comparing to 2.6 |
| 50 | (or in some cases 2.5, since 2.6 isn't released yet). |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 51 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 52 | The best estimate for a release date is August 2008. |
| 53 | |
| 54 | This article doesn't attempt to provide a complete specification of |
| 55 | the new features, but instead provides a convenient overview. For |
| 56 | full details, you should refer to the documentation for Python 3.0. If |
| 57 | you want to understand the complete implementation and design |
| 58 | rationale, refer to the PEP for a particular new feature. |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 59 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 60 | .. Compare with previous release in 2 - 3 sentences here. |
| 61 | .. add hyperlink when the documentation becomes available online. |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 62 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 63 | .. ====================================================================== |
| 64 | .. Large, PEP-level features and changes should be described here. |
| 65 | .. Should there be a new section here for 3k migration? |
| 66 | .. Or perhaps a more general section describing module changes/deprecation? |
| 67 | .. sets module deprecated |
| 68 | .. ====================================================================== |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 69 | |
| 70 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 71 | Common Stumbling Blocks |
| 72 | ======================= |
| 73 | |
| 74 | This section briefly lists the changes that are more likely to trip |
| 75 | people up, without necessarily raising obvious errors. These are all |
| 76 | explained in more detail below. (I'm not listing syntactic changes |
| 77 | and removed or renamed features here, since those tend to produce hard |
| 78 | and fast errors; it's the subtle behavioral changes in code that |
| 79 | remains syntactically valid that trips people up. I'm also omitting |
| 80 | changes to rarely used features.) |
| 81 | |
Guido van Rossum | dff1c31 | 2007-09-06 14:46:41 +0000 | [diff] [blame] | 82 | * The ``print`` statement has been replaced with a ``print()`` function, |
| 83 | with keyword arguments to replace most of the special syntax of the |
| 84 | old ``print`` statement (PEP 3105). Examples:: |
| 85 | |
| 86 | Old: print "The answer is", 2*2 |
| 87 | New: print("The answer is", 2*2) |
| 88 | |
| 89 | Old: print x, # Trailing comma suppresses newline |
| 90 | New: print(x, end=" ") # Appends a space instead of a newline |
| 91 | |
| 92 | Old: print # Prints a newline |
| 93 | New: print() # You must call the function! |
| 94 | |
| 95 | Old: print >>sys.stderr, "fatal error" |
| 96 | New: print("fatal error", file=sys.stderr) |
| 97 | |
| 98 | Old: print (x, y) # prints repr((x, y)) |
| 99 | New: print((x, y)) # Not the same as print(x, y)! |
| 100 | |
| 101 | You can also customize the separator between items, e.g.:: |
| 102 | |
| 103 | print("There are <", 2**32, "> possibilities!", sep="") |
| 104 | |
| 105 | which produces:: |
| 106 | |
| 107 | There are <4294967296> possibilities! |
| 108 | |
| 109 | Notes about the ``print()`` function: |
| 110 | |
| 111 | * The ``print()`` function doesn't support the "softspace" feature of |
| 112 | the old ``print`` statement. For example, in Python 2.x, |
| 113 | ``print "A\n", "B"`` would write ``"A\nB\n"``; but in Python 3.0, |
| 114 | ``print("A\n", "B")`` writes ``"A\n B\n"``. |
| 115 | |
| 116 | * Initially, you'll be finding yourself typing the old ``print x`` |
| 117 | a lot in interactive mode. Time to retrain your fingers to type |
| 118 | ``print(x)`` instead! |
| 119 | |
| 120 | * When using the ``2to3`` source-to-source conversion tool, all |
| 121 | ``print`` statements are autmatically converted to ``print()`` |
| 122 | function calls, so this is mostly a non-issue for larger projects. |
| 123 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 124 | * Python 3.0 uses strings and bytes instead of the Unicode strings and |
| 125 | 8-bit strings. This means that pretty much all code that uses |
| 126 | Unicode, encodings or binary data in any way has to change. The |
| 127 | change is for the better, as in the 2.x world there were numerous |
| 128 | bugs having to do with mixing encoded and unencoded text. |
| 129 | |
| 130 | * Text files enforce an encoding; binary files use bytes. This means |
| 131 | that if a file is opened using an incorrect mode or encoding, I/O |
| 132 | will likely fail. |
| 133 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 134 | * ``map()`` and ``filter()`` return iterators. A quick fix is e.g. |
| 135 | ``list(map(...))``, but a better fix is often to use a list |
| 136 | comprehension (especially when the original code uses ``lambda``). |
| 137 | Particularly tricky is ``map()`` invoked for the side effects of the |
| 138 | function; the correct transformation is to use a for-loop. |
| 139 | |
| 140 | * ``dict`` methods ``.keys()``, ``.items()`` and ``.values()`` return |
| 141 | views instead of lists. For example, this no longer works: |
| 142 | ``k = d.keys(); k.sort()``. Use ``k = sorted(d)`` instead. |
| 143 | |
| 144 | * ``1/2`` returns a float. Use ``1//2`` to get the truncating behavior. |
| 145 | |
Georg Brandl | cc595bd | 2007-12-09 09:04:01 +0000 | [diff] [blame] | 146 | * The ``repr()`` of a long integer doesn't include the trailing ``L`` |
| 147 | anymore, so code that unconditionally strips that character will |
| 148 | chop off the last digit instead. |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 149 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 150 | |
| 151 | Strings and Bytes |
| 152 | ================= |
| 153 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 154 | * There is only one string type; its name is ``str`` but its behavior |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 155 | and implementation are more like ``unicode`` in 2.x. |
| 156 | |
Guido van Rossum | 98297ee | 2007-11-06 21:34:58 +0000 | [diff] [blame] | 157 | * PEP 3137: There is a new type, ``bytes``, to represent binary data |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 158 | (and encoded text, which is treated as binary data until you decide |
| 159 | to decode it). The ``str`` and ``bytes`` types cannot be mixed; you |
| 160 | must always explicitly convert between them, using the ``.encode()`` |
Guido van Rossum | 98297ee | 2007-11-06 21:34:58 +0000 | [diff] [blame] | 161 | (str -> bytes) or ``.decode()`` (bytes -> str) methods. |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 162 | |
| 163 | * PEP 3112: Bytes literals. E.g. b"abc". |
| 164 | |
| 165 | * PEP 3120: UTF-8 default source encoding. |
| 166 | |
| 167 | * PEP 3131: Non-ASCII identifiers. (However, the standard library |
| 168 | remains ASCII-only with the exception of contributor names in |
| 169 | comments.) |
| 170 | |
| 171 | * PEP 3116: New I/O Implementation. The API is nearly 100% backwards |
| 172 | compatible, but completely reimplemented (currently mostly in |
| 173 | Python). Also, binary files use bytes instead of strings. |
| 174 | |
| 175 | * The ``StringIO`` and ``cStringIO`` modules are gone. Instead, |
| 176 | import ``StringIO`` or ``BytesIO`` from the ``io`` module. |
| 177 | |
| 178 | |
| 179 | PEP 3101: A New Approach to String Formatting |
| 180 | ============================================= |
| 181 | |
| 182 | XXX |
| 183 | |
| 184 | |
| 185 | PEP 3106: Revamping ``.keys()``, ``.items()`` and ``.values()`` |
| 186 | =============================================================== |
| 187 | |
| 188 | XXX |
| 189 | |
| 190 | |
| 191 | PEP 3107: Function Annotations |
| 192 | ============================== |
| 193 | |
| 194 | XXX |
| 195 | |
| 196 | |
| 197 | Exception Stuff |
| 198 | =============== |
| 199 | |
| 200 | * PEP 352: Exceptions must derive from BaseException. This is the |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 201 | root of the exception hierarchy. |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 202 | |
| 203 | * StandardException was removed (already in 2.6). |
| 204 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 205 | * Dropping sequence behavior (slicing!) and ``.message`` attribute of |
| 206 | exception instances. |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 207 | |
| 208 | * PEP 3109: Raising exceptions. You must now use ``raise |
| 209 | Exception(args)`` instead of ``raise Exception, args``. |
| 210 | |
| 211 | * PEP 3110: Catching exceptions. |
| 212 | |
| 213 | * PEP 3134: Exception chaining. (The ``__context__`` feature from the |
| 214 | PEP hasn't been implemented yet in 3.0a1.) |
| 215 | |
| 216 | |
| 217 | New Class and Metaclass Stuff |
| 218 | ============================= |
| 219 | |
| 220 | * Classic classes are gone. |
| 221 | |
| 222 | * PEP 3115: New Metaclass Syntax. |
| 223 | |
Skip Montanaro | a86f5d4 | 2007-09-04 02:48:01 +0000 | [diff] [blame] | 224 | * PEP 3119: Abstract Base Classes (ABCs); ``@abstractmethod`` and |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 225 | ``@abstractproperty`` decorators; collection ABCs. |
| 226 | |
| 227 | * PEP 3129: Class decorators. |
| 228 | |
| 229 | * PEP 3141: Numeric ABCs. |
| 230 | |
| 231 | |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 232 | Other Language Changes |
| 233 | ====================== |
| 234 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 235 | Here are most of the changes that Python 3.0 makes to the core Python |
| 236 | language and built-in functions. |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 237 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 238 | * Removed backticks (use ``repr()`` instead). |
| 239 | |
| 240 | * Removed ``<>`` (use ``!=`` instead). |
| 241 | |
| 242 | * ``as`` and ``with`` are keywords. |
| 243 | |
| 244 | * PEP 237: ``long`` renamed to ``int``. That is, there is only one |
| 245 | built-in integral type, named ``int``; but it behaves like the old |
Georg Brandl | cc595bd | 2007-12-09 09:04:01 +0000 | [diff] [blame] | 246 | ``long`` type, with the exception that the literal suffix ``L`` is |
| 247 | neither supported by the parser nor produced by ``repr()`` anymore. |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 248 | |
| 249 | * PEP 238: int division returns a float. |
| 250 | |
| 251 | * The ordering operators behave differently: for example, ``x < y`` |
| 252 | where ``x`` and ``y`` have incompatible types raises ``TypeError`` |
| 253 | instead of returning a pseudo-random boolean. |
| 254 | |
| 255 | * ``__getslice__()`` and friends killed. The syntax ``a[i:j]`` now |
| 256 | translates to ``a.__getitem__(slice(i, j))`` (or ``__setitem__`` |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 257 | or ``__delitem__``, depending on context). |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 258 | |
| 259 | * PEP 3102: Keyword-only arguments. Named parameters occurring after |
| 260 | ``*args`` in the parameter list *must* be specified using keyword |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 261 | syntax in the call. You can also use a bare ``*`` in the parameter |
| 262 | list to indicate that you don't accept a variable-length argument |
| 263 | list, but you do have keyword-only arguments. |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 264 | |
| 265 | * PEP 3104: ``nonlocal`` statement. Using ``nonlocal x`` you can now |
| 266 | assign directly to a variable in an outer (but non-global) scope. |
| 267 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 268 | * PEP 3111: ``raw_input()`` renamed to ``input()``. That is, the new |
| 269 | ``input()`` function reads a line from ``sys.stdin`` and returns it |
| 270 | with the trailing newline stripped. It raises ``EOFError`` if the |
| 271 | input is terminated prematurely. To get the old behavior of |
| 272 | ``input()``, use ``eval(input())``. |
| 273 | |
| 274 | * ``xrange()`` renamed to ``range()``. |
| 275 | |
| 276 | * PEP 3113: Tuple parameter unpacking removed. You can no longer write |
| 277 | ``def foo(a, (b, c)): ...``. Use ``def foo(a, b_c): b, c = b_c`` |
| 278 | instead. |
| 279 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 280 | * PEP 3114: ``.next()`` renamed to ``.__next__()``, new builtin |
| 281 | ``next()`` to call the ``__next__()`` method on an object. |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 282 | |
| 283 | * PEP 3127: New octal literals; binary literals and ``bin()``. |
| 284 | Instead of ``0666``, you write ``0o666``. The oct() function is |
| 285 | modified accordingly. Also, ``0b1010`` equals 10, and ``bin(10)`` |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 286 | returns ``"0b1010"``. ``0666`` is now a ``SyntaxError``. |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 287 | |
| 288 | * PEP 3132: Extended Iterable Unpacking. You can now write things |
| 289 | like ``a, b, *rest = some_sequence``. And even ``*rest, a = |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 290 | stuff``. The ``rest`` object is always a list; the right-hand |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 291 | side may be any iterable. |
| 292 | |
| 293 | * PEP 3135: New ``super()``. You can now invoke ``super()`` without |
| 294 | arguments and the right class and instance will automatically be |
| 295 | chosen. With arguments, its behavior is unchanged. |
| 296 | |
| 297 | * ``zip()``, ``map()`` and ``filter()`` return iterators. |
| 298 | |
| 299 | * ``string.letters`` and its friends (``.lowercase`` and |
| 300 | ``.uppercase``) are gone. Use ``string.ascii_letters`` |
| 301 | etc. instead. |
| 302 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 303 | * Removed: ``apply()``, ``callable()``, ``coerce()``, ``execfile()``, |
| 304 | ``file()``, ``reduce()``, ``reload()``. |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 305 | |
| 306 | * Removed: ``dict.has_key()``. |
| 307 | |
| 308 | * ``exec`` is now a function. |
| 309 | |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 310 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 311 | .. ====================================================================== |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 312 | |
| 313 | |
| 314 | Optimizations |
| 315 | ------------- |
| 316 | |
| 317 | * Detailed changes are listed here. |
| 318 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 319 | The net result of the 3.0 generalizations is that Python 3.0 runs the |
Guido van Rossum | b3922cb | 2007-08-31 14:03:28 +0000 | [diff] [blame] | 320 | pystone benchmark around 33% slower than Python 2.5. There's room for |
| 321 | improvement; we expect to be optimizing string and integer operations |
| 322 | significantly before the final 3.0 release! |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 323 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 324 | .. ====================================================================== |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 325 | |
| 326 | |
| 327 | New, Improved, and Deprecated Modules |
| 328 | ===================================== |
| 329 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 330 | As usual, Python's standard library received a number of enhancements |
| 331 | and bug fixes. Here's a partial list of the most notable changes, |
| 332 | sorted alphabetically by module name. Consult the :file:`Misc/NEWS` |
| 333 | file in the source tree for a more complete list of changes, or look |
Skip Montanaro | 4edae68 | 2007-09-04 02:52:00 +0000 | [diff] [blame] | 334 | through the Subversion logs for all the details. |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 335 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 336 | * The ``cPickle`` module is gone. Use ``pickle`` instead. Eventually |
| 337 | we'll have a transparent accelerator module. |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 338 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 339 | .. ====================================================================== |
| 340 | .. whole new modules get described in subsections here |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 341 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 342 | .. ====================================================================== |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 343 | |
| 344 | |
| 345 | Build and C API Changes |
| 346 | ======================= |
| 347 | |
| 348 | Changes to Python's build process and to the C API include: |
| 349 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 350 | * PEP 3118: New Buffer API. |
| 351 | |
| 352 | * PEP 3121: Extension Module Initialization & Finalization. |
| 353 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 354 | * PEP 3123: Making ``PyObject_HEAD`` conform to standard C. |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 355 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 356 | .. ====================================================================== |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 357 | |
| 358 | |
| 359 | Port-Specific Changes |
| 360 | --------------------- |
| 361 | |
| 362 | Platform-specific changes go here. |
| 363 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 364 | .. ====================================================================== |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 365 | |
| 366 | |
| 367 | .. _section-other: |
| 368 | |
| 369 | Other Changes and Fixes |
| 370 | ======================= |
| 371 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 372 | As usual, there were a bunch of other improvements and bugfixes |
| 373 | scattered throughout the source tree. A search through the change |
| 374 | logs finds there were XXX patches applied and YYY bugs fixed between |
| 375 | Python 2.6 and 3.0. Both figures are likely to be underestimates. |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 376 | |
| 377 | Some of the more notable changes are: |
| 378 | |
| 379 | * Details go here. |
| 380 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 381 | .. ====================================================================== |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 382 | |
| 383 | |
| 384 | Porting to Python 3.0 |
| 385 | ===================== |
| 386 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 387 | This section lists previously described changes that may require |
| 388 | changes to your code: |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 389 | |
| 390 | * Everything is all in the details! |
| 391 | |
Georg Brandl | 7274858 | 2008-01-20 10:59:44 +0000 | [diff] [blame^] | 392 | * Developers can include :file:`intobject.h` after :file:`Python.h` for |
| 393 | some ``PyInt_`` aliases. |
Christian Heimes | f78b1c6 | 2007-12-02 16:52:32 +0000 | [diff] [blame] | 394 | |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 395 | .. ====================================================================== |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 396 | |
| 397 | |
| 398 | .. _acks: |
| 399 | |
| 400 | Acknowledgements |
| 401 | ================ |
| 402 | |
Guido van Rossum | b197f3c | 2007-08-31 00:37:00 +0000 | [diff] [blame] | 403 | The author would like to thank the following people for offering |
| 404 | suggestions, corrections and assistance with various drafts of this |
Georg Brandl | 5a16558 | 2007-08-31 06:15:01 +0000 | [diff] [blame] | 405 | article: Georg Brandl. |
Georg Brandl | 116aa62 | 2007-08-15 14:28:22 +0000 | [diff] [blame] | 406 | |