Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92351 > unrolled thread
| Started by | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| First post | 2015-06-08 23:20 +0100 |
| Last post | 2015-06-08 23:20 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Cheat sheet for the new string formatting? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-08 23:20 +0100
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2015-06-08 23:20 +0100 |
| Subject | Re: Cheat sheet for the new string formatting? |
| Message-ID | <mailman.306.1433802033.13271.python-list@python.org> |
On 08/06/2015 21:05, Steven K Knight wrote:
>
>
> June 8 2015 3:11 PM, "Skip Montanaro" <skip.montanaro@gmail.com
> <mailto:%22Skip%20Montanaro%22%20<skip.montanaro@gmail.com>>> wrote:
>
> I have so far ignored the new string formatting (you know, the stuff
> with all the braces, dots and brackets that make Python strings look
> like Perl code <wink>). I am still only using Python 2.7, but have
> recently started forcing myself to use the print() function. I
> figure maybe I should also start to come to grips with the fancy new
> string formatting.
>
> Is there a cheat sheet around which shows some side-by-side examples
> of the {}-style and printf-style? I didn't see anything with a few
> Google searches.
> Thx,
> Skip
>
>
> Hi,
>
> I think http://pyformat.info/ is what you're looking for.
>
> Thanks,
>
> --
> Steven Knight <steven@knight.cx <mailto:steven@knight.cx>>
>
Many thanks for the link, just what the doctor ordered :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
Back to top | Article view | comp.lang.python
csiph-web