Re: A stupid newbie question about output...

2009-10-20 Thread J
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

Re: A stupid newbie question about output...

2009-10-20 Thread Aahz
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

Re: A stupid newbie question about output...

2009-10-20 Thread J
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

Re: A stupid newbie question about output...

2009-10-20 Thread Ethan Furman
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

Re: A stupid newbie question about output...

2009-10-20 Thread nn
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

A stupid newbie question about output...

2009-10-20 Thread J
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