On Mon, 4 Aug 2014 11:43:48 +1000, Chris Angelico <ros...@gmail.com> wrote:
>On Mon, Aug 4, 2014 at 11:29 AM, Steven D'Aprano ><steve+comp.lang.pyt...@pearwood.info> wrote: >>> Putting that in codeskulptor gets >>> >>> Line 4: ImportError: No module named datetime >> >> Well that's a bug in CodeSkultor. datetime is a standard Python library, if >> CodeSkulptor doesn't provide it, that's a serious bug. > >I think it's not a bug, but a restriction; since it's letting you run >code on their server, and since Python sandboxing is a hard problem, >CodeSkulptor cuts down the available modules. From the docs: > >http://www.codeskulptor.org/docs.html#tabs-Python >""" >CodeSkulptor implements the following subset of the Python standard >library. To use these operations, first import the relevant module >with an import statement, such asimport math. >""" > >Solution: Don't try to run Python code in your browser, but download >and install an actual interpreter. > >ChrisA I am just going to run 3.3 remotely. Thanks -- https://mail.python.org/mailman/listinfo/python-list