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
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 someone has a specific objection. -- Aahz (a...@pythoncraft.com

Re: [python-win32] Python Finalisation

2013-01-10 Thread Aahz
, 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 here. -- Aahz (a...@pythoncraft.com) * http

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

2012-02-24 Thread Aahz
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 something in your code. -- Aahz (a...@pythoncraft.com

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

2012-02-10 Thread Aahz
, 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 ___ python-win32 mailing list python-win32

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

2012-02-09 Thread Aahz
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 Internet. -- Aahz (a...@pythoncraft.com) * http

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

2011-03-02 Thread Aahz
, in __import_pywin32_system_module__ import _win32sysloader ImportError: DLL load failed: The specified module could not be found What happens if you use VC++ 2008 Express? (Yes, that should not change anything, but I've seen people report all kinds of weird problems with mingw.) -- Aahz

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

2010-12-22 Thread Aahz
), 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-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

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

2010-10-15 Thread Aahz
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 ___ python-win32 mailing list python-win32

[python-win32] Avoid bare except

2010-10-15 Thread Aahz
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 use traceback.format_exc() unless you're stuck with Python less than 2.4. -- Aahz (a...@pythoncraft.com

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

2010-04-08 Thread Aahz
= win32file.CreateFileW( fname, win32file.GENERIC_READ, 0, # exclusive access None, # no security attrs win32file.OPEN_EXISTING, win32file.FILE_FLAG_NO_BUFFERING, None ) h.Close() -- Aahz

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

2010-03-13 Thread Aahz
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 (a...@pythoncraft.com) * http://www.pythoncraft.com

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

2010-02-26 Thread Aahz
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) * http://www.pythoncraft.com/ Many customs in this life persist because

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

2010-02-13 Thread Aahz
/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 it's not too much trouble for you, we'd definitely appreciate it. -- Aahz (a...@pythoncraft.com) * http

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

2010-02-12 Thread Aahz
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-circuit any doubt and just refer to comments in code as 'lies

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

2010-01-20 Thread Aahz
, 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.pythoncraft.com/ If you think it's expensive to hire a professional to do

Re: [python-win32] WMI troubles!

2010-01-15 Thread Aahz
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.pythoncraft.com/ If you think it's expensive to hire

Re: [python-win32] syntax?

2010-01-15 Thread Aahz
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 indentation. -- Aahz (a...@pythoncraft.com) * http

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

2010-01-12 Thread Aahz
... -- 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 ___ python-win32 mailing list python-win32@python.org http

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) * http

Re: [python-win32] ISAPI and threading

2009-12-12 Thread Aahz
. 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 another thread? -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ The best way to get information on Usenet is not to ask

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. -- Aahz (a...@pythoncraft.com

[python-win32] Open files, round 2

2009-11-23 Thread Aahz
://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 to ask a question, but to post the wrong information. -- Aahz (a...@pythoncraft.com) * http

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 appropriate solution: all I really care about

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

2009-11-15 Thread Aahz
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 I think PyGUI announcements are appropriate. -- Aahz (a...@pythoncraft.com

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...@pythoncraft.com

[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 programmers] Fancy tail fins

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 the list of open files. What I care about is a list of files that I want to process and checking

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 out how I am supposed to call it. I bought of copy

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, I have three things going for me: * I've been programming

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 Assuming that I only care about monitoring open

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 them are open. What would

[python-win32] Calling random Windows function?

2009-10-22 Thread Aahz
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 Groucho Marx Fan Club

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 figure out how I am supposed to call it. I bought

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

2009-10-22 Thread Aahz
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.org http://mail.python.org/mailman/listinfo/python-win32