Show newer

@bitecode That's "not even wrong". pyproject.toml and setup.cfg are complements, not competitors.

It's like saying, "You shouldn't use tires, you should use axles!" They serve entirely different purposes.

74/366 #366Challenge #xp

I read this book this morning. There are a few minor quibbles that I have with it, but otherwise there are a ton of great cases for open borders in here.

Is this a bad time to try to introduce my cool new greeting, the "eye five"?

Possibly naïve question, but with universities moving to online-only classes, what are they doing for "wet" lab classes?

Are they just postponed for a semester? (If such a thing happened in my senior year I think it would have seriously messed up my plans...)

I was vaguely hoping I could get the steering council to accept PEP 615 during a DST transition, but I dawdled too long and it won't be ready tonight.

England doesn't start DST until March 29th, Australia's DST ends April 5th, so I guess those are my new goals.

"Hi, I'm calling to report a leap day bug."
"Great! Where at?"
"Well..."
Comms guy: "Paul... The call, it's coming from *inside the Python documentation*"

docs.python.org/3/library/date

PEP 615: Support for the IANA Time Zone Database in the Standard Library

Now available for discussion!

You can read it here: t.co/n0eDfoOCnS
And you can comment and review it on the discourse thread: t.co/V3jvzkduL5

twitter.com/pganssle/status/12

Here's a for those of you who grind your teeth at night: if you can't find your mouth guard, go to sleep eating a lollipop! The stick will keep your teeth apart!

I haven't checked with a dentist but I'm 99% sure this is sound advice.

@toast That's a good principle, but two problems:

1. I think it's very common to do stuff like `from zoneinfo import ZoneFile`, so it should mostly stand on its own.
2. There are other plausible "files" to read from the /usr/share/zoneinfo - zonetab files, leap seconds files, etc. I won't be supporting any of those in the first release, but it still makes sense to make it clear that it's a time zone.

What is your preferred name for a time zone class that works with the /usr/share/zoneinfo files like America/New_York, etc generated from the IANA database (module name is zoneinfo)?

For the standard library.

Oh boy. Standard library time zone implementation is now passing a lot of tests. Still a bunch of TODO comments and tests to write but I think the API might be close to final.

Looks like it's time to start in on the documentation.😬

Interesting little project: parver, for parsing and manipulating PEP 440 version numbers.

pypi.org/project/parver/
github.com/RazerM/parver

Could be useful if you have scripts to bump your project's version.

The 2020 Python Packaging Summit at is official! It will be held on April 16th, 2020 at the conference venue.

To read the announcement, register to attend, and suggest topics see t.co/f4lQbUQ3qW twitter.com/ThePyPA/status/123

We have ourselves a winner in the 2nd Programming Language World Championships! #plwc2020

Congratulations to Python, which was able to defend its title in a narrow 55 - 45 victory over C.

Third place goes to Rust with a convincing 68 - 32 against Lua.

Thank you to everyone who participated in the polls! See you next year for the third edition!

If the founding fathers had microcontrollers, I firmly believe they would use them to make chiptune music send tweet.

@alexbuzzbee My understanding is there's a "compile everything into a single file" mode, which is what I was referring to.

Though again I sorta think "Here is a wheel install it with pipx then you can run it" or "install this thing in a virtual env and run it" is not that big a deal.

@alexbuzzbee This is more or less how PyInstaller works, though I will say that you are probably way better off using normal packaging and having people either install your scripts with a system installer or pipx or something.

In #python, "and" / "or" don't return True / False, but the first value that confirms for sure the result of the test:

>>> [] or 0
0
>>> [] and 0
[]
>>> "hello" and 1
1
>>> "hello" or 1
'hello'
>>> "hello" or {}
'hello'
>>> "hello" and {}
{}

This works because...

RT @cocoaphony@twitter.com

Periodic Reminder: When debugging, you must first accept that something you believe is true is not true. If everything you believed about this system were true, it would work. It doesn't, so you're wrong about something.

This is a surprisingly common stumbling block for devs.

🐦🔗: twitter.com/cocoaphony/status/

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.