Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [arguments]

An argument is a value passed to a function, procedure, or command line program. This also refers to the Array-like `arguments` object in JavaScript.

2 votes
1 answer
44 views

Confusion about Caching with Decorators in Python

I'm working with Python decorators to implement caching for functions. I understand the basic concept of caching results to improve performance, but I'm struggling with how to handle different ...
ABIGAIL WOOLLEY's user avatar
1 vote
0 answers
37 views

R: Default argument scoping [duplicate]

A colleague of mine ran into an interesting problem with R. We managed to work around it but want to understand how R (internally) handles the scoping of default arguments for user-defined functions. ...
user2810298's user avatar
1 vote
1 answer
64 views

How to pass '$' => Special Character as argument for makefile

I tried to pass password for postgres that is used in go scrip which is passed throug a makefile My password contains '$' character=> the makefile doesnt recognize it a character. I tried using ...
KARTHIK J's user avatar
0 votes
1 answer
34 views

"The object square is not applicable" but `square` is one internal procedure in MIT-Scheme

Recently when I self-learnt MIT 6.5151 course, I first read CS 61AS Unit 0 as the preparation. Then I have read SICP 1 to 2.1 (with related lecture notes) as ps0 requires (also read 2.2.1 as CS 61A ...
An5Drama's user avatar
  • 377
0 votes
1 answer
29 views

BigQuery: input parameter used for dataset name in for loop

I have a stored procedure that uses a for loop to read through the records in a table and carry out some actions. Is it possible to use an input parameter to specify the dataset and table names? For ...
user21920847's user avatar
-3 votes
1 answer
49 views

Rust iterator map callback issue "function is expected to take 1 argument, but it takes 3 arguments expected function that takes 1 argument"

This "do_work" function Need to insert 3 arguments, but only first argument is working. Please view image. I also need to insert i2 and i3 variables. Rust map callback issue - "...
Salman Amin's user avatar
0 votes
0 answers
37 views

Problem in calling Python executable file with large arguments

From C#, I want to execute python exe file with the arguments. If my arguments are simple and small string, it is fine. But if I send large string, then it throws "The filename or extension is ...
vignesh duraivel's user avatar
0 votes
1 answer
45 views

Wp customizer Custom control class - get value from custom argument to enqueue function inside class

I'm working with custom control in wp customizer. Got custom argument for this control ( foo ) and trying to get its value as a part of enqueue directory. So, custom argument foo shows up properly in ...
Wenatech's user avatar
1 vote
0 answers
68 views

How to use multiple positional args with argparse

I am writing a program that expects 2 required positional args. First argument has a limited set of string values. Second argument can be any string without restrictions. Program is meant to use ...
Erionn's user avatar
  • 31
0 votes
0 answers
50 views

Use UTF-8 in .bat file

I have following .bat file: @echo off echo %* > args.txt I get all the args through this file using %* and save them in a txt file to use them later. But when I use special args that require utf-8,...
ArianNa's user avatar
  • 31
0 votes
1 answer
45 views

Python decorator for class methods does not accept arguments from class attributes

I have a conditional decorator that executes action if 'True' is passed, it works great on standalone functions, but when trying to use it on class methods, I cannot pass an argument from class ...
Danil's user avatar
  • 107
1 vote
2 answers
126 views

Run Powershell with parameters from batch file

For convenience of use, I need to put my powershell script in a bat file. The bat file content is as follows: # 2>NUL & @CLS & PUSHD "%~dp0" & powershell -COMMAND "Start-...
NqHai's user avatar
  • 67
0 votes
1 answer
56 views

bash script - check number of input arguments based on one input argument value

I have to create a bash script for which i need to give input arguments based on action type: insert/update. In case of insert the bash script will need 3 input arguments but in case of update are ...
Mathew Linton's user avatar
0 votes
0 answers
26 views

Can someone please explain the detailed mechanism of function call without any argument? [duplicate]

Here, the calling line np.pad(a, 2, pad_with) works magically!. Not able to find the corresponding python PEP document. >>> def pad_with(vector, pad_width, iaxis, kwargs): ... ...
MathArt's user avatar
  • 213
0 votes
0 answers
24 views

PHP - Syntax to append a string value to function argument? [duplicate]

I'm using the prepared_query and prepared_select functions from PHPdelusions (https://phpdelusions.net/mysqli_examples/prepared_select) The standard functions are fine on known data sets, where you ...
Mike West's user avatar

15 30 50 per page
1
2 3 4 5
746