PEP 8: Byte Order Mark (BOM) vs coding cookie

2008-08-24 Thread twyk
PEP 8 says ...

Files using ASCII (or UTF-8, for Python 3.0) should not have a coding
cookie.

What about a BOM (Byte Order Mark)?  Per Wikipedia ...

http://en.wikipedia.org/wiki/Byte-order_mark#endnote_UTF-8)

'In UTF-8, this is not really a "byte order" mark. It identifies the
text as UTF-8 but doesn't say anything about the byte order, because
UTF-8 does not have byte order issues.'

So is it good style to omit the BOM in UTF-8 for Python 3.0?
--
http://mail.python.org/mailman/listinfo/python-list


Re: recursively change values in list of lists

2008-08-24 Thread twyk
I see no recursion in the problem as stated.  Can a polygon contain
another polygon?

I can see that if you had ...

  e_1 = [(0,0),(3,0)]
  e_2 = [(3,0),(2,3)]
  e_3 = [(2,3),(0,0)]
  triangle_1 = [e_1,e_2,e_3]

  w_1 = [triangle_1,]

... you might want to make a copy of triangle_1 that was offset by
some amount and add it to w_1. Is that the idea?
--
http://mail.python.org/mailman/listinfo/python-list