Hi,

I'm attaching a small patch result of attempting to tackle part of one of the tasks in the Google Sprint. The patch removes most of the references of PyString_* calls in the "time" and "datetime" modules and adds Unicode support instead.

There's a problem in "datetime" with "_PyUnicode_AsDefaultEncodedString". As there's no current equivalent that would provide an object of type "bytes", there are two occurrences of PyString_* functions to handle the returned "default encoded string" and convert it into bytes.

cheers,
--
Ero


Attachment: time_datetime_pystring_patch.diff
Description: Binary data

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to