= raw_input('Prompt: ')
#
What I want to do is execute a scheduled task that prompts me for
something and allows me to enter it and have it stored somewhere. I'm
on Ubuntu Linux.
Thanks in advance!
Steven D'Aprano wrote:
> On Sat, 08 Apr 2006 23:07:54 -0700, Rex Eastbour
Hi,
I'm executing a python script as a cron job. When I run it myself from
the command line it works, but when cron executes it I get an EOFError:
File "/home/rex/cronscript.py", line 6, in ?
level = int(raw_input("hello?"))
EOFError: EOF when reading a line
It's not the last line of the fil
Are there any Bicycle Repair Man users here? I recently got PyDev for
Eclipse, which comes with BRM. I am disappointed with what I've seen,
although I'm not sure if I'm using its full functionality. According to
PyDev's documentation, this is what one can do:
-Rename a function/variable
-Block of
Are there any Bicycle Repair Man users here? I recently got PyDev for
Eclipse, which comes with BRM. I am disappointed with what I've seen,
although I'm not sure if I'm using its full functionality. According to
PyDev's documentation, this is what one can do:
-Rename a function/variable
-Block of
Thanks. I adapted it a bit:
def debug(foo):
print foo, 'is:'
exec('pprint.pprint(' + foo + ')')
But I'm getting "NameError: name 'foo' is not defined," since foo is
not defined in this scope. (The function works beautifully when I'm
dealing with global variables, which is very rarely).
A
Hi all,
I've written the following simple macro called debug(aname, avalue)
that prints out the name of an expression and its value:
def debug(aname, avalue):
print aname, 'is':
pprint.pprint(avalue)
An example call is:
debug('compose(f1,f2)', compose(f1,f2))
Writing the exact same thi
Yes, I knew that copying it to my root was a kludge. But between that
and not having it work, I chose the former. (As you might be able to
tell from my posts, I tried multiple things and was frustrated.) I
tried putting quotes around "c:\program files\python24". It still
didn't work.
I chose to in
Yes! Thank you so much! (For some reason, by the way, I had to copy
python.exe to my c:/ directory, since the computer could never find the
path in program files/python24. But when I did that, and used
setq-py-python-command, it worked. I now have python.exe in two
locations.)
--
http://mail.pyth
Also, when I try running pdb in my Emacs shell, I get very weird
behavior: for instance, I'll hit 'h' and enter twenty times with no
output. Then, all of a sudden, twenty output messages will pop up.
--
http://mail.python.org/mailman/listinfo/python-list
One thing: is it possible to go through the code within emacs? Doing it
on the command line is useful, but it would be very helpful if I could
have a little marker within the emacs buffer that showed me where I am.
Rex
--
http://mail.python.org/mailman/listinfo/python-list
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
GUD, PDB, and others. Which ones do I need?
Thanks,
Rex Eastbourne
--
http://mail.python.org/mailman/listinfo/python-list
I went to My Computer | Properties | Advanced | Environment Variables
and added c:\program files\python24 to both the PYTHONPATH and Path
variables. Still no luck. I don't know whether the path I'm talking
about is the same as the $PATH you referred to, or whether I'm supposed
to put python.exe exp
I have the following in my .emacs:
(add-to-list 'load-path "C:\Program Files\Python24")
Is that enough? I didn't see anything similar to that in your .emacs
file, so I'm wondering if I'm supposed to add the path to my PATH
elsewhere.
Thanks,
Rex
--
http://mail.python.org/mailman/listinfo/pyth
Hi Skip and Philippe. I added the path for Python to PATH, but I still
get the same message (when I try executing the current buffer, I get
the message: "The system cannot find the path specified."
Philippe, I have the above lines of code in my .emacs file.
As for my environment, I'm running Emac
Hi,
I'm interested in running a Python interpreter in Emacs. I have Python
extensions for Emacs, and my python menu lists "C-c !" as the command
to run the interpreter. Yet when I run it I get the message "Spawning
Child Process: invalid argument." What do I need to do/download to fix
this?
I rea
16 matches
Mail list logo