On Tue, Jun 3, 2008 at 10:53 AM, Atsuo Ishimoto <[EMAIL PROTECTED]> wrote: > I updated PEP and patch. New patch is updated to > http://bugs.python.org/issue2630. > > Changes are:: > > - Added conversion flag to the str.format() and PyUnicode_FromFormat() C API. > > - Added new C API PyObject_ASCII() which called from ascii() builtin > function for consistency. If PyObject_ASCII() is not necessary to be > public API, I'll make it internal function.
I've accepted the PEP, meaning implementation can now go ahead. Hopefully it will make it into 3.0b1. Congratulations, Atsuo! > Questions:: > > - The error-handler of the sys.stderr is now configurable by > PYTHONIOENCODING, but I think default error-handler of sys.stderr > should be 'backslashreplace'. PYTHONIOENCODING is fine for sys.stdout, > but sys.stderr is not necessary to have same error-handler with > sys.stdout. Correct. You can fix this in the PEP or just in the code. :-) > - Should new C APIs/function/method/string format operaters be > back-ported to Python 2.6, without modifying repr() itself? If so, ll > prepare a patch for Python 2.6. I don't think the C level features need to be backported. Backporting the .format() operations is probably a good idea. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ 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