Re: [Tutor] appending to a utf-16 encoded text file

2008-10-22 Thread Tim Golden
Mark Tolonen wrote: "Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Tim Brown wrote: Hi, I'm trying to create and append unicode strings to a utf-16 text file. The best I could come up with was to use codecs.open() with an encoding of 'utf-16' but when I do an append

[Tutor] XML parsing with SAX was Re: (no subject)

2008-10-22 Thread Alan Gauld
"amit sethi" <[EMAIL PROTECTED]> wrote Please, always use a meaningful subject line when posting! and do not reply to an existing thread, changing the subject. These things mess up threaded reading tools such as gmane and newsreaders. This reduces your chances of a reply. Hi can any body give me

[Tutor] XML parsing with SAX

2008-10-22 Thread amit sethi
Sorry , I didn't follow the format of posting to the group. Well I am new to xml and python . What I basically want to do is to read elements from the xml which is by the way large ~2GB and read the attributes and make a decision as to whether i want to keep that element or not . I am told that xml

Re: [Tutor] XML parsing with SAX

2008-10-22 Thread A.T.Hofkamp
amit sethi wrote: Sorry , I didn't follow the format of posting to the group. Well I am new to xml and python . What I basically want to do is to read elements from the xml which is by the way large ~2GB and read the attributes and make a decision as to whether i want to keep that element or not

Re: [Tutor] XML parsing with SAX

2008-10-22 Thread Kent Johnson
On Wed, Oct 22, 2008 at 9:07 AM, amit sethi <[EMAIL PROTECTED]> wrote: > Sorry , I didn't follow the format of posting to the group. Well I am new to > xml and python . What I basically want to do is to read elements from the > xml which is by the way large ~2GB and read the attributes and make a >

[Tutor] threading not working how about fork?

2008-10-22 Thread Ertl, John C CIV 63134
Classification: UNCLASSIFIED Caveat (s): FOUO Thanks for the help and I am looking into the pyprocessing but threading is causing too many headaches (I may have to rewrite things). Lets say I have something as simple as below: def takeTime(a): print "Started %s" % a time.sleep(10)

Re: [Tutor] threading not working how about fork?

2008-10-22 Thread Kent Johnson
On Wed, Oct 22, 2008 at 5:44 PM, Ertl, John C CIV 63134 <[EMAIL PROTECTED]> wrote: > Classification: UNCLASSIFIED > Caveat (s): FOUO ?? > Thanks for the help and I am looking into the pyprocessing but threading is > causing too many headaches (I may have to rewrite things). Lets say I have > som

Re: [Tutor] decision structures

2008-10-22 Thread bob gailer
I hope we did not scare you away. Do you still want help? If you get a solution elsewhere would you share it with us so we can see and celebrate your progress? -- Bob Gailer Chapel Hill NC 919-636-4239 When we take the time to be aware of our feelings and needs we have more satisfying inte