News for hackers. Stuff that matters.
Re:WTFPython – Understanding Python through surprising snippets by kraf on Monday December 23, 2019 @03:39AM (#21862279)
Maybe "beautifully designed" is a bit much then

In my experience Python is not very nice to work with. I do like the ecosystem for data science though, it's just amazing how much there is. Hopefully the language will grow into something better now that the dictator stepped down.

Re:WTFPython – Understanding Python through surprising snippets by CallocRoast on Monday December 23, 2019 @04:15AM (#21862394)
Second this. I can’t understand finding Python beautiful or even elegant. It just took a hodgepodge of features from languages like Haskell and C++, and repackaged them clumsily. It’s good for writing short scripts and throw-away code, but it shouldn’t be used as a serious programming language.
Re:WTFPython – Understanding Python through surprising snippets by FartyMcFarter on Monday December 23, 2019 @03:55AM (#21862320)
Fixings a lot of the WTFs requires breaking backwards compatibility.

Given how long it took to transition to Python 3 and how painful the transition was, I'm not sure people will have the appetite or patience for this anytime soon.

Re:WTFPython – Understanding Python through surprising snippets by varelaz on Monday December 23, 2019 @04:06AM (#21862349)
A lot of them worked that way or similar in Python 2 and basically they are not a bugs, but optimization or just language design decision.
Re:WTFPython – Understanding Python through surprising snippets by ezzzzz on Monday December 23, 2019 @11:15AM (#21864606)
Yeah, I'm relatively new to Python as a JVM dev, but am finding myself (accidentally) in the realm of Data Science/Engineering and am looking to Python as opposed to Scala simply due to better Libraries. I do like that Python is really easy to be productive in, but the challenges of scale I guess will be learned as our team gains experience.
Re:WTFPython – Understanding Python through surprising snippets by shpongled on Tuesday December 24, 2019 @12:18AM (#21870063)
I try to keep my data science work in Python limited to short scripts for reading a csv and then making some matplotlib figures. I personally find it unsuitable for anything beyond that