On Mon, May 3, 2021 at 1:00 PM David Álvarez Lombardi
wrote:
> > Rather than toy examples, how about scouring the Python standard library
> > for some real examples?
>
> Here are 73 of them that I found by grepping through Lib.
>
>
I really appreciate all the feedback and all of the thought put into this
idea. I wanted to make a couple of comments on some of the responses and
provide my current thoughts on the idea.
--- Responses to comments ---
> *All* others?
>
> Tuple, frozenset, bytes, bytearray, memoryview, enumerate,
On Mon, May 3, 2021 at 9:41 AM Steven D'Aprano wrote:
> I agree with your general observation, but in the specific case of "do
> this to every element of this iterable", I think that's common enough
> that we should consider building it into the mini-languages used by
> format and f-strings.
On Sun, May 02, 2021 at 04:30:38PM -0400, Eric V. Smith wrote:
[I suggested]
> >Better to invent a new format code, which I'm going to spell as 'X' for
> >lack of something better, that maps a format specifier to every
> >element of any iterable (not just generator comprehensions):
> >
> >
I recommend posters read the code-of-conduct at the foot of every email on
this list.
On Sun, May 2, 2021, 3:07 PM Abdur-Rahmaan Janhangeer
wrote:
> Greetings,
>
> I read as far as the 4th sentence:
> "Use it for your next SaaS!" [no link atached] What on earth (I
> wanted to use a
On Sun, 2021-05-02 at 23:07 +0400, Abdur-Rahmaan Janhangeer wrote:
> Oh seems like you are a dinosaur needing some carbon dating.
It seems you need to review the Python Community Code of Conduct:
https://www.python.org/psf/conduct/
Please see the sections regarding being respectful and insults,
On 02/05/2021 20:07, Abdur-Rahmaan Janhangeer wrote:
Oh seems like you are a dinosaur needing some carbon
dating.
Thanks for the insult.
Rob Cliffe
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to
On 5/2/2021 5:44 AM, Steven D'Aprano wrote:
On Sun, May 02, 2021 at 04:09:21AM -, Valentin Berlier wrote:
Let's say i have a matrix of numbers:
matrix = [[randint(7, 50) / randint(1, 3) for _ in range(4)] for _ in range(4)]
I want to format and display each row so that the columns are
Greetings,
I guess the difference is in a 'clean'
look. I kind of find the docs as a reminder of
some legacy software. The docs looks 'old'
I know it's vague and subjective but maybe
this rings with some more people.
Kind Regards,
Abdur-Rahmaan Janhangeer
about
Greetings,
I read as far as the 4th sentence:
"Use it for your next SaaS!" [no link atached] What on earth (I wanted
to use a stronger expression) is an SaaS? I'd never heard of it. OK, Google
told we what it stood for, but I don't feel any the wiser.
Oh seems like you are a dinosaur
I read the entire long description, but admittedly skimmed some. Certainly
90%+ can be done, in almost the same way, with `class Mine(Simple
namespace)`, but I could have missed some corner.
Perhaps highlight that. But I am certain I remain -1, in any event.
On Sun, May 2, 2021, 5:16 AM Matt del
On Sun, May 2, 2021 at 1:47 AM Stephen J. Turnbull <
turnbull.stephen...@u.tsukuba.ac.jp> wrote:
> Jonathan Goble writes:
>
> > I assume the "cpython" part of these paths here is your local clone of
> the
> > CPython GitHub repo? (Otherwise these local filepaths from your computer
> > don't
A further point to Steve's example is that a proxy object like the one he
described would probably have to change its implementation ever so slightly
in order to work as expected in a multi-step lookup involving namespaces
(so that the `wrap` function is only applied to the final value at the
This shouldn't be a problem.
For instance:
class Wrapped:
namespace foo:
bar = True
facade = proxy(Wrapped())
facade.foo.bar # True
Basically, when you try to look up 'foo' on the proxy object, the
'__getattr__' returns the namespace object, which then forwards on the
second
On Sun, May 02, 2021 at 04:09:21AM -, Valentin Berlier wrote:
> Let's say i have a matrix of numbers:
>
> matrix = [[randint(7, 50) / randint(1, 3) for _ in range(4)] for _ in
> range(4)]
>
> I want to format and display each row so that the columns are nicely lined
> up. Maybe also
On Sun, 2 May 2021 at 00:57, Matt del Valle wrote:
> Hi all!
>
> So this is a proposal for a new soft language keyword:
>
> namespace
>
> …
> - any name bound within the namespace block is bound in exactly the same
> way it would be bound if the namespace block were not there, except that
> the
Nope!
I know it's hard to convey tone through text, so I just wanna assure you
I'm not being snarky or whatever.
With that said, I'd ask that you please read through the full proposal
before making assumptions like 'this is exactly the same as
types.SimpleNamespace'. I know it's a bit long
Valentin Berlier writes:
> f"""
> Guest list ({len(people)} people):
> {person.name + '\n' for person in people}
> """
That's nice! It's already (almost[1]) legal syntax, but it prints the
repr of the generator function. This could work, though:
f"""
18 matches
Mail list logo