
Hello, On Mon, 20 Jul 2015 02:31:31 +0100 Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
On 20/07/2015 00:59, Paul Sokolovsky wrote:
Hello,
On Sun, 19 Jul 2015 16:35:01 -0700 Mike Miller <python-ideas@mgmiller.net> wrote:
[]
csstext += f'{nl}{key}{space}{{{nl}'
An "f-formatted" string could automatically format with the locals dict. Not yet sure about globals, and unicode only suggested for now.
"Not sure" sounds convincing. Deal - let's keep being explicit rather than implicit. Brevity?
def _(fmt, dict): return fmt.format(**dict) __ = globals() ___ = locals()
foo = 42
_("{foo}", __())
If that's not terse enough, you can take Python3, and go thru Unicode planes looking for funky-looking letters, then you hopefully can reduce to
.("{foo}", .())
Where dots aren't dots, but funky-looking letters.
Good grief, April 1st already?
Why, the original poster referered to bash and perl as inspiration, so certainly he was asking for something which would confuse people? -- Best regards, Paul mailto:pmiscml@gmail.com