pythoncom and IDispatch

2006-05-15 Thread fraca7
Hello. I got a little problem while using pythoncom to automate IE; for some reason, changing the 'selectedIndex' on an instance of IHTMLSelectElement doesn't fire the 'onchange' event (I guess this is a bug in mshtml). So, I tried to get the 'onchange' event handler and call it myself. Accord

Re: Module written in C does not repond to Ctrl-C interruption.

2006-03-03 Thread fraca7
Bo Peng a écrit : > Dear list, > > I have not done a thorough test, but it occurs to me that > > 1. python code can be interrupted by Ctrl-C. > 2. A C module, if I add a main() function and run independently, can be > interrupted by Ctrl-C. > 3. If I load the C module in python and run, the prog

Re: Mutable numbers

2006-02-21 Thread fraca7
fraca7 a écrit : > Steve Holden a écrit : > >> [Thinks: or maybe fraca7 just meant that integers will be garbage >> collected when there are no more references to them]. > > Actually I meant that the memory is reused, but the same integer won't > always have

Re: Mutable numbers

2006-02-21 Thread fraca7
Steve Holden a écrit : > [Thinks: or maybe fraca7 just meant that integers will be garbage > collected when there are no more references to them]. Actually I meant that the memory is reused, but the same integer won't always have the same address. I guess that in your example, t

Re: Mutable numbers

2006-02-21 Thread fraca7
Suresh Jeevanandam a écrit : > # I am new to python. > > In python all numbers are immutable. This means there is one object ( a > region in the memory ) created every time we do an numeric operation. I > hope there should have been some good reasons why it was designed this way. The memory all

Re: Mouse manipulation

2006-01-30 Thread fraca7
arkestra a écrit : > I am writing a script that interacts with the computer screen. > > Is there a module (either built in or add on) that would allow the > script to manipulate the mouse pointer ? -- eg right click, move two > pixels to the right, left click etc? Under Windows, see the SendInpu

Re: windows service problem

2005-10-03 Thread fraca7
JackPhil a écrit : > the problem is i can run the service in debug mode, and it seems works > fine(i can connect the server with browser), but when i start the > service in the services control panel, i can't connect the server, the > server seems not start, and i can't stop the service. Make sur

Re: A rather unpythonic way of doing things

2005-09-29 Thread fraca7
Richie Hindle a écrit : > [Peter] > >>http://www.pick.ucam.org/~ptc24/yvfc.html > > > [Jeff] > >>Yuma Valley Agricultural Center? >>Yaak Valley Forest Council? > > > I went through the same process. My guess is "Yes, Very F'ing Clever." > Peter? > print ''.join(map(lambda x: chrord(x)

Re: Migrate PYD Files

2005-09-08 Thread fraca7
David Duerrenmatt a écrit : > Is there a way to use old pyd files (Python 1.5.2) with a newer version > of Python without recompiling them? No. In general, incrementing the middle version number means that the Python C API has changed in an incompatible manner. There are some exceptions (2.2 mo

Re: Creating custom event in WxPython

2005-09-01 Thread fraca7
[EMAIL PROTECTED] a écrit : > Now when my socket thread detects an incoming message, I need my main > thread to interpret the message and react to it by updating the GUI. > IMO the best way to achieve this is by having my socket thread send a > custom event to my application's event loop for the m

Re: Is my thread safe from premature garbage collection?

2005-09-01 Thread fraca7
[EMAIL PROTECTED] a écrit : > Anyway, if anyone could make a definite statement on whether threads > are safe from unwanted garbage collection, that'd be really great. > Thanks in advance for any helpful replies! As far as I know, the threading module keeps a reference around for each thread, un

Re: Read from stdouton Popen on WinXP?

2005-08-17 Thread fraca7
mhenry1384 a écrit : > I am trying to run a program and filter the output on Windows XP. > Since I want to filter the output, I'd like to read it a line at a time > and only print the lines I care about. > [snip] I had the exact same problem yesterday. This is an obvious use case for the "bufsiz

Re: gdb python C API

2005-07-21 Thread fraca7
[EMAIL PROTECTED] a écrit : > Actually, take a look in the distribution at Misc/gdbinit. In particular, > check out the pystack command. Wow, nice! This will be put to good use, thanks :) -- http://mail.python.org/mailman/listinfo/python-list

Re: gdb python C API

2005-07-21 Thread fraca7
derrick a écrit : > are there any tools / methods that others have used to get what line of > the python script is being executed while running in gdb? or if it would > actually show me the source python script (instead of the the python c > source) that would help. I don't think so, but when hav

