CodeQL documentation

‘apply’ function used

ID: py/use-of-apply
Kind: problem
Security severity: 
Severity: warning
Precision: very-high
Tags:
   - maintainability
Query suites:
   - python-security-and-quality.qls

Click to see the query in the CodeQL repository

The ‘apply’ function is deprecated and makes code harder to read as most Python programmers will not be familiar with it (it has been deprecated since 2003).

Recommendation

Replace apply(function, args) with function(*args).

Replace apply(function, args, keywords) with function(*args, **keywords).

References

  • © GitHub, Inc.
  • Terms
  • Privacy
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy