On Tue, Dec 19, 2017 at 8:47 AM, Stephen J. Turnbull <
[email protected]> wrote:
> I don't see any reason not to document tips and tricks with f-strings,
> and this is a nice and useful example. But it looks like TOOWTDI to
> me. The syntax is documented (6.1.3.1 in the Library Reference),
> along with a specific relevant example ("Aligning the text and
> specifying a width" in 6.1.3.2).
>
> So -1 on putting the recipe in the reference docs. I really don't
> think this kind of information belongs in a PEP for sure, and probably
> not even in the Library Reference.
The docs (and I think PEP) have been updated to clearly state that
f-strings use the same formatting specifiers as .format(), and have links
to those docs.
So I think we're good.
> The Tutorial might be a good place
> for it, though.
>
yup.
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[email protected]
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com