Post ARdN2oMRkYhCfIrHG4 by arclight@mastodon.social
(DIR) More posts by arclight@mastodon.social
(DIR) Post #ARdN2mrDLC7Q09EowC by arclight@mastodon.social
2023-01-13T17:03:35Z
0 likes, 0 repeats
"Loving" Python today.`from datetime import datetime please datetime import datetime the datetime goddamn datetime datetime datetime module datetime`
(DIR) Post #ARdN2nSR6ntPraeXxI by pdebuyl@fediscience.org
2023-01-14T09:52:36Z
0 likes, 0 repeats
@arclight @dabeaz wrote a book that might interest you: http://dabeaz.com/python-distilled/index.html . It is about using "the good part" as far as In understand it. It is on my "to read" list 🙂
(DIR) Post #ARdN2nrFcXk56YGMdM by dabeaz@mastodon.social
2023-01-14T11:26:02Z
0 likes, 0 repeats
@pdebuyl @arclight Of course, you realize that by covering "the good parts", the book says nothing about datetime.
(DIR) Post #ARdN2oMRkYhCfIrHG4 by arclight@mastodon.social
2023-01-13T17:07:56Z
0 likes, 0 repeats
pathlib is giving me fits. Apparently oldpath.rename(newpath) requires some sort of goat sacrifice if newpath is just oldpath with its suffix changed via oldpath.with_suffix('.whatever')Maybe Python redefines the word "rename" and I'm just not Pythonic enough to be let in on the secret. Hell, they did it with "range". "range" apparently means "iterator" now.It is what it is. :/
(DIR) Post #ARdN2plIXeAX0fUddI by arclight@mastodon.social
2023-01-13T17:27:23Z
0 likes, 0 repeats
"Oh gosh! You must be an Old, trying to use datetime. Everyone knows you're supposed to use OverripeAubergine from the CantileveredBurlap framework instead"Because the Python way is to name modules the same way Sherwin Williams names paint colors.That's not "Blue", it's "Cyanotic Vagrant"...
(DIR) Post #ARdN2rCdBVcvTjHysK by arclight@mastodon.social
2023-01-13T17:49:52Z
0 likes, 0 repeats
It's helpful to read through the Zen of Python periodically. Every time I do, I understand more and more why I feel alienated by design decisions, practices, values, and aspects of the community. High level docs like that reinforce that the maintainers' values are often diametrically opposed to my own. You can't and shouldn't ignore that.