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] Iterable String Redux (aka String ABC)

[Python-Dev] Iterable String Redux (aka String ABC)

Nick Coghlan ncoghlan at gmail.com
Fri May 30 18:40:18 CEST 2008

  • Previous message: [Python-Dev] Iterable String Redux (aka String ABC)
  • Next message: [Python-Dev] Iterable String Redux (aka String ABC)
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

Michael Foord wrote:
> I would be strongly +1 on a string ABC. Currently (to my knowledge) 
> there is no way of using duck typing for built-in APIs that expect a 
> string. How do I pass in an object to 'open' for example that isn't 
> actually a string or subclass?

Implement the character buffer API, which you can't actually do from 
Python code :P

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org

  • Previous message: [Python-Dev] Iterable String Redux (aka String ABC)
  • Next message: [Python-Dev] Iterable String Redux (aka String ABC)
  • 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.