Show newer

Trying to write a subinterpreter-compatible, subclassable Python C extension type that stores data on the class itself.

Why was "coronavirus disease" shortened to "COVID" and not "CORVID"? I suspect the influence of Big Crow.

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.

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.

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/

People who use Beautiful Soup for #Python screenscraping and various data projects:

groups.google.com/forum/?fromg

groups.google.com/forum/?fromg

On the upcoming sunset of Python 2 support, and of Beautiful Soup's 3.x series (switch to bs4)

Show older
Qoto Mastodon

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