ne alone!" <-
Andrew MacIntyre Operations, Services and Technologies Branch
tel: +61 2 6219 5356 Communications Infrastructure Division
Australian Communications & Media Authority
email: andrew.macint...@acma.gov.au<mailto:andre
ils sufficient for my needs on Python 2.x (not
tried on Python 3.x yet).
Regards,
Andrew.
-----> "These thoughts are mine alone!" <-
Andrew MacIntyre Operations, Services and Technologies Branch
tel: +61 2 6219 5356 Communications I
; volume. That's not really very much code in C++ terms, BUT none of those
> interfaces have late-binding support, which means Python cannot use them.
I think that comtypes (https://pypi.python.org/pypi/comtypes) can deal with
early binding interfaces?
-> &q
Stab in the dark: after calling the Clear() method on object "tom" in method
CreateTom, use "del tom" or "tom = None" to try and lose any remnant COM
references before pythoncom.CoUninitialize() is called.
-> "These thoughts are mi
ne alone!" <-
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communications Infrastructure Division
fax: +61 2 6253 3277 Australian Communications & Media Authority
email: andrew.macint...@acma.gov.au<mailto:andrew.macint...@acma.gov.au>
[sorry for top post]
I suspect that your problem relates to what objects are being retained by
self._getCurrentEnt.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communication
approach for example
being perhaps more usual when dealing with object attributes.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communications Infrastructure Division
fax:
nsive exception handling will also be required.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communications Infrastructure Division
fax: +61 2 6253 3277 Australian Communications &a
which might be related to what you're seeing.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communications Infrastructure Division
fax: +61 2 6253 3277 Australian Co
I think you haven't yet caught up fully with how namespaces and scopes work in
Python - the "Modules" section of the Python Tutorial might be a good place to
start.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre Opera
t; "These thoughts are mine alone!" <-
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communications Infrastructure Division
fax: +61 2 6253 3277 Australian Communications & Media Authority
email: andrew.macint...@acma.gov.au http://w
/crew/theller/comtypes/) builds on
ctypes to access COM.
-> "These thoughts are mine alone!" <-----
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communications Infrastructure Division
fax: +61 2 6253 3277 Australia
e.
If you carefully look at the "formula" of a pasted cell, you might see how the
source workbook & worksheet are identified - I know that this sort of thing is
visible when using the "function wizard" with such Excel functions as VLOOKUP.
----->
-> "These thoughts are mine alone!" <-
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communications Infrastructure Division
fax: +61 2 6253 3277 Australian Communications & Media Authority
email: andrew.macint...@acma.gov.au
The odbc module in Pythonwin uses qmark parameter style I believe, so
use ? instead of %s for parameter substitution.
-> "These thoughts are mine alone!" <-----
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communication
If you run out of other options, I've successfully used comtypes on top
of the ctypes module included in Python 2.5 & 2.6 to read & write data
in Access 2003 databases.
Regards,
Andrew MacIntyre.
-> "These thoughts are mine alone!" &l
lar seems
pertinent.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communications Infrastructure Division
fax: +61 2 6253 3277 Australian Communications & Media Authority
email: andre
Is it possible to draw directly to the desktop? I vaguely recall reading
somewhere that that is how some splash screens are done to avoid the overhead
of a window...
-> "These thoughts are mine alone!" <-
Andrew MacIntyre Operations Bra
lt tool to learn, but once you get
> it, it's incredibly handy. Much of PyWin32 is automatically generated
> by swig (with careful tweaking).
>
> http://www.swig.org/Doc1.3/Python.html
Pyrex and Cython might also be useful alternatives for the OP's purpose.
.
Sadly, most of the ArcObjects classes don't support the Dispatch interfaces
required by PythonWin.
-> "These thoughts are mine alone!" <-----
Andrew MacIntyre Operations Branch
tel: +61 2 6219 5356 Communications Infrast
mething like Pyrex or Cython (on top of the MinGW32
toolchain) to create the DLLs you're talking about - even if just to
write an extension that embeds Python.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre National Licens
, if you haven't got the
platform SDK installed.
As I understand, while PyWin32 wraps a lot of API functions it doesn't
wrap everything; if it's not wrapped, ctypes is your only option.
-----> "These thoughts are mine alone!" <-
Andrew MacIn
pointer of the correct type, e.g.
NullPtr = POINTER(Iwhatever)()
If a VARIANT is required, one of VARIANT.empty, VARIANT.null or
VARIANT.missing.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre National Licensing and Allocation
> Does anyone have an idea why? I been trying to figure this out for
> 3 hours now.
You appear to be re-using the same dictionary for each record; allocate
a new one for each record before starting to populate it.
-> "These thoughts are mine alone!"
r")
Note that UNC names do require a double backslash to start...
Its often easier to read as
open(r"\\remote_machine\share\folder\file", "r")
If you really must open it via urllib, then try
urllib.open("file://remote_machine/share/folder/file&qu
hese thoughts are mine alone!" <-
Andrew MacIntyre National Licensing and Allocations Branch
tel: +61 2 6219 5356 Inputs to Industry Division
fax: +61 2 6253 3277 Australian Communications & Media Authority
email: [EMAIL PROTECTED]
> -Original Me
5.x -> python25.dll).
If the ArcGIS media kit doesn't contain PythonWin, you can retrieve a
copy of the PythonWin installer to match the Python version via
PythonWin's home page: http://starship.python.net/crew/mhammond/win32/
-----> "These thoughts are mi
-> "These thoughts are mine alone!" <-
Andrew MacIntyre National Licensing and Allocations Branch
tel: +61 2 6219 5356 Inputs to Industry Division
fax: +61 2 6253 3277 Australian Communications & Media Authority
email: [EMAIL PROTECTE
7;ed even with most memory unused.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre National Licensing and Allocations Branch
tel: +61 2 6219 5356 Inputs to Industry Division
fax: +61 2 6253 3277 Australian Communications &
ll reply in detail separately without the cc to the Win32 list.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre National Licensing and Allocations Branch
tel: +61 2 6219 5356 Inputs to Industry Division
fax: +61 2 62
ESRI COM interfaces
quite successfully in my experience.
I've not tried using the ESRI 9.x stuff yet - still using 8.3 and an
ancient version of ctypes. With the ESRI 8.x TLBs, there were issues
where many of the names were declared out of order as far as Python was
concerned and the generated mod
on.org Win32
installers to include the headers and libs - though for 2.4, VC7.1
would be required to match the Python build.
-> "These thoughts are mine alone!" <-
Andrew MacIntyre Broadcasting Planning Branch
tel: +61 2 6256 2812
've been working on a patch to allow the default
thread stack size to be changed programmatically - its mostly complete
except for doc updates, and I hope to get it into Python 2.5.
--
Andrew MacIntyre
l the first call.
If the former is true, subsequently setting the environment variable
is a complete waste of time because its far too late.
------
Andrew MacIntyre \ email: [EMAIL PROTECTED]
Planning Branch
e with MSVC 6 (thanks to Raymond
Hettinger), so if you have access to that compiler you can check this
out.
------
Andrew MacIntyre \ email: [EMAIL PROTECTED]
Planning Branch\ tel: +61 2 6256 281
35 matches
Mail list logo