Event handling for COM object with win32com (pywin32)

2014-06-22 Thread peter . balazovic
Dears, I have a problem with firing Events and event handling on COM object. This code works on python console but there is no event fired. >>> class fmstrEvents(object): ... def OnRecroderDone(self): ... print "Hello OnRecroderDone" >>> import win32com.client >>> fm = win32

Python ORM library for distributed mostly-read-only objects?

2014-06-22 Thread smurfix
My problem: I have a large database of interconnected objects which I need to process with a combination of short- and long-lived workers. These objects are mostly read-only (i.e. any of them can be changed/marked-as-deleted, but that happens infrequently). The workers may or may not be within o

Re: How to distribute python console program

2014-06-22 Thread Jurko Gospodnetić
Hi Nicholas. On 22.6.2014. 4:51, Nicholas Cannon wrote: I have a simple program that is ran in the console with 2 modules and i was wondering how i could like export it so i could give it to someone to use as like a utlitie in the console? Assumptions: * You have one script - script.py

Re: How to distribute python console program

2014-06-22 Thread Nicholas Cole
On Sun, Jun 22, 2014 at 3:51 AM, Nicholas Cannon wrote: > I have a simple program that is ran in the console with 2 modules and i was > wondering how i could like export it so i could give it to someone to use as > like a utlitie in the console? I'm assuming that the 'someone' you want to give

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Chris Angelico
On Sun, Jun 22, 2014 at 7:15 PM, wrote: > This code works on python console but there is no event fired. > class fmstrEvents(object): > ... def OnRecroderDone(self): > ... print "Hello OnRecroderDone" Is that supposed to say "OnRecroderDone" or "OnRecorderDone"? I can't

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread peter . balazovic
On Sunday, June 22, 2014 12:09:51 PM UTC+2, Chris Angelico wrote: > On Sun, Jun 22, 2014 at 7:15 PM, wrote: > > > This code works on python console but there is no event fired. > > > > > class fmstrEvents(object): > > > ... def OnRecroderDone(self): > > > ... print "

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Chris Angelico
On Sun, Jun 22, 2014 at 9:55 PM, wrote: > You right, this is a typo here - I am sorry for this but event handler does > not work... fmstr application is freezing and event handler does not work. I > need to restart python to unfreeze my application. > I can't help further, then. I'm not experi

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-22 Thread Roy Smith
In article <85659fdd-511b-4aea-9c4b-17a4bbb88...@googlegroups.com>, smur...@gmail.com wrote: > My problem: I have a large database of interconnected objects which I need to > process with a combination of short- and long-lived workers. These objects > are mostly read-only (i.e. any of them can

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Kevin Walzer
On 6/22/14, 5:15 AM, peter.balazo...@emspin.com wrote: Do I miss something in code or incorrectly handling the events or COM Object? There is a pywin32 mailing list that may be able to offer more help here. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://ww

Are there performance concerns with popping from front of long lists vs. the end of long lists?

2014-06-22 Thread python
Should I have any performance concerns with the index position used to pop() values off of large lists? In other words, should pop(0) and pop() be time equivalent operations with long lists? -- https://mail.python.org/mailman/listinfo/python-list

Re: Are there performance concerns with popping from front of long lists vs. the end of long lists?

2014-06-22 Thread MRAB
On 2014-06-22 19:03, pyt...@bdurham.com wrote: Should I have any performance concerns with the index position used to pop() values off of large lists? In other words, should pop(0) and pop() be time equivalent operations with long lists? When an item is popped from a list, all of the later it

Islam is not a Religion of Extremism

2014-06-22 Thread bv4bv4bv4
Islam is not a Religion of Extremism Allah says: "...Whosoever kills an innocent human being, it shall be as if he has killed all mankind, and whosoever saves the life of one, it shall be as if he had saved the life of all mankind..." Qur'an 5:32 Islam... an extreme religion? "Islamic terrorists!

Re: How to distribute python console program

2014-06-22 Thread Terry Reedy
On 6/22/2014 5:56 AM, Jurko Gospodnetić wrote: Hi Nicholas. On 22.6.2014. 4:51, Nicholas Cannon wrote: I have a simple program that is ran in the console with 2 modules and i was wondering how i could like export it so i could give it to someone to use as like a utlitie in the console?

Re: Are there performance concerns with popping from front of long lists vs. the end of long lists?

2014-06-22 Thread Terry Reedy
On 6/22/2014 2:03 PM, pyt...@bdurham.com wrote: Should I have any performance concerns with the index position used to pop() values off of large lists? Yes. While performance is generally not part of the language specification, in CPython seq.pop(i) is O(len(seq)-i) In other words, should p

Re: Are there performance concerns with popping from front of long lists vs. the end of long lists?

2014-06-22 Thread Ethan Furman
On 06/22/2014 11:03 AM, pyt...@bdurham.com wrote: Should I have any performance concerns with the index position used to pop() values off of large lists? In other words, should pop(0) and pop() be time equivalent operations with long lists? I believe lists are optimized for adding and removin

Re: Are there performance concerns with popping from front of long lists vs. the end of long lists?

2014-06-22 Thread python
MRAB, Terry, Ethan, and others ... Thank you - collections.deque is exactly what I was looking for. Malcolm -- https://mail.python.org/mailman/listinfo/python-list

old python

2014-06-22 Thread arbautjc
If anybody is interested... I think it's the same as the version unearthed recently [1], but here is a rather old version of Python on ftp: ftp://ftp.uni-duisburg.de/local/systems/unix/old_stuff/ [1] http://legacy.python.org/download/releases/early/ Jean-Claude Arbaut -- https://mail.python

Re: old python

2014-06-22 Thread Terry Reedy
On 6/22/2014 4:18 PM, arbau...@gmail.com wrote: If anybody is interested... I think it's the same as the version unearthed recently [1], but here is a rather old version of Python on ftp: ftp://ftp.uni-duisburg.de/local/systems/unix/old_stuff/ Does not accept anonymous logins (or my email),

Re: Islam is not a Religion of Extremism

2014-06-22 Thread Terry Reedy
On 6/22/2014 2:16 PM, bv4bv4...@gmail.com wrote: [more repeated off topic religious spam] Google-goups users: if you would prefer not to see more of this, please send or forward short Complaints-To: groups-ab...@google.com -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-

Re: Islam is not a Religion of Extremism

2014-06-22 Thread Warren Post
On 06/22/2014 03:53 PM, Terry Reedy wrote: On 6/22/2014 2:16 PM, bv4bv4...@gmail.com wrote: [more repeated off topic religious spam] Google-goups users: if you would prefer not to see more of this, please send or forward short Complaints-To: groups-ab...@google.com And if you're not a Google G

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-22 Thread smurfix
On Sunday, June 22, 2014 3:49:53 PM UTC+2, Roy Smith wrote: > Can you give us some more quantitative idea of your requirements? How > many objects? How much total data is being stored? How many queries > per second, and what is the acceptable latency for a query? Not yet, A whole lot, More t