Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75686

Re: CodeSkulptor

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; '"this': 0.03; 'interpreter': 0.05; 'excluding': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subset': 0.09; "they've": 0.09; 'way:': 0.09; 'runs': 0.10; 'python': 0.11; 'bug,': 0.16; 'excluded': 0.16; 'importerror': 0.16; 'importerror,': 0.16; 'letting': 0.16; 'modules.': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'weird': 0.16; 'wrote:': 0.18; 'server,': 0.19; 'written': 0.21; 'seems': 0.21; 'import': 0.22; 'aug': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'mon,': 0.24; 'header:X-Complaints-To:1': 0.27; 'wondering': 0.29; 'chris': 0.29; 'code': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'anyone': 0.31; 'there.': 0.32; 'run': 0.32; 'entirely': 0.33; 'maybe': 0.34; 'could': 0.34; 'case,': 0.35; 'test': 0.35; 'but': 0.35; 'there': 0.35; 'skip:> 10': 0.36; 'url:org': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'gone': 0.61; 'back': 0.62; 'soon': 0.63; 'carefully': 0.74; 'browser.': 0.78; 'cuts': 0.84; 'them)': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Peter Otten <__peter__@web.de>
Subject Re: CodeSkulptor
Date Mon, 04 Aug 2014 14:39:22 +0200
Organization None
References <pkmtt9135hrbk9l7u3bq9no55ttok69q3p@4ax.com> <53dee1e2$0$9505$c3e8da3$5496439d@news.astraweb.com> <mailman.12611.1407116631.18130.python-list@python.org> <cnqtt95jk1sggn64dtg73r8ccb6ieiq5n4@4ax.com> <5gstt9lf3ui5r6novjof9k0mnim3rqqlhl@4ax.com> <53def7fe$0$29974$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmqp9N05M5CART_bLy0E1gqxRHK4M7KQE6oQbChmb57z1g@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Gmane-NNTP-Posting-Host p57bdb6f6.dip0.t-ipconnect.de
User-Agent KNode/4.11.5
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12638.1407155986.18130.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1407155986 news.xs4all.nl 2893 [2001:888:2000:d::a6]:53895
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75686

Show key headers only | View raw


Chris Angelico wrote:

> On Mon, Aug 4, 2014 at 1:03 PM, Steven D'Aprano
> <steve+comp.lang.python@pearwood.info> wrote:
>>>>>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
>>
>> Excluding datetime seems rather extreme to me.
> 
> By the look of their docs, they've actually gone the other way: it's
> not that they've excluded datetime, but that they've carefully vetted
> a specific set of modules (and maybe not all functionality in them)
> and that's all they support. In any case, I think that as soon as you
> hit an ImportError on the sandbox, you should go and download Python
> for your desktop and start working there.
> 
> (Idea, for anyone who runs a sandbox like that: Enumerate all packages
> and modules in the stdlib, and create a little stub for each of them.
> "import blahblah" will still produce ImportError, but "import
> datetime" could report back "This interpreter is working with a small
> subset of the Python standard library" rather than leaving us
> wondering if there was some weird copy/paste error in the import line.
> And yes, I did test for that.)

All nice and dandy, but the site seems to use a Python implementation 
entirely written in javascript:

http://www.skulpt.org/

It's not a sandbox on the server, the code runs in your browser.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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