473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

win32com/makepy question

Just a general question.

It seems in COM late binding is something that should be avoided if possible.

Because python seems to be really good at doing thing dynamically I'm
wondering why no one has figured out how to make the functionality in
makepy fire automagically when you need it.

For example, it would be nice if you are creating an object
repeatedly(ADODB.Recordset) that some logic would trigger whatever
makepy does to generate and cache the modules generated from the
typelib that's accessed.
It would be cool, that's all I'm saying. I'm sure the standard
response is "Why don't you write it" and maybe I will, I'm just
wondering if anyone has thought of it before and is working on it or
whatever.
--
Thomas G. Willis
http://paperbackmusic.net
Jul 18 '05 #1
1 2389

Hi,

I've been looking at the client side com stuff in __init__.py in the
client subdirectory under win32com, and some of the routines do exactly
that. Certainly DispatchWithEvents tries to generate that, and I
thought Dispatch does before returning a late binding object.

Hope this helps,

Bob
Tom Willis wrote:
Just a general question.

It seems in COM late binding is something that should be avoided if possible.

Because python seems to be really good at doing thing dynamically I'm
wondering why no one has figured out how to make the functionality in
makepy fire automagically when you need it.

For example, it would be nice if you are creating an object
repeatedly(ADODB.Recordset) that some logic would trigger whatever
makepy does to generate and cache the modules generated from the
typelib that's accessed.
It would be cool, that's all I'm saying. I'm sure the standard
response is "Why don't you write it" and maybe I will, I'm just
wondering if anyone has thought of it before and is working on it or
whatever.

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Margerum | last post by:
Hi I am trying to using a COM server I built in C++. I ran GenPy on my type library and I am able to instantiate objects from the server. What I can't figure out is how to create/use Record types...
3
by: Rebecca Taylor | last post by:
I have been working with win32com on python for 2 years now. I recently tried to modify an older script I had made which creates and excel workbook, fills it with data and then graphs the data. ...
0
by: | last post by:
Hi, A month ago, I decided to move from Delphi to Python/wxPython for a good deal of my development work, and for the past few projects (which included a full re-write of our point-of-sale system)...
1
by: Tim N. van der Leeuw | last post by:
Hi, When trying to use win32com functionality with Python2.4, the interpreter often crashes! I don't know if it's a known problem already that will be fixed in an upcoming Python2.4.1...
6
by: Chris Curvey | last post by:
I'm having one of those weeks. I have this pattern all over my code. result = conn.execute("select * from foo") while not result.EOF: doSomething() result.MoveNext()
2
by: Andrew Markebo | last post by:
Hello! I am messing around with communicating between LabVIEW and Python, got it to work by a small 'fix' (grabbing the generated file, and importing it by hand) What I might want to do, is...
1
by: Tim Penhey | last post by:
I am currently refraining from tearing out any more hair. I have started at a new job and I am trying to get some quick tests for some COM components that are used here. This morning I...
4
by: sterling | last post by:
I'm curious as to why the difference between IDLE and pythonWin when using win32com. opening an excel file, i've attempted to grab the chart information out of the file. commands like co =...
2
by: RyanN | last post by:
Greetings, I'm trying to get DispatchWithEvents() to work with HyperAccess (terminal program) without much success. I've done a bunch of searching and found some examples using IE: This works...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.