Menu

#1 "apply" raises PendingDeprecationWarning

closed
nobody
None
5
2004-01-13
2003-08-14
No

built-in function, "apply", is used in setup.py and
setup_win32_ssl.py.
However, "apply" was deprecated since release 2.3.
http://www.python.org/doc/current/lib/built-in-
funcs.html#l2h-9

"setup(**setup_args)" instead of "apply(setup, (),
setup_args)" might be preferred.

If you run the script with "-Wall" option, you can get the
warning message.

% python -Wall setup.py install
Using curl-config (libcurl 7.10.4)
setup.py:199: PendingDeprecationWarning: use func
(*args, **kwargs) instead of apply(func, args, kwargs)
apply(setup, (), setup_args)
...

Discussion

  • Kjetil Jacobsen

    Kjetil Jacobsen - 2004-01-13

    Logged In: YES
    user_id=5685

    Ok, fixed in current cvs. The reason why we used the
    baroque syntax was for things to work with python1.5. I
    guess it's time to stop.

     
  • Kjetil Jacobsen

    Kjetil Jacobsen - 2004-01-13
    • status: open --> closed