Hi,
I have started a project to move the parsing off-strings to the parser and
the grammar. Appart
from some maintenance improvements (we can drop a considerable amount of
hand-written code),
there are some interesting things we **could** (emphasis on could) get out
of this and I wanted
to discuss
Eric Fahlgren writes:
> On Tue, Dec 19, 2017 at 8:47 AM, Stephen J. Turnbull <
> turnbull.stephen...@u.tsukuba.ac.jp> wrote:
>
> > If I were Bach, I'd compose a more-itertools-like module to be named
> > Variations_on_the_F_String. :-)
> >
>
> Would that be P.D.Q. Bach to whom you are ref
On Tue, Dec 19, 2017 at 8:47 AM, Stephen J. Turnbull <
turnbull.stephen...@u.tsukuba.ac.jp> wrote:
> If I were Bach, I'd compose a more-itertools-like module to be named
> Variations_on_the_F_String. :-)
>
Would that be P.D.Q. Bach to whom you are referring?
On Tue, Dec 19, 2017 at 8:47 AM, Stephen J. Turnbull <
turnbull.stephen...@u.tsukuba.ac.jp> 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
Mariatta Wijaya writes:
> I agree it's useful info :)
>
> I went ahead and made a PR [1].
> In my PR, I simply linked to the Format Specification Mini Language[2] from
> f-strings documentation[3].
>
> Not sure about updating PEP 498 at this point..
I don't see any reason not to document
f you.
Kind regards,
Wagner Herculano.
From: Chris Barker - NOAA Federal
Sent: Friday, December 15, 2017 2:49:08 PM
To: Mariatta Wijaya
Cc: Wagner Herculano; Python Dev
Subject: Re: [Python-Dev] f-strings
That's covered under "format specifiers" I t
On Fri, Dec 15, 2017 at 9:39 AM, Mariatta Wijaya
wrote:
> I agree it's useful info :)
>
> I went ahead and made a PR [1].
>
Thanks! I added a couple comments to that PR.
> Not sure about updating PEP 498 at this point..
>
A little clarification text would be nice. I made a PR for that:
https
I agree it's useful info :)
I went ahead and made a PR [1].
In my PR, I simply linked to the Format Specification Mini Language[2] from
f-strings documentation[3].
Not sure about updating PEP 498 at this point..
[1] https://github.com/python/cpython/pull/4888
[2] https://docs.python.org/3.6/lib
That's covered under "format specifiers" I think.
The PEP mentions this:
https://www.python.org/dev/peps/pep-0498/#format-specifiers
I can see how a newbie might not realize that that means that f-strings use
the same formatting language as the .format() method, and or where to find
documentation
That's covered under "format specifiers" I think.
The PEP mentions this:
https://www.python.org/dev/peps/pep-0498/#format-specifiers
That specific example is not mentioned in the docs, but there other
examples of using format specifiers with f-strings.
https://docs.python.org/3/reference/lexical_a
Good evening,
I'm Wagner Herculano from Brazil.
I was trying to do a table exercise with number 5 and tried formatting spaces
and did not find it in PEP 498 documentation.
Finally I found a way, if possible, include this example in the documentation
please.
Below is my script with the desired fo
11 matches
Mail list logo