The difference is between mutable objects, which can change in place, and immutable objects, which are fixed and cannot change, only be replaced with a new object. Integers are immutable. So the statement: y += 2 takes the existing object named y, 5, adds 2 to give a new object 7, and assigns it โ€ฆ Answer from steven.daprano on discuss.python.org
๐ŸŒ
Langchain
reference.langchain.com โ€บ python โ€บ langchain-core
langchain_core | LangChain Reference
RunnableLambda converts a python callable into a Runnable. ... RunnableEachBase class. ... RunnableEach class. ... Runnable that delegates calls to another Runnable with a set of **kwargs. ... Wrap a Runnable with additional functionality. ... Check if a name is a local dict. ... Check if the first argument of a function is a dict.
๐ŸŒ
Google AI
ai.google.dev โ€บ gemini api โ€บ gemini api quickstart
Gemini API quickstart | Google AI for Developers
January 19, 2026 - If you set your API key as the environment variable GEMINI_API_KEY, it will be picked up automatically by the client when using the Gemini API libraries. Otherwise you will need to pass your API key as an argument when initializing the client.
๐ŸŒ
Go
go.dev โ€บ doc โ€บ effective_go
Effective Go - The Go Programming Language
Here is the implementation of the function log.Println we used above. It passes its arguments directly to fmt.Sprintln for the actual formatting.
๐ŸŒ
GitHub
github.com โ€บ Dao-AILab โ€บ flash-attention
GitHub - Dao-AILab/flash-attention: Fast and memory-efficient exact attention ยท GitHub
March 5, 2026 - Note: Does not support backward pass. Arguments: q: (batch_size, seqlen, nheads, headdim) k_cache: (batch_size_cache, seqlen_cache, nheads_k, headdim) if there's no block_table, or (num_blocks, page_block_size, nheads_k, headdim) if there's a block_table (i.e.
Starred by 23.4K users
Forked by 2.6K users
Languages ย  Python 65.7% | C++ 25.8% | Cuda 8.4% | Dockerfile 0.1% | C 0.0% | Shell 0.0%
๐ŸŒ
Python Course
python-course.eu โ€บ python-tutorial โ€บ passing-arguments.php
25. Passing Arguments | Python Tutorial | python-course.eu
November 8, 2023 - Correctly speaking, Python uses a mechanism, which is known as "Call-by-Object", sometimes also called "Call by Object Reference" or "Call by Sharing". If you pass immutable arguments like integers, strings or tuples to a function, the passing acts like call-by-value.
Find elsewhere
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ deep-dive-into-parameters-and-arguments-in-python
Python Function Parameters and Arguments - GeeksforGeeks
To read in detail, refer - *args and **kwargs in Python ยท Keyword Arguments is an argument passed to a function or method which is preceded by a keyword and equal to sign (=).
Published ย  July 23, 2025
๐ŸŒ
Python.org
discuss.python.org โ€บ python help
Passing argument to function from command line - Python Help - Discussions on Python.org
June 25, 2025 - My son wrote a command line program in ruby for me. I want to convert it to python. To run the program he has done this on the command line; โ€œ./myProgram.rb โ€˜argumentโ€™โ€. Then the 'argument โ€™ is passed into the prograโ€ฆ
๐ŸŒ
Real Python
realpython.com โ€บ python-kwargs-and-args
Python args and kwargs: Demystified โ€“ Real Python
November 7, 2023 - This is where *args can be really useful, because it allows you to pass a varying number of positional arguments. Take the following example: ... def my_sum(*args): result = 0 # Iterating over the Python args tuple for x in args: result += x ...
๐ŸŒ
Claude
code.claude.com โ€บ docs โ€บ en โ€บ skills
Extend Claude with skills - Claude Code Docs
1 month ago - Indexed arguments use shell-style quoting, so wrap multi-word values in quotes to pass them as a single argument. For example, /my-skill "hello world" second makes $0 expand to hello world and $1 to second. The $ARGUMENTS placeholder always expands to the full argument string as typed.
๐ŸŒ
pre-commit
pre-commit.com
pre-commit
When creating local hooks, there's no reason to put command arguments into args as there is nothing which can override them -- instead put your arguments directly in the hook entry. ... - repo: local hooks: - id: check-requirements name: check requirements files language: unsupported entry: python -m scripts.check_requirements --compare files: ^requirements.*\.txt$
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ gloss_python_function_arguments.asp
Python Function Arguments
Python Functions Tutorial Function Call a Function *args Keyword Arguments **kwargs Default Parameter Value Passing a List as an Argument Function Return Value The pass Statement i Functions Function Recursion
๐ŸŒ
Medium
datageeks.medium.com โ€บ passing-parameters-to-the-python-script-from-the-command-line-139a9fc94ee
Passing arguments to the Python script from the command line. | by DataGeeks | Medium
December 26, 2022 - bash-3.2$ python3 python_arguments.py 'my' 'name' 'is' 'khushboo' -------output-------------Let's read the arguments from command line['python_arguments.py', 'my', 'name', 'is', 'khushboo'] From the output, we can see that sys.argv is a list and through list indexes, we can easily access all its elements and use them in the python script. Modify the above example a bit and create a sentence in the upper case from the passed arguments.
๐ŸŒ
Python documentation
docs.python.org โ€บ 3 โ€บ tutorial โ€บ interpreter.html
2. Using the Python Interpreter โ€” Python 3.14.4 documentation
This can be done by passing -i before the script. All command line options are described in Command line and environment. When known to the interpreter, the script name and additional arguments thereafter are turned into a list of strings and ...
๐ŸŒ
Python documentation
docs.python.org โ€บ 3 โ€บ library โ€บ functions.html
Built-in Functions โ€” Python 3.14.4 documentation
February 27, 2026 - A class method can be called either ... is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument....
๐ŸŒ
Astral
docs.astral.sh โ€บ uv โ€บ guides โ€บ scripts
Running scripts | uv
December 9, 2025 - A guide to using uv to run Python scripts, including support for inline dependency metadata, reproducible scripts, and more.
๐ŸŒ
SaltyCrane
saltycrane.com โ€บ blog โ€บ 2007 โ€บ 12 โ€บ how-to-pass-command-line-arguments-to
How to pass command line arguments to your Python program - SaltyCrane Blog
December 20, 2007 - #!/usr/bin/python import sys def main(): # print command line arguments for arg in sys.argv[1:]: print arg if __name__ == "__main__": main() Try it out: