[issue5239] Change time.strptime() to make it work with Unicode chars

2009-03-30 Thread Brett Cannon
Brett Cannon added the comment: As Hirokazu pointed out, this was fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-03-30 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This issue seems to be fixed on py3k by r70755. (issue5236) -- ___ Python tracker ___ ___ Python-

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If we add re.UNICODE on Py2, strptime should work fine with unicode > strings, but it could fail somehow with normal strings. Is it more > important to provide a way to use Unicode chars that works only with > unicode strings or to have a coherent behavior bet

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file13071/remove_ascii_flag.patch ___ Python tracker ___ ___ Python-bugs-li

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I added test. But this requires issue5249 fix to be passed on windows. (I used "\u3000" instead of "\xa0" because "\xa0" cannot be decoded on windows mbcs) -- dependencies: +Fix strftime on windows. Added file: http://bugs.python.org/file13074/remov

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Ezio Melotti
Ezio Melotti added the comment: Sorry, I misunderstood the meaning of "no-brainer". If we add re.UNICODE on Py2, strptime should work fine with unicode strings, but it could fail somehow with normal strings. Is it more important to provide a way to use Unicode chars that works only with unicode

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Removing re.ASCII in py3k is a no-brainer, because unicode is how > > strings work by default. > > I meant from the line 265 of _strptime.py, not from Python :P That's what I understood. ___ Python tracker

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Ezio Melotti
Ezio Melotti added the comment: > Removing re.ASCII in py3k is a no-brainer, because unicode is how > strings work by default. I meant from the line 265 of _strptime.py, not from Python :P ___ Python tracker __

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le vendredi 13 février 2009 à 14:44 +, Ezio Melotti a écrit : > It's probably a good idea to have a coherent behavior between Py2 and > Py3, so if we remove re.ASCII from Py3 we should add re.UNICODE to Py2. Removing re.ASCII in py3k is a no-brainer, becaus

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Ezio Melotti
Ezio Melotti added the comment: I think Py3 with re.ASCII is the same as Py2 without re.UNICODE (and Py3 without re.ASCII is the same as Py2 with re.UNICODE). It's probably a good idea to have a coherent behavior between Py2 and Py3, so if we remove re.ASCII from Py3 we should add re.UNICODE to

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Hmm, this fails on python2 too. Maybe re.ASCII is added for backward > compatibility? Again, I'm not familiar with unicode, so I won't call > remove_ascii_flag.patch as *fix*. re.ASCII was added to many stdlib modules because I wanted to minimize the potentia

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Hmm, this fails on python2 too. Maybe re.ASCII is added for backward compatibility? Again, I'm not familiar with unicode, so I won't call remove_ascii_flag.patch as *fix*. -- nosy: +pitrou ___ Python tracker

[issue5239] Change time.strptime() to make it work with Unicode chars

2009-02-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- title: time.strptime("2009", "%Y") raises a value error -> Change time.strptime() to make it work with Unicode chars ___ Python tracker ___ _