News for hackers. Stuff that matters.
Re:Modern Pandas (Part 2): Method Chaining by biellls on Sunday May 01, 2022 @02:27PM (#31227423)
Pattern matching is supported in 3.10 and can match classes structurally, as well as other types (edit: I see that you mean you don't like that it's a statement, which I agree with). The typing system supports structural types with Protocol. Personally what I miss most are multi-line lambdas.
Re:Modern Pandas (Part 2): Method Chaining by mjburgess on Monday May 02, 2022 @06:16AM (#31233240)
I'm not asking for "support" i'm asking for syntax. The question is why the syntax of data processing in python is illegible, not "are things technically possible in python".

Commenters here are keen to say "but dont you know!" -- and, yes, I do.

Re:Modern Pandas (Part 2): Method Chaining by zasdffaa on Monday May 02, 2022 @06:41AM (#31233439)
To be fair the confusion of FP vs FP syntax is from your comment: "Perhaps if python would add more support for FP (rather than its present hostility)"

Python does FP fine and FP via an ugly library or via elegant inbuilt syntax is still FP. I get you want nicer syntax but it wasn't clear.

I dunno, write a PEP and see if it gets support. I hope you succeed!