[Python-Dev] str object going in Py3K (original) (raw)
Thomas Wouters thomas at xs4all.net
Wed Feb 15 00:15:37 CET 2006
- Previous message: [Python-Dev] str object going in Py3K
- Next message: [Python-Dev] str object going in Py3K
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Feb 14, 2006 at 05:48:57PM -0500, Barry Warsaw wrote:
On Tue, 2006-02-14 at 14:37 -0800, Alex Martelli wrote:
> What about shorter names, such as 'text' instead of 'opentext' and > 'data' instead of 'openbinary'? By eschewing the 'open' prefix we > might make it easy to eventually migrate off it. Maybe text and data > could be two subclasses of file, with file remaining initially as it > is (and perhaps becoming an abstract-only baseclass at the time 'open' > is deprecated). I was actually thinking about static methods file.text() and file.data() which seem nicely self descriptive, if a little bit longer.
Make them classmethods though, like dict.fromkeys.
-- Thomas Wouters <thomas at xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
- Previous message: [Python-Dev] str object going in Py3K
- Next message: [Python-Dev] str object going in Py3K
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]