Re: Python evaluator

2009-03-06 Thread Mensanator
On Mar 6, 5:26 am, vedrandeko...@gmail.com wrote: > Hello, > > I have created a "Python evaluator" - system that evaluates python > scripts.Better explanation (how does it work): >      1.) You have to open task that you want to solve from evaluator > task panel &g

Python evaluator

2009-03-06 Thread vedrandekovic
Hello, I have created a "Python evaluator" - system that evaluates python scripts.Better explanation (how does it work): 1.) You have to open task that you want to solve from evaluator task panel 2.) Solve task 3.) Send task on evaluator 4.) After few seconds yo

Re: Can i use this script as a python evaluator?

2008-10-20 Thread Steven D'Aprano
On Tue, 21 Oct 2008 11:22:56 +0800, Peter Wang wrote: > Nathan Seese <[EMAIL PROTECTED]> writes: > >>> #! /bin/sh >>> python -c "import sys;exec(sys.stdin)" >> >> I know this isn't your question, but I think you could write that more >> cleanly with: >> >> #!/usr/bin/python >> import sys >> exec(

Re: Can i use this script as a python evaluator?

2008-10-20 Thread Peter Wang
Nathan Seese <[EMAIL PROTECTED]> writes: >> #! /bin/sh >> python -c "import sys;exec(sys.stdin)" > > I know this isn't your question, but I think you could write that more > cleanly with: > > #!/usr/bin/python > import sys > exec(sys.stdin) thanks. What's the difference between this and mine? I

Re: Can i use this script as a python evaluator?

2008-10-20 Thread Nathan Seese
> #! /bin/sh > python -c "import sys;exec(sys.stdin)" I know this isn't your question, but I think you could write that more cleanly with: #!/usr/bin/python import sys exec(sys.stdin) -- http://mail.python.org/mailman/listinfo/python-list

Re: Can i use this script as a python evaluator?

2008-10-20 Thread Peter Wang
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > Peter Wang a �crit : >> >> #! /bin/sh >> python -c "import sys;exec(sys.stdin)" >> >> >> Emacs has a function `shell-command-on-region', which takes region as >> input for the evaluator (script above), and output its result. I have >> tried and f

Re: Can i use this script as a python evaluator?

2008-10-20 Thread Bruno Desthuilliers
Peter Wang a écrit : #! /bin/sh python -c "import sys;exec(sys.stdin)" Emacs has a function `shell-command-on-region', which takes region as input for the evaluator (script above), and output its result. I have tried and found it works, is there any problems for this, or any other better solut

Can i use this script as a python evaluator?

2008-10-20 Thread Peter Wang
#! /bin/sh python -c "import sys;exec(sys.stdin)" Emacs has a function `shell-command-on-region', which takes region as input for the evaluator (script above), and output its result. I have tried and found it works, is there any problems for this, or any other better solution for it? Thanks.