pyd: calling methods using key arguments

2020-08-14 Thread Andre Pany via Digitalmars-d-learn
Hi, I want to call a python method, which can only be called using key arguments. (https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sqs.html#SQS.Client.get_queue_url) I assume pyd is able to pass somehow key arguments to the python method, but I cannot find anything

getopt Basic usage

2020-08-14 Thread James Gray via Digitalmars-d-learn
I am trying to use getopt and would not like the program to throw an unhandled exception when parsing command line options. Is the following, adapted from the first example in the getopt documentation, a reasonable approach? import std.getopt; string data = "file.dat"; int length = 24; bool

Re: getopt Basic usage

2020-08-14 Thread mw via Digitalmars-d-learn
On Saturday, 15 August 2020 at 04:09:19 UTC, James Gray wrote: I am trying to use getopt and would not like the program to throw an unhandled exception when parsing command line options. Is the following, adapted from the first example in the getopt documentation, a reasonable approach? life