A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-October/049665.html below:

[Python-Dev] adding Py{String|Unicode}_{Lower|Upper} and fixing CreateProcess in _subprocess.pyd and PyWin32

[Python-Dev] adding Py{String|Unicode}_{Lower|Upper} and fixing CreateProcess in _subprocess.pyd and PyWin32 [Python-Dev] adding Py{String|Unicode}_{Lower|Upper} and fixing CreateProcess in _subprocess.pyd and PyWin32Guido van Rossum gvanrossum at gmail.com
Wed Oct 27 17:59:42 CEST 2004
> Why not mimic the pure python approach?
> 
> lowerfunc = PyObject_GetAttrString(&PyUnicode_Type, "lower");
> PyObject_CallMethod(mylist, "sort", "OO", Py_None, lowerfunc);

unicode.lower() doesn't like non-unicode objects, so this would only
work if you know for sure there are no str objects in the list.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4