[Python-ideas] An ABC representing "Iterable, Sized, Container"

Michael Selik michael.selik at gmail.com
Fri Jul 29 22:59:09 EDT 2016


On Fri, Jul 29, 2016, 2:18 PM Chris Barker - NOAA Federal <
chris.barker at noaa.gov> wrote:

> The problem here is that often folks want to NOT allow single strings,
> but rather want only an iterable of strings.
>

The module author might, but sometimes the user might want to use a str as
an iterable of 1-len strs. It bugs me that Pandas forces me to wrap a str
of indices in a list constructor before passing it into the DataFrame
constructor.

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160730/1b70ab76/attachment.html>


More information about the Python-ideas mailing list