[python-win32] win32gui.EnumChildWindows() "crashes" when nochildren exists

Simon Brunning simon.brunning at gmail.com
Wed Mar 23 15:44:47 CET 2005


On Wed, 23 Mar 2005 09:01:09 +1100, Mark Hammond
<mhammond at skippinet.com.au> wrote:
> Yeah, it should.  This *may* be a safe change to make wrt existing
> programs - a program that expects to see the exception should still work if
> the code is changed to return an empty list.  However, it is possible things
> will break (eg, the code could be written to assume the list has at least
> one entry when no exception is raised.

FWIW, this change wouldn't break any of my usages of win32gui.EnumChildWindows.

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/


More information about the Python-win32 mailing list