A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-October/113796.html below:

[Python-Dev] RFC: Add a new builtin strarray type to Python?

[Python-Dev] RFC: Add a new builtin strarray type to Python? [Python-Dev] RFC: Add a new builtin strarray type to Python?Antoine Pitrou solipsis at pitrou.net
Sun Oct 2 17:52:14 CEST 2011
On Sun, 02 Oct 2011 16:41:16 +0200
Antoine Pitrou <solipsis at pitrou.net> wrote:

> Le dimanche 02 octobre 2011 à 23:39 +0900, Stephen J. Turnbull a écrit :
> > Antoine Pitrou writes:
> > 
> >  > StringIO is an in-memory file-like object, like in 2.x (where it lived
> >  > in the "cStringIO" module). I don't think it's a novel thing.
> > 
> > The problem is the name "StringIO".  Something like "StringStream" or
> > "StringBuffer" might be more discoverable.  I personally didn't have
> > trouble deducing that "StringIO" means "treat a string like a file",
> > but it's not immediately obvious what the module is for (unless you
> > already know).
> 
> I'm not sure why "StringStream" or "StringBuffer" would be more
> discoverable, unless you're coming from a language where these names are
> well-known. A "stream" is usually related to I/O, anyway; while a
> "buffer" is more like an implementation detail.
> I personally like the relative tersity of "StringIO".

Apparently the real word is "terseness". My bad.

Antoine.


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