In JavaScript each function has a special arguments
predefined objects which holds information about arguments passed to the function call, e.g.
function test() {
var args = Array.prototype.slice.call(arguments);
console.log(args);
}
arguments can be easily dumped to a standard array:
test()
// []
test(1,2,3)
// [1, 2, 3]
test("hello", 123, {}, [], function(){})
// ["hello", 123, Object, Array[0], function]
I know that in Python I can use standard arguments, positional arguments and keyword arguments (just like defined here) to manage dynamic parameter number - but is there anything similar to arguments
object in Python?