Re: multi threading and win9x

2005-06-21 Thread fraca7
Tim Peters a écrit : > All versions of Windows >= Win95 use threads heavily, have very solid > thread support, and the Win32 API was thread-aware from the start > Thread _scheduling_ is pretty bizarre <= WinME, but process scheduling > is too. Don't try to use hundreds of threads <= WinME and yo

Re: Multithreaded Python FSM (Harel State Machines)

2005-06-16 Thread fraca7
Leonard J. Reder a écrit : > [snip] http://smc.sourceforge.net/ It's probably not what you're looking for, but it's the closest I can think of. -- http://mail.python.org/mailman/listinfo/python-list

Re: Case Sensitive, Multiline Comments

2005-05-30 Thread Fraca7
On Mon, 30 May 2005 20:56:22 +, Roel Schroeven wrote: > You haven't looked very well though: there are actually quite a lot of > extra spaces. Still, it's nicely done indeed. C-u M-q ? -- http://mail.python.org/mailman/listinfo/python-list

Re: write to the same file from multiple processes at the same time?

2005-05-27 Thread fraca7
gabor a écrit : > [snip] Try this: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203 -- http://mail.python.org/mailman/listinfo/python-list

Re: Linuz Python Module using PythonC/ API

2005-05-25 Thread fraca7
David a écrit : > [snip] > CC=g++ So actually your 'initutm' is '_Z7initutmv' for the linker. Try building with gcc instead, or declaring extern "C" PyMODINIT_FUNC initutm(void); or something like that. -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Python 2.3.2 for PalmOS available

2005-04-21 Thread Fraca7
On Tue, 19 Apr 2005 08:03:15 -0700, Lucio Torre wrote: > Do you have any experience on PODS? The whole thing is based on > Codewarrior and Codewarrior for palm is dead. Nope. Actually, I'm kind of reluctant to use IDEs and it seems PODS is targeted towards Eclipse users; I'd rather use prc-tools

Re: ANN: Python 2.3.2 for PalmOS available

2005-04-18 Thread Fraca7
On Fri, 15 Apr 2005 16:40:05 -0700, [EMAIL PROTECTED] wrote: > Hello, > While talking with Facundo while in a PyAr meeting (python-argentina, > http://www.python.org/ar ) he told me that there is some interest in > this platform. You bet there is. i almost bought a Pocket PC instead of my Clié T

Re: Windows, Python and low level networking

2005-03-23 Thread fraca7
[EMAIL PROTECTED] wrote: Is it possible to have low level netwoking with python under Windows? Like raw sockets? Is it possible to send a single packet using python under windows? Yes. But be aware of restrictions on raw sockets in XP SP2: http://blogs.msdn.com/michael_howard/archive/2004/08/12/213

Re: Obfuscated Python: fun with shadowing builtins

2005-03-17 Thread fraca7
Michael Hoffman wrote: Enjoy ;) That's not the exact word that first came to my mind :) -- http://mail.python.org/mailman/listinfo/python-list

Re: compiled open source Windows lisp (was Re: Python becoming less Lisp-like)

2005-03-15 Thread Fraca7
On Tue, 15 Mar 2005 12:25:02 -0800, Brandon J. Van Every wrote: > Last I looked, 2 years ago?, there were no compiled, open source lisps that > ran on Windows. Has this changed? I don't think so. I recently (about 2 months ago) started to want to learn Lisp (didn't go far for now) and wanted to

Re: c.l.p.announce question

2005-03-15 Thread Fraca7
On Tue, 15 Mar 2005 14:54:18 -0500, Bill Mill wrote: > On Tue, 15 Mar 2005 22:24:52 +0100, Fraca7 <[EMAIL PROTECTED]> wrote: >> Hello. >> It's not quite clear from the chart; I'd like to know if it's kosher to >> announce the creation of a Python-ori

c.l.p.announce question

2005-03-15 Thread Fraca7
Hello. It's not quite clear from the chart; I'd like to know if it's kosher to announce the creation of a Python-oriented blog on comp.lang.python.announce ? TIA -- There's no trick to being a humorist when you have the whole government working for you. -- Will Rodgers -- http

Re: Non-blocking input on windows, like select in Unix

2005-03-02 Thread fraca7
Jonathan Fine a écrit : Paul Rubin wrote: As I recall, some posts to this list say that Windows provides non-blocking i/o for sockets but not for files. No, Windows does provide non-blocking I/O for regular files, but it's a completely different mechanism than the one used by winsock. You'll have