3 ms·
It’s traditional to build these kinds of loops in C, e.g.: int c; while((c = getopt(argc, argv, argstr)) >= 0) {...} I’d say it’s acceptable, and Pyth
by stochastic_monk 7y ago
It’s traditional to build these kinds of loops in C, e.g.:
int c;
while((c = getopt(argc, argv, argstr)) >= 0) {...}
I’d say it’s acceptable, and Python is adding syntax so it can mix assignments and checks.