TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Python Mistakes That Most People May Have Made at One Point or Another

5 pointsby jaxonduover 9 years ago

1 comment

toolsliveover 9 years ago
from the top of my head:<p><pre><code> - def bad_default(x = []) - bool(&#x27;False&#x27;) - 1--1 #typo - x = 42; y = 42L ; x==y,hex(x)==hex(y) - type(5&#x2F;2) # &lt;class &#x27;float&#x27;&gt; or &lt;type &#x27;int&#x27;&gt; (python2 versus python3)</code></pre>