Do you want to call a function with a differing number of arguments - sometimes simply looking for a function to run with all defaults, and at other times passing in some specific values / variables? Do you have so many different possible parameters that you would like to be able to "I want to give ....
As from Python 2.6, os.popen and friends are deprecated methods and you should use the subprocess module for subprocesses. So that's the way to go if you want to run operating system commands. New example showing this - [here]
Starting with:
from subprocess import *
I can run a process and allo ....
Python Decorators are wrappers that you may apply around methods. So they're rather like the bread around a sandwich.
There are a number of standard decorators provided with Python - such as @classmethod and @staticmethod (see [here]) which allow you to turn methods into unbound (static, class) one ....
Q: C++ is under open source in your courses. is that right?
BTW I like your site. Need to learn C++ but too expensive for me. Thanks.
Question / comment via our "Ask the Tutor" page - but I suspect that the email address given doesn't reach the writer, and the question / comments are good "FAQ qual ....
Following on from yesterday's comments about long questionnaires, I've been writing a Mission Statement and Policy summaries. Stripped of examples, they look pretty bald - but then I could fill a month of blogs with examples, reasonings, conundrums and solutions that have lead us to where we are, ....
I'm wading through 18 pages of terms and conditions and a 17 page questionnaire on Quality and Health and Safety, send to us by an organization which wants to send a delegate on one of our courses. They've also asked us to provide 8 additional documents or document sets, some of which are very wide ....
Not much more than "touching". Just arrived home from Washington DC; flight delayed by having to take the long way round to avoid volcanic dust - and getting ready to head up to Scotland to give a course starting at 9 a.m. tomorrow.
[i]That's so short and personal - perhaps I should just have twe ....
So many pictures taken - and I don't know what to do with them all. I suspect that I'm not the only one; we take a hundred times more pictures than we used to, and we print (it seems) one one hundredth of those we used to print.
Yesterday, I walked from Arlington over the Potomac river to the Li ....
They say that Boadicea rallied her troops with a speech from her horse. Other "they"s say that she couldn't possibly have projected her voice from the top of her horse, out on the Tilbury Marshes, to more than a handful of followers.
So we can forgive Abraham Lincoln, without a megaphone, SHOUTING ....