Re: [python-win32] survey question: should data from database columns of type "adGUID" be returned as instances of class "uuid"?

2013-04-15 Thread Aahz
to download old builds -- the only question is whether they should receive the benefits of new builds. I do recommend clearly segregating and labeling builds to avoid confusion. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "In times like these, it hel

Re: [python-win32] survey question: should data from database columns of type "adGUID" be returned as instances of class "uuid"?

2013-04-14 Thread Aahz
bad idea? Keeping in mind that I have zero experience with adodbapi and that most of my development experience has been more Linux-based (with a fair amount of general DB work), this certainly falls into the kind of behavior that I think would make using a framework easier, so +1 unless so

Re: [python-win32] Python Finalisation

2013-01-10 Thread Aahz
uestion here if preferred, but there's a lot of > formatting and I'm posting this from a phone. Hope the stackoverflow link > is acceptable. I'm certainly not looking at Stackoverflow, and it disrupts the archives of this list. Please repeat your full question

Re: [python-win32] Problem with python 3.3.0

2013-01-10 Thread Aahz
d code > works perfect now.Thanks http://docs.python.org/3/whatsnew/3.0.html#common-stumbling-blocks -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ Weinberg's Second Law: If builders built buildings the way programmers wrote programs, then the first wood

Re: [python-win32] Trying to run py2exe built/generated executables within a VMWare windows XP 32 bit instance

2012-02-24 Thread Aahz
x27;t touched a real Windows box in years, I only run Windows on a Mac under Fusion or VirtualBox. I've had zero problems of the kind you're describing. I suggest that you provide exact error messages. You might also try a stripped-down application to see whether it's

Re: [python-win32] Anti-reverse Python-based binaries?

2012-02-10 Thread Aahz
otection in -- you need our servers, and our code isn't particularly clever. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "Do not taunt happy fun for loops. Do not change lists you are looping over." --Remco Gerlich

Re: [python-win32] Anti-reverse Python-based binaries?

2012-02-09 Thread Aahz
is it really true that > it is impossible to protect the binaries from reversing? Not serious enough to warrant your time and money. Absolutely true. The only way to protect your code is to put it on a server. But then people can only use your software when connected to the Interne

Re: [python-win32] Problem with msvcr90.dll

2011-03-02 Thread Aahz
hat "should" not change anything, but I've seen people report all kinds of weird problems with mingw.) -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "Programming language design is not a rational science. M

Re: [python-win32] Using ctypes - solved

2010-12-30 Thread Aahz
plorer defaults are set up for somebody who doesn't > have a clue. That's actually wrong even for people who don't have a clue because it guarantees an annoying failure later... -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.co

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread Aahz
utilities (i.e. you're on Linux or CygWin), you can do sort -u. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "Think of it as evolution in action." --Tony Rand ___ python-win32 mailing list python-

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread Aahz
I'm subscribed already You may get better answers posting to a general Python group (e.g. comp.lang.python). -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "Think of it as evolution in action." --Tony Rand

[python-win32] Avoid bare except

2010-10-15 Thread Aahz
his list: Do *NOT* use bare except: clauses. At the very least, that means you won't properly handle KeyboardInterrupt. Always try to catch the specific exceptions you're expecting. For more info, see http://docs.python.org/howto/doanddont.html It also would have been easier to just

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-15 Thread Aahz
the reference in that > sentence... It's a colossal mistake. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." --Red Adair

Re: [python-win32] Finding DLL's which are in use (loaded)

2010-04-08 Thread Aahz
f anything # has the file open, will fail h = win32file.CreateFileW( fname, win32file.GENERIC_READ, 0, # exclusive access None, # no security attrs win32file.OPEN_EXISTING, win32file.FILE_FLAG_NO_BUFFERING,

Re: [python-win32] Python Windows Socket problem after Py2exe and install

2010-03-13 Thread Aahz
rs in response to a similar question: Are any of your imports buried inside "if" or "def" statements? py2exe uses a module-finding technique that doesn't work with those, and you'll either need to change your code or list the modules in setup.py -- Aahz

Re: [python-win32] knowing "file accessed" and "file opened"

2010-02-26 Thread Aahz
ify is only for linux > dazuko can catch on linux > what can work on windows to see the file open and file access event ? We're using ReadDirectoryChangesW to catch changes; I have no idea whether that would give the info you want. -- Aahz (a...@pythoncraft.com) <*>

Re: [python-win32] USB Insertion Extrinsic Event exists?

2010-02-13 Thread Aahz
ow. If the WMI stuff doesn't work for you and you need > this kind of thing (and don't have/want a top-level window) then we > can try to run something up on the basis of the article. That's definitely true for my company (running as a service), so if

Re: [python-win32] USB Insertion Extrinsic Event exists?

2010-02-12 Thread Aahz
hat I don't. > > ... so I've now added it: > > http://timgolden.me.uk/python/win32_how_do_i/detect-device-insertion.html Thanks! -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "At Resolver we've found it useful to short

Re: [python-win32] How to use data on disk in this generator

2010-01-20 Thread Aahz
t; calling/storing the list in memory, that is, using the data directly > from the file on disk: This doesn't seem like a win32-specific issue -- you may get better responses by posting to comp.lang.python. -- Aahz (a...@pythoncraft.com) <*> http://www.pytho

Re: [python-win32] syntax?

2010-01-15 Thread Aahz
hing obvious about these two functions that would cause an error? I > do not always trust errors with line numbers to give me the right line > number. You probably have an indentation error, but I can't tell because the code from your message had completely messed up inde

Re: [python-win32] WMI troubles!

