The integrated platform for monitoring & security
Observability
End-to-end, simplified visibility into your stack’s health & performance
インフラ
Applications
ログ
セキュリティ
Detect, prioritize, and respond to threats in real-time
Code Security
Cloud Security
Threat Management
Digital Experience
Optimize front-end performance and enhance user experiences
Related Products
Software Delivery
Build, test, secure and ship quality code faster
Service Management
Integrated, streamlined workflows for faster time-to-resolution
AIOps
AI
Monitor and improve model performance. Pinpoint root causes and detect anomalies
AI Observability
Platform Capabilities
Built-in features & integrations that power the Datadog platform
Built-in Features
Workflows & Collaboration
Extensibility
Industry
テクノロジー
Use-case
Looking for Datadog logos?
You can find the logo assets on our press page.
ID: python-best-practices/function-variable-argument-name
python-best-practices/function-variable-argument-name
Language: Python
Severity: Warning
Category: Best Practices
A function parameter should only be read and not be modified. If your intent is to modify the value of the parameter, return the value in the function and handle the new value in the caller of the function.
def func(arg1, arg2): arg1 = foo # assign to a variable that is an argument
def func(arg1, arg2): (arg1, arg3, arg2) = foo # assign to a variable that is an argument
def func(arg1, arg2): arg3 = foo
Seamless integrations. Try Datadog Code Security
1 2
rulesets: - python-best-practices # Rules to enforce Python best practices.
For more information, please read the Code Security documentation
Identify code vulnerabilities directly in yourVS Code editor
Identify code vulnerabilities directly inJetBrains products