Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can read about the changes in <a href="http://docs.python.org/3.0/whatsnew/3.0.html">What's New In Python 3.0</a>. You should read it thoroughly when you move from 2.x to 3.x since a lot has been changed.</p> <p>The whole answer here are quotes from the documentation.</p> <p><strong><a href="http://docs.python.org/3.0/whatsnew/3.0.html#views-and-iterators-instead-of-lists">Views And Iterators Instead Of Lists</a></strong></p> <blockquote> <p>Some well-known APIs no longer return lists:</p> <ul> <li>[...]</li> <li><a href="http://docs.python.org/3.0/library/functions.html#map"><code>map()</code></a> and <a href="http://docs.python.org/3.0/library/functions.html#filter"><code>filter()</code></a> return iterators. If you really need a list, a quick fix is e.g. <code>list(map(...))</code>, but a better fix is often to use a list comprehension (especially when the original code uses lambda), or rewriting the code so it doesn’t need a list at all. Particularly tricky is <code>map()</code> invoked for the side effects of the function; the correct transformation is to use a regular <code>for</code> loop (since creating a list would just be wasteful).</li> <li>[...]</li> </ul> </blockquote> <p><strong><a href="http://docs.python.org/3.0/whatsnew/3.0.html#builtins">Builtins</a></strong></p> <blockquote> <ul> <li>[...]</li> <li>Removed <code>reduce()</code>. Use <a href="http://docs.python.org/3.0/library/functools.html#functools.reduce"><code>functools.reduce()</code></a> if you really need it; however, 99 percent of the time an explicit <code>for</code> loop is more readable.</li> <li>[...]</li> </ul> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload