Re: [Tutor] Writing to XML file with minidom

2005-08-31 Thread Travis Spencer
rs or non-ascii chars in that > gives errors > from expat when the contents is parsed. > I had to use a different encryption algorithm. I am going to do some tests on > it > now. Put the cyphertext in a CDATA section, so the parser knows to ignore its contents:

Re: [Tutor] Writing to XML file with minidom

2005-08-31 Thread Travis Spencer
the details. > (Hey, look, an Elf! *grin*) HA! > Hope this helps! Tremendously. Thanks, Danny! -- Regards, Travis Spencer ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Directory permission and ACLs

2005-09-02 Thread Travis Spencer
.org/lib/module-os.html * http://docs.python.org/lib/module-os.path.html stat and shutil might be useful too. HTH. -- Regards, Travis Spencer ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] convert binary to ascii

2005-09-02 Thread Travis Spencer
1" sam Its a really common algorithm. Google for "change of base algorithm" and you'll probably find lots of explinations. HTH. -- Regards, Travis Spencer ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] convert binary to ascii

2005-09-02 Thread Travis Spencer
ot;, 2) > 6 > >>> int("111", 2) > 7 Oh, that's nice. I guess my solution was the total C hacker's way; not very pythonic :-) Thanks for the info. -- Regards, Travis Spencer ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Parsing os.popen(command) output

2005-09-14 Thread Travis Spencer
, will be very thankful. -- Regards, Travis Spencer ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Converting MAC address . Need Help

2006-02-27 Thread Travis Spencer
11\\x22\\x33\\x44\\x55' > The list elements are still strings, you need to convert them to > integers. Why is this needed, Kent? Why not just leave them as strings? > The strings are in hexadecimal so use the optional base > parameter to int(): > >>> int(

Re: [Tutor] Converting MAC address . Need Help

2006-02-27 Thread Travis Spencer
On 2/27/06, Kent Johnson <[EMAIL PROTECTED]> wrote: > This is not what Sudarshana asked for - '\\x00' and '\x00' are not the > same string Thanks for clearning that up for me, Kent. -- Regards, Travis Spencer ___ Tut