Hi JBW.
code.interact() does what I wanted. Great !!!
Thanks
N
JBW wrote:
On Mon, 16 Mar 2009 23:49:34 +0100, nntpman68 wrote:
I'd like, that a python script can be started by just calling it
(clicking on it),
but that the script can decide to enter interactive mode if ce
Hi
I know about two ways to enter python interactive mode
1.) just start python
2.) run python -i pythonscript.py
What I am looking for is slightly different:
I'd like, that a python script can be started by just calling it
(clicking on it),
but that the script can decide to enter interac
Hm,
I guess you just filter mailing lists and can do nothing about the
newsgroup if I'm fetching via the nntp server of my ISP itself, right?
I'm using Thunderbird as news reader and this is probably not the
smartest news reader, though I like it a lot for mails.
Is there any pythonable (o
Hi,
Just some thoughts / now answer :-(
The solution might vary on the platform / OS.
Would it be acceptable for you to
control for example firefox from python and firefox would control skype
via the skype plugin. (should exist for multiple platforms)
Do you search a native python solution
Hi,
[EMAIL PROTECTED] wrote:
On Sep 10, 7:01 pm, Sean DiZazzo <[EMAIL PROTECTED]> wrote:
I am using windows and for reason it wont let me use pexpect even tho
I have CYGWIN installed
I get the following error
Traceback (most recent call last):
File "new.py", line 1, in
import ssh_se
doesn't exactly work for Python scripts, though:
$ cat env.py
#!/usr/bin/env python
import os
os.environ["TEST"] = "hello"
$ . ./env.py && env | grep TEST
import: unable to open X server `'.
bash: os.environ[TEST]: command not found
There's two options for the desperate ones.
1. Assumin
What I would do first is to print the result byte by byte each as
hexadecimal number.
If you can I would additionally populate the C-structure with numbers,
which are easier to follow.
Example:
signature = "ABC" // same as 0x41 0x42 0x43
version = 0x61626364
attr_count = 0x65667678
. . .
a
Hi Jean-Paul,
Jean-Paul Calderone wrote:
On Mon, 08 Sep 2008 21:03:48 +0200, Christian Heimes <[EMAIL PROTECTED]>
wrote:
Gary Robinson wrote:
In Python 2.5.2, I notice that, in the interpreter or in a script, I
can exit with:
exit()
The exit callable is defined in the site module. Chec
Hi Alanm
Thanks a lot. This helped me to locate it:
In my case it is:
C:\Python25\Scripts\launch-gazpacho.py
thanks again
bye
N
Alan Franzoni wrote:
nntpman68 was kind enough to say:
[cut]
I didn't check, but if c:\python25 is your python install dir, you'll very
likely fi
Hi,
I wanted to play with gazpacho ( no urgent need, but I was curious)
I went to http://gazpacho.sicem.biz/ (is thios the official home page?)
I downloaded the windows installer for Kiwi
and the Windowsinstaller for Gazpacho.
I started both, und they installed, but I even don't know where to
Albertos wrote:
Hello, I've collected huge source codes collection of any kinds : work
with text files, database, GUI etc.
You can download it here http://freactor.com/get.php?file=Python+source+code
First: Learn English
Second: In how many news groups did you post (just changing the
'file=..
Hi,
Dan's solution is probably the clearest.
Just out of curiousity:.
How would you in your program's context like 0 to be treated.
should it be treated as a positive number or should it be treated as
a case part.
my suggestion a*b > 0 for example
wouldn't work if you want 0 to be treated as
Hm,
It seems my previous reply got lost.
if a*b > 0:
print "same sign"
else
print "different sign"
johnewing wrote:
I am trying to figure out how to test if two numbers are of the same
sign (both positive or both negative). I have tried
abs(x) / x == abs(y) / y
but that f
Hi Ken,
Yes, I'm interested in using the Wiimote with Python.
However so far I did not use ('use' means 'just try') the Wiimote with
anything except Glovepie.
There's three setups I'm interested in (less Python, than a general
setup issues so far):
- Wiimote with Windows XP: Problem is, tha
Hi,
Is it thousands of lines or millions of lines?
If it's just a few thousands and you're not working on an embedded
device with little memory you could use the brute force approach
Just read the whole file in one string vaiable
split everything into an array separated by '()'
Now you can
[EMAIL PROTECTED] wrote:
Hi!
My problem is that:
The "test.py" is working in every machine that I use except in my home
machine.
Formerly it worked but now not. I don't know what happened, I searching
for some solution.
The errormessage is this (after I tried to start test.py under cmd.exe):
# be prone to dead locks
# for more complex cases it's probably better
# to use one thread for sending the commands and one thread for
# collecting the responses
#
# if you want to see the warning remove it ;-_
[ z1_stdout , z1_stdin ] = popen2.popen2('ssh -T '+host)
z1_stdin.writ
Hi,
I have some scripts written for tkinter.
Maemo devvice however (for example the Nokia n800) support only pygtk
and not tkinter.
Are there any migration guide lines or wrapper tools?
bye
N
--
http://mail.python.org/mailman/listinfo/python-list
Hishaam wrote:
How to execute commands in internal zones of solaris using python
running from the global zone ?
i tried --
1> os.popen("zlogin ")
2> os.popen("zonename")
the 2nd command executes back into the global zone and not into the
internal zone
can anyone help?
Hishaam
Very probably
19 matches
Mail list logo