Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65682

Re: What is the most pythonic way to build up large strings?

From Dave Angel <davea@davea.name>
Subject Re: What is the most pythonic way to build up large strings?
Date 2014-02-08 09:25 -0500
Organization news.gmane.org
References <fd73769f-b291-4543-82a3-872451f67342@googlegroups.com> <3157d511-48d1-4e4d-be4c-2c461fc17466@googlegroups.com> <a5821cca-65f7-4d51-824a-16abb2edf573@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.6541.1391869337.18130.python-list@python.org> (permalink)

Show all headers | View raw


 cstrutton11@gmail.com Wrote in message:

> 
> I didn't realize I could use formatting with triple quoted strings.  I will look into that.
> 


You probably realize this,  but formatting does not work on
 literals of any kind. It works on str objects,  which can be
 created by any kind of literal, or by concatenation,  or by
 conversion, or by I/O,  or ...

So all 16 (?) variants of string literals may be used.
-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

What is the most pythonic way to build up large strings? cstrutton11@gmail.com - 2014-02-07 23:41 -0800
  Re: What is the most pythonic way to build up large strings? Asaf Las <roegltd@gmail.com> - 2014-02-08 00:13 -0800
    Re: What is the most pythonic way to build up large strings? cstrutton11@gmail.com - 2014-02-08 01:56 -0800
      Re: What is the most pythonic way to build up large strings? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-02-08 11:06 +0000
      Re: What is the most pythonic way to build up large strings? Asaf Las <roegltd@gmail.com> - 2014-02-08 03:28 -0800
        Re: What is the most pythonic way to build up large strings? Rustom Mody <rustompmody@gmail.com> - 2014-02-08 04:33 -0800
    Re: What is the most pythonic way to build up large strings? cstrutton11@gmail.com - 2014-02-08 02:11 -0800
      Re: What is the most pythonic way to build up large strings? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-08 13:34 +0000
  Re: What is the most pythonic way to build up large strings? Rustom Mody <rustompmody@gmail.com> - 2014-02-08 00:35 -0800
    Re: What is the most pythonic way to build up large strings? cstrutton11@gmail.com - 2014-02-08 01:51 -0800
      Re: What is the most pythonic way to build up large strings? Dave Angel <davea@davea.name> - 2014-02-08 09:25 -0500
    Re: What is the most pythonic way to build up large strings? Roy Smith <roy@panix.com> - 2014-02-08 07:15 -0500
    Re: What is the most pythonic way to build up large strings? "Eric S. Johansson" <esj@harvee.org> - 2014-02-08 09:42 -0500
  Re: What is the most pythonic way to build up large strings? Peter Otten <__peter__@web.de> - 2014-02-08 09:51 +0100

csiph-web