Re: Goto XY

2005-11-09 Thread ale . of . ginger
OK - I added the import WConio line. But when I run import WConio print "going to x10,y10..." WConio.gotoxy(10,10) print "Done" the above, I get the following error: WConio.gotoxy(10,10) error: GetConOut Failed I installed the WConio to the ../site-packages/ folder in Python24, and when it did

Re: PYTHON LOOSING FOR JAVA???????

2005-11-09 Thread Stefan Arentz
"Fcamattti" <[EMAIL PROTECTED]> writes: > Hello for everybody OH MY GOD!?!?!?!?!?!?! I BETTER FIND A NEW JOB!?!?!?!? S. -- http://mail.python.org/mailman/listinfo/python-list

triangulation

2005-11-09 Thread Shi Mu
is there any sample code to triangulation? many thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Hi, from my login i want to login as a other user ,

2005-11-09 Thread Gerhard Häring
sumi wrote: > Hi, i am very new to python , it is just 2 days i started reading abt > it. I did not understand the above statement. what i want to do is , i > want to login as a super user eg : > $su xyz , and then i need to enter the passwd, i want to do these steps > using python , how can i do

Re: cx_Oracle callproc output parameters

2005-11-09 Thread Gerhard Häring
infidel wrote: > I have a stored procedure that has a single output parameter. Why do I > have to pass it a string big enough to hold the value it is to receive? > Why can't I pass an empty string or None? > [...] > Am I missing something obvious here? You have to use variable objects to the call

Re: Newb ??

2005-11-09 Thread jmdeschamps
## Here you always get 100... This is false , sorry for the wrong comment on this part, it should rather be: ## randrange is from start to end-1 the_number = random.randrange(1,101) JM (But the rest of my comment seems OK) -- http://mail.python.org/mailman/listinfo/python-list

Re: Hi, from my login i want to login as a other user ,

2005-11-09 Thread sumi
Hi, i am very new to python , it is just 2 days i started reading abt it. I did not understand the above statement. what i want to do is , i want to login as a super user eg : $su xyz , and then i need to enter the passwd, i want to do these steps using python , how can i do it?? -- http

Re: debugger

2005-11-09 Thread mclaugb
is there a way to only look at specific variable names in Winpdb? It takes forever to debug something when i constantly have to search for variables. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Benji York wrote: >> [EMAIL PROTECTED] wrote: >> > Benji York wrote: >> >>You mi

Re: Hi, from my login i want to login as a other user ,

2005-11-09 Thread bruno at modulix
sumi wrote: > Hi, from my login i want to login as a other user , how can i do it > using python. http://www.catb.org/~esr/faqs/smart-questions.html -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http:/

How to use generators?

2005-11-09 Thread Ian Vincent
I have never used generators before but I might have now found a use for them. I have written a recursive function to solve a 640x640 maze but it crashes, due to exceeding the stack. The only way around this I can think of is to use Generator but I have no idea how to. The function is as b

Re: page faults when spawning subprocesses

2005-11-09 Thread Kasper Dupont
Dave Kirby wrote: > > 5) WTF can I do about it? Maybe using vfork rather than fork would help. But I'm not sure that will work as intended when there are multiple threads, in fact I'm not sure fork will work either. You could have fork racing against another thread being in a critical region thus

Hi, from my login i want to login as a other user ,

2005-11-09 Thread sumi
Hi, from my login i want to login as a other user , how can i do it using python. -- http://mail.python.org/mailman/listinfo/python-list

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
"linuxpld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello > > I`m writing a program (server in future) in python. > I would like to write it in such a way that I will be able to write gui > in any language and connect to my python program and use functionality > included with

Re: How to convert a number to hex number?

2005-11-09 Thread Ron Adam
Bengt Richter wrote: > On Wed, 09 Nov 2005 00:42:45 GMT, Ron Adam <[EMAIL PROTECTED]> wrote: > > >> >>Bengt Richter wrote: >> >>>On 08 Nov 2005 08:07:34 -0800, Paul Rubin wrote: >>> >>> >>> "dcrespo" <[EMAIL PROTECTED]> writes: hex(255)[2:] >

Re: Application monitor

2005-11-09 Thread Magnus Lycka
dcrespo wrote: > Hi to all, > > I'd like to have an app monitor that gets rid of another app, in the > way that if it closes unspectedly, the app monitor just wake it up one > more time, and viceversa. Twisted contains such a thing. I think it's called twisted.runner, and no, it's not just for ke

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-09 Thread Fabio Zadrozny
Hi Dave, Currently there is no python debugger (that I know of) that does it, altough tools are beggining to get to it (another example outside of the python world is that eclipse already does it for java). If you use the pdb (that is the command-line debugger that comes along with python), yo

Re: not able to HTTPS page from python

2005-11-09 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > AM NOT GETTING ANY ERRORS EITHER BUT ITS NOT READING THE LINKS, THAT > ARE PRESENT IN THE GIVEN HTTPS PAGE HAVE YOU TRIED ADDING A PRINT STATEMENT TO THE FEED LOOP SO YOU CAN SEE WHAT YOU'RE GETTING BACK FROM THE SERVER ? -- http://mail.python.org/mailman/listin

Re: Installing Tkinter on knoppix

