[Python-ideas] Add list.join() please
Jamesie Pic
jpic at yourlabs.org
Wed Jan 30 04:58:54 EST 2019
On Wed, Jan 30, 2019 at 2:45 AM David Mertz <mertz at gnosis.cx> wrote:
> Done! Does that really need to be in the STDLIB?
Well, Robert suggested to define it in the python startup script. The
issue I'm having with that is that it will make my software harder to
distribute: it will require the user to hack their startup script, or
even worse : do it ourself in setup.py !
Jonathan suggested to add it to an external package like strtools that
has a smartsplit() function, but not smartjoin(). So far I have a PR
in boltons, I've requested their comments, so, I'll let you know if
they have a refutation to provide. Otherwise, I will try to submit it
to the strtools package.
Otherwise, I can make a custom package for that one-liner, like it's
fairly common to do in NPM packages. Do you have any suggestions on
the API ? I see that the implode name is available on PyPi, do you
think this would be nice to import the one-liner ?
from implode import implode
Thanks for your reply
--
∞
More information about the Python-ideas
mailing list