Top "Arguments" questions

An argument is a value passed to a function, procedure, or command line program.

How to use self parameter, @staticmethod keyword inside a class and its methods

I have a python class which has multiple methods. I have defined my methods via @staticmethod instance and I want …

python class methods arguments self
Skip some arguments in a C++ function?

I have a C++ function that has 5 arguments, all of which have default values. If I pass in the first …

c++ optimization arguments default-arguments
How to use a member variable as a default argument in C++?

I want to make an argument for one of the member functions optional. When no argument is provided, it would …

c++ object default arguments
Using HTMLParser in Python 3.2

I have been using HTML Parser to scrapping data from websites and stripping html coding whilst doing so. I'm aware …

python-3.x html-parsing arguments web-scraping stripping
A question about JavaScript's slice and splice methods

I came across the following code: var f = function () { var args = Array.prototype.slice.call(arguments).splice(1); // some more code }; …

javascript arrays slice splice arguments
Can one partially apply the second argument of a function that takes no keyword arguments?

Take for example the python built in pow() function. xs = [1,2,3,4,5,6,7,8] from functools import partial list(map(partial(pow,2),xs)) >&…

python arguments partial-application
Pythonic way to have a choice of 2-3 options as an argument to a function

I have a Python function which requires a number of parameters, one of which is the type of simulation to …

arguments python idioms
Apache Commons CLI muliple argument value names in the -help option

I use Apache Commons CLI for parsing command line arguments. I am looking for a way to display multiple argument …

java command-line arguments command-line-interface apache-commons-cli
Python Command Args

I have been googling almost an hour and am just stuck. for a script, stupidadder.py, that adds 2 to the …

python parsing arguments args
Pass argument to AsyncCallback function?

I'm learning socket programming and I have the following function: public void OnDataReceived(IAsyncResult asyn) and this is how the …

c# function arguments asynccallback