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.

Matt Daemon

3 pointsby ballpointabout 11 years ago

1 comment

rspeerabout 11 years ago
Why Python 2.7 only? This looks like it would be Python 3 code if you simply changed<p><pre><code> print str(err) </code></pre> to:<p><pre><code> print(str(err)) </code></pre> Except, that&#x27;s a pretty unhelpful thing to print. I believe a much better statement to put there, in Python 2 or 3, would be:<p><pre><code> raise</code></pre>