2010-01-15 Thread Aahz
o select a screen area. Actually, I just looked in my Windows virtual machine and you can do alt-space, edit, select all, enter You can also use try/except and the traceback module to capture an exception and write it to a file. -- Aahz (a...@pythoncraft.com) <*> http://www

Re: [python-win32] passing c structure into python function

2010-01-12 Thread Aahz
" methods? Just for examples? BTW, I think that in example code it's a Good Idea to follow PEP8... -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "If you think it's expensive to hire a professional to do the job, wait until you hire

Re: [python-win32] Apparent bug in COM browser on Vista

2009-12-16 Thread Aahz
On Wed, Dec 16, 2009, Ross Boylan wrote: > > The log also says "build 213 will not be recommended for production work > and should be treated as beta quality. " Is 214 considered reasonably > solid? I'm using 214 for production work. -- Aahz (a...@pythoncraft.com)

Re: [python-win32] ISAPI and threading

2009-12-12 Thread Aahz
d fall > under this category. This suggests that either the PyWin32 ISAPI C > code is launching the threads, or the ISAPI framework itself. Do you have evidence that your Python code is running in multiple threads? I.e. are you sure this isn't just ISAPI running some cleanup work in anothe

Re: [python-win32] Open files, round 2

2009-11-25 Thread Aahz
On Tue, Nov 24, 2009, niki wrote: > Aahz wrote: > >>> h = win32file.CreateFile(fname, win32file.GENERIC_READ, 0, None, >>> win32file.OPEN_EXISTING, win32file.FILE_FLAG_NO_BUFFERING, None) > > I used OPEN_FOR_DELETE to do similar test. Thanks! Made note.

Re: [python-win32] Open files, round 2

2009-11-23 Thread Aahz
On Mon, Nov 23, 2009, Aahz wrote: > > I'm having some problems with Tim Golden's file_handles.py [*] (details > below), and it occurs to me that perhaps I should start over and express > my requirement more broadly and see if someone has a more "Windows > appropriat

[python-win32] Open files, round 2

2009-11-23 Thread Aahz
our .EXE as malware. I have no idea what calls the .SYS uses to get open files. [*] http://winsys.googlecode.com/svn/trunk/random/file_handles.py -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ The best way to get information on Usenet is not t

Re: [python-win32] [Pyobjc-dev] [pygtk] ANN: PyGUI 2.1

2009-11-15 Thread Aahz
posted the announcement to the pyobjc, pygtk and pywin32 > lists because PyGUI uses all of those libraries, and because > I don't know of any single mailing list where people interested > in Python GUIs in general can be found. I'm on both pyobjc and pywin32 lists, and

Re: [python-win32] multiprocessing pickle problem in win32

2009-11-03 Thread Aahz
On Tue, Nov 03, 2009, Rob Brown-Bayliss wrote: > > When I run the following code in linux all goes well. But when I try > in win32 I get a pickle error saying it cant pickle None Type when I > start the process. You need to provide a full traceback. -- Aahz (a...@pyt

[python-win32] win32 errata: AddSourceToRegistry

2009-11-02 Thread Aahz
The signature for win32evtlogutil.AddSourceToRegistry() on page 359 of win32 has "EventLogType", which should be "eventLogType". Do I win anything? ;-) -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ [on old computer technologies and

Re: [python-win32] Calling random Windows function?

2009-10-25 Thread Aahz
On Sun, Oct 25, 2009, Roger Upole wrote: > Aahz wrote: >> On Fri, Oct 23, 2009, Tim Roberts wrote: >>> Aahz wrote: >>>> >>>> Perhaps it would be better to think more strategically. I don't >>>> actually >>>> care about th

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Aahz
On Fri, Oct 23, 2009, Tim Roberts wrote: > Aahz wrote: >> >> Perhaps it would be better to think more strategically. I don't actually >> care about the list of open files. What I care about is a list of files >> that I want to process and checking whether any of

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Aahz
On Fri, Oct 23, 2009, Tim Golden wrote: > Aahz wrote: >> >> Wow! Thanks! Now that I know more what to look for, I did some >> searching and found this post that had no response: >> >> http://mail.python.org/pipermail/python-win32/2009-June/009268.html >

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Aahz
On Fri, Oct 23, 2009, Tim Roberts wrote: > Aahz wrote: >> On Fri, Oct 23, 2009, Christopher Nilsson wrote: >>> >>> But, wow... Just starting with windows programming, and jumping right >>> into the semi-documented territory. Brave. :) >> >> Well

Re: [python-win32] Calling random Windows function?

2009-10-23 Thread Aahz
On Fri, Oct 23, 2009, Tim Golden wrote: > Aahz wrote: >> >> I'm just getting into Windows programming for the first time, and I need >> to list all open files. Windows has a convenient function for that >> (NtQuerySystemInformation), but I can't figure ou

Re: [python-win32] Calling random Windows function?

2009-10-22 Thread Aahz
l Python community Oh, wait, I have [stops Spanish Inquisition re-run here] -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ Member of the Groucho Marx Fan Club ___ python-win32 mailing list python-win32@python.o

Re: [python-win32] Calling random Windows function? [SEC=PERSONAL]

2009-10-22 Thread Aahz
On Fri, Oct 23, 2009, Andrew MacIntyre wrote: > Aahz wrote: >> >> I'm just getting into Windows programming for the first time, >> and I need to list all open files. Windows has a convenient >> function for that (NtQuerySystemInformation), but I can't figur

[python-win32] Calling random Windows function?

2009-10-22 Thread Aahz
anything about accessing random API calls; ctypes.windll.kernel32.NtQuerySystemInformation gives an AttributeError. Where should I be looking to figure this out? -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ Member of the