Re: treating str as unicode in legacy code?

2007-04-14 Thread John Machin
On Apr 13, 5:57 am, Ben [EMAIL PROTECTED] wrote: I'm left with some legacy code using plain oldstr, and I need to make sure it works withunicodeinput/output. I have a simple plan to do this: - Run the code with python -U so all the string literals becomeunicodelitrals. Requiring that the

Re: treating str as unicode in legacy code?

2007-04-13 Thread Steve Holden
Ben wrote: I'm left with some legacy code using plain old str, and I need to make sure it works with unicode input/output. I have a simple plan to do this: - Run the code with python -U so all the string literals become unicode litrals. - Add this statement str = unicode to all

treating str as unicode in legacy code?

2007-04-12 Thread Ben
I'm left with some legacy code using plain old str, and I need to make sure it works with unicode input/output. I have a simple plan to do this: - Run the code with python -U so all the string literals become unicode litrals. - Add this statement str = unicode to all .py files so the type