GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [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

Guido van Rossum gvanrossum at gmail.com
Wed Oct 27 17:59:42 CEST 2004

  • Previous message: [Python-Dev] adding Py{String|Unicode}_{Lower|Upper} and fixing CreateProcess in _subprocess.pyd and PyWin32
  • Next message: [Python-Dev] adding Py{String|Unicode}_{Lower|Upper} and fixing CreateProcess in _subprocess.pyd and PyWin32
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

> 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/)

  • Previous message: [Python-Dev] adding Py{String|Unicode}_{Lower|Upper} and fixing CreateProcess in _subprocess.pyd and PyWin32
  • Next message: [Python-Dev] adding Py{String|Unicode}_{Lower|Upper} and fixing CreateProcess in _subprocess.pyd and PyWin32
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the Python-Dev mailing list
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.