On Tue, Oct 20, 2009 at 16:25, Aahz wrote:
> In article ,
> J wrote:
>>
>>The tuple thing is a new concept to me... at least the vocabulary is,
>>I'll go look that up now and learn info on tuples. It's been ages
>>since I did any python programming, and even back then it was fairly
>>simple stuf
In article ,
J wrote:
>
>The tuple thing is a new concept to me... at least the vocabulary is,
>I'll go look that up now and learn info on tuples. It's been ages
>since I did any python programming, and even back then it was fairly
>simple stuff (this was about 9 years ago)... so I'm relearning b
On Tue, Oct 20, 2009 at 14:53, Ethan Furman wrote:
> osVer = "%s Service Pack %d" % (os.Name.split("|")[0],
> os.ServicePackMajorVersion)
>
> This way, osVer is a string, and not a tuple.
Thanks for the help...
The tuple thing is a new concept to me... at least the vocabulary is,
I'll go
J wrote:
Can someone explain why this code results in two different outputs?
for os in comp.CIM_OperatingSystem ():
print os.Name.split("|")[0] + " Service Pack", os.ServicePackMajorVersion
osVer = os.Name.split("|")[0] + " Service Pack", os.ServicePackMajorVersion
print osVer
the first pri
On Oct 20, 2:23 pm, J wrote:
> Can someone explain why this code results in two different outputs?
>
> > for os in comp.CIM_OperatingSystem ():
> > print os.Name.split("|")[0] + " Service Pack", os.ServicePackMajorVersion
> > osVer = os.Name.split("|")[0] + " Service Pack", os.ServicePackMajorVe
Can someone explain why this code results in two different outputs?
> for os in comp.CIM_OperatingSystem ():
> print os.Name.split("|")[0] + " Service Pack", os.ServicePackMajorVersion
> osVer = os.Name.split("|")[0] + " Service Pack", os.ServicePackMajorVersion
> print osVer
the first print s