mentby.com
Blog | Jobs | Help | Signup | Login

loading

Pygraphics crashed

Thu, 16 May 2013 15:28:14 -0700 Post Comments

On windows it's generally easiest to use a 32 bit Python. If you
uninstall python, and install a 32 bit version and the 32 bit modules
and so on, it should work.

By the way, do you mind if I ask why you're using PyGraphics? It's
only meant to be used for education (and even there, AFAIK the only
users are the University of Toronto (and even there, I think they
stopped using it because they switched to Python 3 for Coursera and
didn't care enough to upgrade PyGraphics (I am mad about this))).

-- Devin

Python for philosophers

Sun, 12 May 2013 01:19:24 -0700 Post Comments

Without benefit of the doubt, kindness is impossible. I would suggest
giving newcomers at least that much.

-- Devin

question about try/except blocks

Thu, 02 May 2013 19:27:08 -0700 Post Comments

It definitely shouldn't be done that way, since you might catch
exceptions in other circumstances too. Try this:

try:
    f = open(dest, 'wb', 0)
except OSError as exc:
with f:
    try:
    except IOError as exc:
    else:

-- Devin
Profile Widget
Copy and paste this HTML code to your blog or website: