Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Matt Daemon
(
python.org
)
3 points
by
ballpoint
on April 22, 2014
|
hide
|
past
|
favorite
|
1 comment
rspeer
on April 23, 2014
[–]
Why Python 2.7 only? This looks like it would be Python 3 code if you simply changed
print str(err)
to:
print(str(err))
Except, that's a pretty unhelpful thing to print. I believe a much better statement to put there, in Python 2 or 3, would be:
raise
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: