Peter van Kampen added the comment:
Attached is msg_15.txt encoded in utf-8.
f = codecs.open('Lib/email/test/data/msg_15.txt', 'r',
encoding='iso-8859-1')
s = f.read()
f.close()
f = open('Lib/email/test/data/msg_15.txt','w')
f.write(s)
f.close()
$ ./python Lib/test/regrtest.py test_email
On 2006-11-08, Georg Brandl [EMAIL PROTECTED] wrote:
Peter van Kampen schrieb:
On 2006-11-06, Fredrik Lundh [EMAIL PROTECTED] wrote:
I've collected a bunch of list pydioms and other notes here:
http://effbot.org/zone/python-list.htm
A = B = [] # both names will point to the same list
On 2006-11-08, Gabriel Genellina [EMAIL PROTECTED] wrote:
At Wednesday 8/11/2006 16:51, Peter van Kampen wrote:
A = B = [] # both names will point to the same list
I've been bitten by this once or twice in the past, but I have always
wondered what it was useful for? Can anybody enlighten me
what it was useful for? Can anybody enlighten me?
TIA,
PterK
--
Peter van Kampen
pterk -- at -- datatailors.com
--
http://mail.python.org/mailman/listinfo/python-list
by an empty line.
#!/usr/bin/env python
import os
print Content-type: text/html
print
print os.getcwd()
--
Peter van Kampen
pterk -- at -- datatailors.com
--
http://mail.python.org/mailman/listinfo/python-list