Re: [Tutor] Parsing DICOMRT file

2007-12-11 Thread Alan Gauld
"Bryan Fodness" <[EMAIL PROTECTED]> wrote > First, I get different outputs from the two methods below. > > for line in file('file.dcm', 'rb'): > print line This prints each line in turn. > inp = open('file.dcm', 'rb') > print inp.readlines() This prints a list of lines > Second, I have nev

Re: [Tutor] Parsing DICOMRT file

2007-12-11 Thread bob gailer
Bryan Fodness wrote: > I am trying to parse a DICOMRT file, which is a radiation therapy > DICOM file. > > First, I get different outputs from the two methods below. > > for line in file('file.dcm', 'rb'): > print line > > inp = open('file.dcm', 'rb') > print inp.readlines() I agree.

[Tutor] Parsing DICOMRT file

2007-12-11 Thread Bryan Fodness
I am trying to parse a DICOMRT file, which is a radiation therapy DICOM file. First, I get different outputs from the two methods below. for line in file('file.dcm', 'rb'): print line inp = open('file.dcm', 'rb') print inp.readlines() Second, I have never tried to parse a binary file. I co

Re: [Tutor] How is "tuple" pronounced?

2007-12-11 Thread bhaaluu
Greetz! On Dec 11, 2007 4:55 PM, earlylight publishing <[EMAIL PROTECTED]> wrote: > So it looks like most folks here and on the web are saying too-ple (rhymes > with scruple or pupil... sorta). That's the one I'll go with... now that I > can say it it's time to get back to learning how to use em!

Re: [Tutor] Noob question

2007-12-11 Thread wesley chun
> > > This is fairly inefficient. Because strings in python are immutable > > > this approach causes a new string to be created every iteration. > > > >This is not true of CPython (the standard python.org release) since > >version 2.4: > >http://www.python.org/doc/2.4.4/whatsnew/node12.html#SECTIO

Re: [Tutor] How is "tuple" pronounced?

2007-12-11 Thread earlylight publishing
So it looks like most folks here and on the web are saying too-ple (rhymes with scruple or pupil... sorta). That's the one I'll go with... now that I can say it it's time to get back to learning how to use em! Please visit our website www.earlylightpublishing.com -

Re: [Tutor] Noob question

2007-12-11 Thread Dick Moores
At 04:19 AM 12/11/2007, Kent Johnson wrote: >Eric Brunson wrote: > > Hi Amit, > > > > This is fairly inefficient. Because strings in python are immutable > > this approach causes a new string to be created every iteration. > >This is not true of CPython (the standard python.org release) since >ver

Re: [Tutor] Noob question

2007-12-11 Thread Kent Johnson
Eric Brunson wrote: > Hi Amit, > > This is fairly inefficient. Because strings in python are immutable > this approach causes a new string to be created every iteration. This is not true of CPython (the standard python.org release) since version 2.4: http://www.python.org/doc/2.4.4/whatsnew/no

Re: [Tutor] Beat me over the head with it

2007-12-11 Thread Paul Schewietzek
Theyain schrieb: > I'm not sure if this is really the place to do this, but I will ask anyways. > > Hello everyone, names Theyain. I want to learn Python. But I am one of > those people who needs some one to "Beat me over the head" to actually > learn something. I can't get myself to actually