FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/python/ql/src/Expressions/UseofApply.qhelp at codeql-cli-2.19.2 · github/codeql · GitHub
github
/
codeql
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10.1k
Code
Issues
1k
Pull requests
470
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
python
/
ql
/
src
/
Expressions
/
UseofApply.qhelp
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (20 loc) · 767 Bytes
Breadcrumbs
codeql
/
python
/
ql
/
src
/
Expressions
/
UseofApply.qhelp
Copy path
File metadata and controls
28 lines (20 loc) · 767 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!
DOCTYPE
qhelp
PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<
qhelp
>
<
overview
>
<
p
> 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).
</
p
>
</
overview
>
<
recommendation
>
<
p
>Replace <
code
>apply(function, args)</
code
> with <
code
>function(*args)</
code
>.
</
p
><
p
>
Replace <
code
>apply(function, args, keywords)</
code
> with <
code
>function(*args, **keywords)</
code
>.
</
p
>
</
recommendation
>
<
references
>
<
li
>Python Standard Library: <
a
href
=
"
http://docs.python.org/2/library/functions.html#apply
"
>apply</
a
>.</
li
>
<
li
>Python PEP-290: <
a
href
=
"
http://www.python.org/dev/peps/pep-0290/
"
>Code Migration and Modernization</
a
>.</
li
>
</
references
>
</
qhelp
>
Back
|
FazBrowse Home
|
New Git URL