2005-11-09 Thread Michele Simionato
sudo apt-get install python2.4-tk -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-09 Thread Jeremy Sanders
vinjvinj wrote: > 2. restrict the amount of memory a module uses as well. For instance > how can I restrict a user from doing a = range(100) or similar > tasks so that my whole compute farm does not come down. The safest way to do this in unix is to run the model in a separate process, a

Re: Is it a bug?

2005-11-09 Thread Diez B. Roggisch
Darren Cui Liang wrote: > Hi, there! > > Now I am working around with the "logging" module. Here is the code: > > > >>> import logging > >>> log1=logging.getLogger("a") > >>> log1.critical("msg") > No handlers could be found for logger "a" > >>> logging.critical("msg") > CRITICAL:root:msg >

RE: Looking Python script to compare two files

2005-11-09 Thread Tim Golden
[yys2000] > I want to compare two PDF or WORD files. Could you be more precise, please? + Do you only want to compare PDF-PDF or Word-Word? Or do you want to be able to do PDF-Word? + In either case, are you only bothered about the text, or is the formatting significant? + If it's only te

not able to HTTPS page from python

2005-11-09 Thread muttu2244
Hi all, Am trying to read a email ids which will be in the form of links ( on which if we click, they will redirect to outlook with their respective email ids). And these links are in the HTTPS page, a secured http page. The point is that am able to read some links with HTTP page, but am not abl

Re: Installing Tkinter on knoppix

2005-11-09 Thread Diez B. Roggisch
Jon Monteleone wrote: > Greetings, > Does anybody have a website where I can download a copy of Tkinter to install > onto > knoppix? > Is it a pretty straightforward install? Knoppix is debian-based - you can use apt-get. But installing on a CD is impossible - do you want to alter the packages t

Re: cx_Oracle callproc output parameters

2005-11-09 Thread Diez B. Roggisch
infidel wrote: > I have a stored procedure that has a single output parameter. Why do I > have to pass it a string big enough to hold the value it is to receive? > Why can't I pass an empty string or None? > > import cx_Oracle as oracle connection = oracle.connect('usr/[EMAIL PROTECTED]

Is it a bug?

2005-11-09 Thread Darren Cui Liang
Hi, there! Now I am working around with the "logging" module. Here is the code: >>> import logging >>> log1=logging.getLogger("a") >>> log1.critical("msg") No handlers could be found for logger "a" >>> logging.critical("msg") CRITICAL:root:msg Since every "logger" is under the "root logger"

Looking Python script to compare two files

2005-11-09 Thread yys2000
hi: I want to compare two PDF or WORD files. Any Help? thx -- http://mail.python.org/mailman/listinfo/python-list

page faults when spawning subprocesses

2005-11-09 Thread Dave Kirby
I am working on a network management program written in python that has multiple threads (typically 20+) spawning subprocesses which are used to communicate with other systems on the network. This runs fine for a while, but eventually slows down to a crawl. Running sar shows that when it is runni

Re: Cursor Position.

2005-11-09 Thread Diez B. Roggisch
Samantha wrote: > I will be using Tkinter. All I need is a way to get the X,Y position from a > mouse click. I am trying to have an image loaded to click on, but that seems > to be a problem. So if I can just get the position from the screen of a > graphics program, showing an image, it will wor

Installing Tkinter on knoppix

2005-11-09 Thread Jon Monteleone
Greetings, Does anybody have a website where I can download a copy of Tkinter to install onto knoppix? Is it a pretty straightforward install? Cheers -Jon -- http://mail.python.org/mailman/listinfo/python-list

Re: Cursor Position.

2005-11-09 Thread Juho Schultz
Samantha wrote: > I will be using Tkinter. All I need is a way to get the X,Y position from a > mouse click. I am trying to have an image loaded to click on, but that seems > to be a problem. So if I can just get the position from the screen of a > graphics program, showing an image, it will wor

tkinter and visual ocx

2005-11-09 Thread Rony
I've managed to register succesfuly an oxc with makepy and my python programm reconises the ocx. But now i have a problem to place the ocx on a tkinter frame. Perhaps somebody could show me a code snippet how to do it ? tia Rony -- http://mail.python.org/mailman/listinfo/python-list

$$$$$make tons of cash EASY$$$$$

2005-11-09 Thread alanmikaluk
What is $5 and 15 minutes when it can make you earn $100,000 ? Not much, if you ask me... You've probably seen a lot of those kind of messages over forums and newsgroups, and the explanation for this can be given in two words: IT WORKS! But how on earth, will you ask me, does it actually works?

Re: How do I create a dir using Python?

2005-11-09 Thread Klaus Alexander Seistrup
Sumi wrote: > How do i create a dir using python. #v+ os.makedirs = makedirs(name, mode=511) makedirs(path [, mode=0777]) Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except that any intermediate path segment (not just the rightmo

Re: A Tcl/Tk programmer learns Python--any advice?

2005-11-09 Thread Svenn Are Bjerkem
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Ah, another one leaves the fold... : \ I think I saw somebody say about OO in Python: "It's there, but you don't have to use it." Every time somebody wants OO in the core of tcl, he is asked: "Why do you want it?" If OO was as easy i

Re: which feature of python do you like most?

2005-11-09 Thread Szabolcs Nagy
> which feature of python do you like most? i cannot chose one but here is my list: iterpreter (i can try out things at once) dir(obj) (using dir() i can learn a new library quickly) identation (code is readable, no need for {} and ;) dynamictyping (no type declaration -> less code to write) light

<    1   2   3