"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
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.
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
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!
> > > 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
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
-
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
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
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