mò ò£°Cc@sždkZdZdZdZed„Zhde<de<de<d e<d e>> exit XXX Whatever XXX is (it depends on what interpreter you're using), it doesn't work. Likewise for quit. Instead type 'raise SystemExit' or type ctrl-C (KeyboardInterrupt) to exit. You will recieve a prompt asking if you wish to leave. You cannot define a function. In fact, you can't do anything that takes more than 1 line of code. This isn't exactly a bug, but it sure looks like it, I know. For information on reading files that have several lines of Python code, type 'user_help' Please report other bugs to dustan@sheltx.com subject 'Executor Bugs' sø This interpreter runs single lines of Python code, and imports files with multiple lines of code. For help on Python, there are many books available, and documentation is available on the web at doc.python.org, though not very understandable by the average user. It is not necessary to type 'print' in front of something you want printed (which is the reason this interpreter prints 'None' when running a function that doesn't return anything). You will see the result of 'print str(variable)' when you just put 'variable'. To import a file and execute it, use the function user_import, like so: >>> user_import() file name: XXX.py >>> print "or:" or: >>> user_import('XXX.txt') Note that the function doesn't care whether it's a .py file or not, and it executes everything, including the print statements. Do you have suggestions for improvements or extensions to this program? Please tell me at dustan@sheltx.com! sê E x e c u t e o d e Copyright 2005 Dustan Levenstein. You may download my program, but don't distribute it. You may share it with a few people face-to-face, but leave it as-is; only modify it for personal use. If you really want to distribute it to people from a distance, tell them the URL to which they must go. Don't use this logo elsewhere, and be sure not to modify it when sharing it with those 2-3 people face-to-face. Is this logo already in use? I don't want to infringe on copyrights, so please tell me! Other questions? 'Use your common sense', that's the phrase lawyers need to learn. c Cs`| otdƒ}nt|dƒ}|iƒ}d}x|D]}||7}q@W|tUdS(sÞreads the file filename into a list, combines the list element strings into one long string, and executes it. It assumes, of course, that this is being called using the interpreter, which will catch all errors.s file name: trtN( tfilenamet raw_inputtfiletthefilet readlinestthelistt thestringtelemtlocal( RRRRRRRR R ((s Execode.pys user_importWs t __builtins__t user_bugst user_helpt user_importtExecodes>>> c Cs·yBt|ƒ}yd|dtUWntj o|tUnXWnnttfj oLtdƒ}|iƒdjo t‚n|iƒdjondGHnt i ƒnXdS(s#runs the user's Python statement(s)s print str(t)s Do you wish to exit (y/n)?tytnsinvalid; continue anyway.N( RtcalltcodeR t SyntaxErrort SystemExittKeyboardInterrupttexitingtlowert tracebackt print_exc( RRRR RRRRRRR((s Execode.pyspromptls    s Execodes by Dustan Levenstein.s2type 'user_bugs' to learn what the known bugs are.s?type 'user_help' for some basic tips on using this interpreter.s8type 'user_import()' to execute code in a seperate file.s=Copyright 2005 Dustan Levenstein. Type 'Execode' for details.( RR R RtNoneRR R tprompttTrue( RR R RRRR R RR((s Execode.pyss&