Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75645
| References | <pkmtt9135hrbk9l7u3bq9no55ttok69q3p@4ax.com> <53dee1e2$0$9505$c3e8da3$5496439d@news.astraweb.com> |
|---|---|
| Date | 2014-08-04 11:43 +1000 |
| Subject | Re: CodeSkulptor |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12611.1407116631.18130.python-list@python.org> (permalink) |
On Mon, Aug 4, 2014 at 11:29 AM, Steven D'Aprano <steve+comp.lang.python@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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
CodeSkulptor Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-03 21:06 -0400
Re: CodeSkulptor Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-04 02:21 +0100
Re: CodeSkulptor Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-04 11:29 +1000
Re: CodeSkulptor Chris Angelico <rosuav@gmail.com> - 2014-08-04 11:43 +1000
Re: CodeSkulptor Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-03 22:08 -0400
Re: CodeSkulptor Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-03 22:38 -0400
Re: CodeSkulptor Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-04 13:03 +1000
Re: CodeSkulptor Chris Angelico <rosuav@gmail.com> - 2014-08-04 13:09 +1000
Re: CodeSkulptor Peter Otten <__peter__@web.de> - 2014-08-04 14:39 +0200
Re: CodeSkulptor Chris Angelico <rosuav@gmail.com> - 2014-08-05 00:18 +1000
Re: CodeSkulptor Chris Angelico <rosuav@gmail.com> - 2014-08-04 13:05 +1000
Re: CodeSkulptor Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-08-04 10:26 +0200
Re: CodeSkulptor Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-03 21:41 -0400
Re: CodeSkulptor Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-04 02:56 +0100
Re: CodeSkulptor Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-03 22:07 -0400
Re: CodeSkulptor Terry Reedy <tjreedy@udel.edu> - 2014-08-04 03:02 -0400
csiph-web