Live data from Hacker News

Python 3.12

python.org

151–160 of 344 posts

Re: Python 3.12

#151
post #74

Ooh, seems there is a new syntax for declaring the types of kwargs [1]: from typing import TypedDict, Unpack class Movie(TypedDict): name: str year: int def foo(*kwargs: Unpack[Movie]): ... Maybe now I'll be able to actually figure out what data to send libraries without actually reading their source code. 1. https://docs.python.org/3.12/whatsnew/3.12.html#pep-692-usin...

> Maybe now I'll be able to actually figure out what data to send libraries without actually reading their source code. One could hope, but any library abusing kwargs in all their methods is showing they’re willing to go through the absolute minimum to make their code usable, let alone readable and self-documenting.

A big use case for kwargs is not breaking compatibility and not having to copy/paste a ton of parameters when just forwarding them. But that's exactly the case which is difficult to type correctly.

Re: Python 3.12

#152
post #119
post #5

Everything aside, I enjoyed the "And now for something completely different" part.

I dislike it because it's kinda hard to understand (can't really say I did) specially without any context, and programming language release notes are something people should read even a hundred years afterwards.

I totally disagree with your opinion. I liked it because I found it easy to read (both in skim and in depth, as well as backwards), didn't require additional context (title was included), and programming release notes capture the historical context of the release (where refugees are subject to extreme NIMBYism in our day and age).

Re: Python 3.12

#153
post #5

Everything aside, I enjoyed the "And now for something completely different" part.

It's so hecking wholesome I started crying. My wife's son came to ask me, "Frank, why you crying?". I had to explain to him there's evil people in this world who oppose open borders.

Making some pretty harsh assumptions about a massive and diverse group of people here.

Re: Python 3.12

#154
post #48

Earlier quoted context omitted.

I don't think this is a political advocacy. It's just a personal expression about a social issue. I found the way it was written quite thoughtful, actually, which I respect (though I don't like in its entirety). But I upvoted your comment because I don't think there's a reason for people to downvote your comment. It's absolutely acceptable that someone dislikes the poem and wants to express it here. People confuse th…

If an upvote is for agreement, does downvoting for disagreement not make sense? Or are upvotes meant for something else?

There needs to be a separate mechanism for disagreement versus quality (affecting ranking). Both of these should be separate from flagging for moderation.

Re: Python 3.12

#155
post #74

Ooh, seems there is a new syntax for declaring the types of kwargs [1]: from typing import TypedDict, Unpack class Movie(TypedDict): name: str year: int def foo(*kwargs: Unpack[Movie]): ... Maybe now I'll be able to actually figure out what data to send libraries without actually reading their source code. 1. https://docs.python.org/3.12/whatsnew/3.12.html#pep-692-usin...

> be able to actually figure out what data to send libraries without actually reading their source code

Just reading this sent a chill down my spine. I have horrible memories of having to read the code to figure out what something was doing (in JavaScript, Python, Ruby, etc), due to the disaster of an anti-feature called dynamic typing having been used.

Re: Python 3.12

#156
post #17

Earlier quoted context omitted.

I don't think it's your authority to say what should or shouldn't belong in a release you have no contribution to!

People are allowed to think things, and say what they think. Just as you did.

So then we're making this about freedom as the central moral aspect. Then what about the freedom of the Python maintainers to post what they want? Why the selective defense?

Re: Python 3.12

#158

Earlier quoted context omitted.

> "Share our food, Share our homes and Share our countries" is quite a big demand on everyone else. I am certainly not willing to do so without limit and without regard to context Neither are a lot of the people who initially advocated for the policies, ie NYC, as we're finding out. Immigration is great. Unfettered illegal immigration is not. It puts pressure on social infrastructure and causes social strife. Look at…

There certainly is an equivalent of NIMBY in Western asylum politics. A lot of Green/Progressive voters in Western Europe live in affluent neighbourhoods where practical effects of current migration waves are very limited, and often positive (e.g. cheap workforce for your household, but your kids' school does not suffer from any gang activity). Voting patterns across income groups tend to reflect that discrepancy.

That seems to misrepresent reality. Generally speaking in all elections that I am aware off, rural regions are leaning right while urban regions are leaning left. In fact in general it seems anti-immigration/foreigner stances are almost anti-proportional to the number of immigrants/foreigners a person might encounter during their day.

Just 2 counter examples (anecdotes but I'm sure a bit of searching will reveal numbers to back this up): the first electorate that directly voted a green candidate Was the Friedrichshain-Kreuzberg electorate in 2002, likely one of the places in Germany with the highest proportion of immigrants (when it was still not gentrified like it is today.). Another anecdote, this map of the French elections https://img.lemde.fr/2022/04/11/0/0/1051/1674/800/0/75/0/869...

Showing that the anti immigration party of le pen is mainly winning in rural areas, and the urban centre of Paris is in fact voting the most left candidate

Re: Python 3.12

#159
post #21

Earlier quoted context omitted.

I despise random politics injections as well, but this is rather tame and very much in line with the ironic spirit of how Python release notes are written. I don't think it's offensive to anybody who doesn't go out of their way to become offended by things.

Would you feel the same way if it were a cutesy poem supporting an opposing view?

That's a meaningless question, because I would never be using software from people promoting the opposing view.

You're all free to stop using Python.

Re: Python 3.12

#160
post #74

Ooh, seems there is a new syntax for declaring the types of kwargs [1]: from typing import TypedDict, Unpack class Movie(TypedDict): name: str year: int def foo(*kwargs: Unpack[Movie]): ... Maybe now I'll be able to actually figure out what data to send libraries without actually reading their source code. 1. https://docs.python.org/3.12/whatsnew/3.12.html#pep-692-usin...

> be able to actually figure out what data to send libraries without actually reading their source code Just reading this sent a chill down my spine. I have horrible memories of having to read the code to figure out what something was doing (in JavaScript, Python, Ruby, etc), due to the disaster of an anti-feature called dynamic typing having been used.

But third party code in Python was easy to read.
Post reply on HN