And as for launching iTunes and playing a Podcast, you should take a look at
AppleScript. AppleScript is designed specifically for running and controlling
Mac OS X applications—iTunes among them. (I once wrote a script to sync my
iTunes play counts from last.fm, for example.)
You might also loo
Or, in many MANY cases, the choice was the right one, but isn't
obvious to everyone.
I think it's worth pointing out that changing function defaults to
late-binding would merely change the nature of the gotcha, not eliminate it.
words = ("one", "two", "red", "blue", "fish")
def join_strings(stri
On Jun 21, 2013, at 11:17 AM, Rick Johnson wrote:
> On Thursday, June 20, 2013 5:28:06 PM UTC-5, Lefavor, Matthew
> (GSFC-582.0)[MICROTEL LLC] wrote:
>>
>> [snip example showing dummy coder doing something dumb]
>>
>> +1. This is what convinces me that ke
>
> The Apathetic Approach:
>
> I could just assume that a programmer is responsible for the
> code he writes. If he passes mutables into a function as
> default arguments, and
If you do want an in-place extension, you could try:
aList=[1,2,3,4,5,6,7,8,9,10]
xList=[1,2,3]
print "The concatenated lists are:", aList + bList
Though you need to remember that neither aList nor bList is altered in
this situation!
Matthew Lefavor
NASA GSFC [Microtel, LLC]
Mail
401 - 405 of 405 matches
Mail list logo