On Feb 03, 2010, at 04:21 PM, M.-A. Lemburg wrote: >exar...@twistedmatrix.com wrote: >> On 02:52 pm, m...@egenix.com wrote: >>> >>> Note that in Python 2.7 you can use >>> >>> from __future__ import unicode_literals >>> >>> on a per module basis to achieve much the same effect. >> >> In Python 2.6 as well. > >Right, but there are a few issues in 2.6 that will be fixed >in 2.7.
The one that bites me most often is that in 2.6, keyword arguments must be strs; unicodes are not accepted: -----snip snip----- from __future__ import unicode_literals def func(foo, bar): print foo, bar kw = {'foo': 7, 'bar': 9} func(**kw) -----snip snip----- That will raise a TypeError in 2.6 but works in 2.7. Is it appropriate and feasible to back port that to Python 2.6? I remember talking about this a while back but I don't remember what we decided and I can't find a bug on the issue. -Barry
signature.asc
Description: PGP signature
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com