Post AzddZJaci1CZCgM86y by cfbolz@mastodon.social
(DIR) More posts by cfbolz@mastodon.social
(DIR) Post #Azdc17DM76sx1RbKpk by cfbolz@mastodon.social
2025-10-27T14:37:47Z
0 likes, 0 repeats
too true, random internet poster, too true (and I'm certainly not in that subset for a lot of the newer features)
(DIR) Post #Azdc186enV7ZmxTV20 by DRMacIver@mastodon.social
2025-10-27T14:44:17Z
1 likes, 0 repeats
@cfbolz Every time I learn more about how Python works I get a little sad, so I've mostly decided that it's best if I don't.
(DIR) Post #Azdc18nCFL9HutNTKy by cfbolz@mastodon.social
2025-10-27T14:52:35Z
1 likes, 0 repeats
@DRMacIver
(DIR) Post #Azdc4RTnE0R2k4sN3Q by david_chisnall@infosec.exchange
2025-10-27T14:58:03Z
1 likes, 0 repeats
@cfbolz @DRMacIver I have touched the internals of CPython and it both confirmed and reinforced my existing prejudices about Python. It took me several years after the first time I saw an else clause on a for loop in Python before I found a Python programmer who got the meaning right on their first guess. The reason I know about that construct is that a Python programmer thought they knew what it meant and I had to debug the release version of their program to find out why it wasn't working.
(DIR) Post #AzddRRrQ4efyXSSeXY by synlogic4242@social.vivaldi.net
2025-10-27T15:02:40Z
0 likes, 0 repeats
@cfbolz @DRMacIver Python is well-designed for certain use cases. Terrible for others. I was a lover of it before a hater. ha. Golang is my goto now. No regrets.
(DIR) Post #AzddRSjIqJmHEZfgWm by DRMacIver@mastodon.social
2025-10-27T15:07:45Z
0 likes, 0 repeats
@synlogic4242 @cfbolz I'm still mostly fond of Python, it's just that I'm the sort of fond that when people who know it less well ask me how something works I get a thousand yard stare and then tell them that knowing this information will not make them happy.
(DIR) Post #AzddRTYhlCtVnzijeC by cfbolz@mastodon.social
2025-10-27T15:09:35Z
1 likes, 0 repeats
@DRMacIver @synlogic4242 yeah, bunch of people in the replies are going to value judgements now, but neither "simple" nor "complicated" are easily mappable to "good design" or "bad design"
(DIR) Post #AzddZIOX9Tw9Utgxd2 by whitequark@mastodon.social
2025-10-27T15:00:53Z
0 likes, 0 repeats
@david_chisnall @cfbolz @DRMacIver I've used the else clause a number of times, but my first Python program was a tooling-grade Python parser, so I'm probably an exception here.(My second Python program was a typechecker and compiler for a Python subset with an LLVM backend)
(DIR) Post #AzddZJaci1CZCgM86y by cfbolz@mastodon.social
2025-10-27T15:16:46Z
1 likes, 0 repeats
@whitequark @david_chisnall @DRMacIver yeah, else clause on for loops is an unusual feature or maybe even a quirk, but not really in the list of deep weirdnesses of Python imo
(DIR) Post #AzdizgA7uGgOVlLwi8 by DRMacIver@mastodon.social
2025-10-27T15:14:53Z
0 likes, 0 repeats
@cfbolz @synlogic4242 There are definitely a bunch of features that make me think that surely there was a better design available than this, but tbf I often can't suggest what that better design is.Descriptor protocol is my go to example here.But yeah often the design is complicated because there wasn't a simple way to do the desired thing under the necessary constraints and that was deemed worth it.
(DIR) Post #Azdizhb6ZRrCxiz0Ou by pozorvlak@mathstodon.xyz
2025-10-27T15:20:52Z
0 likes, 0 repeats
@DRMacIver @cfbolz @synlogic4242 I read the docs for the descriptor protocol once, but definitely wouldn't claim to understand it¹. Knowing it existed explained some magic features of libraries I'd used but never really thought about, but I'd happily used Python for years without being aware of it and can't see myself ever wanting to use it.¹ I mean, of course not, to understand it I'd have to at minimum write a bunch of programs using it.
(DIR) Post #AzdizicukCtm9cpxrM by cfbolz@mastodon.social
2025-10-27T15:30:14Z
1 likes, 0 repeats
@pozorvlak @DRMacIver @synlogic4242 yeah, mostly not necessary to understand descriptors, beyond "use @property"there's a bunch of weird corner cases about what happens if an object has eg a `__set__` but not a `__get__` that always feel really arbitrary to me
(DIR) Post #Azdj0an3Mj5w8hzpA0 by DRMacIver@mastodon.social
2025-10-27T15:32:17Z
1 likes, 0 repeats
@cfbolz @pozorvlak @synlogic4242 I definitely have not understood the descriptor protocol at a "knows the arbitrary corner cases" level tbh.