Movatterモバイル変換


[0]ホーム

URL:


CodeQL documentation
CodeQL resources

‘apply’ function used

ID: py/use-of-applyKind: problemSecurity severity: Severity: warningPrecision: very-highTags:   - maintainabilityQuery 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

Replaceapply(function,args) withfunction(*args).

Replaceapply(function,args,keywords) withfunction(*args,**keywords).

References


[8]ページ先頭

©2009-2025 Movatter.jp