py2exe: warning: use func(*args, **kwargs) instead of apply(func, args, kwargs)

John J. Lee jjl at pobox.com
Sun Nov 9 11:48:48 EST 2003


"Achim Domma" <domma at procoders.net> writes:

> I'm using py2exe to create a exe out of a python script. If works fine so
> far, but a get lot's of this warnings:
> 
> warning: use func(*args, **kwargs) instead of apply(func, args, kwargs)
> 
> I tried the last stable version of py2exe and the prerelease for 0.5. Both
> show this behavior. Can somebody tell me what the message means and how to
> avoid it?

It means exactly what it says.  The two expressions it gives are
equivalent, but apply is deprecated in 2.3, so use func(*args,
**kwargs) instead.  Either that, or figure out how to turn it off -- I
presume it's coming from Python rather than py2exe itself.


John




More information about the Python-list mailing list