4 ms·
The "qeury" has been reified as data. Now you can do whatever you want to it, including assign it to a variable. Sometimes the ugly tradeoff is OK, even in Pyt
by jerf 17y ago
The "qeury" has been reified as data. Now you can do whatever you want to it, including assign it to a variable.
Sometimes the ugly tradeoff is OK, even in Python. In this case it is still less ugly than the code it is replacing, if you write correct code. Doing one little piddly-ass thing (running one method), then copy/pasting in the same four lines of error handling after every single one, well, it may be aesthetically pleasing on your screen but it's far uglier than what I've shown.
Python has many advantages, but it isn't perfect.