Show newer

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/

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)

Just 2.5 months until PyCon. That one... really snuck up on me.

Glad I don't have to prepare a brand new talk and organize a summit... (Oh, wait 😅)

#todayILearned that, when searching in Firefox's tab bar, you can prefix your search with `%` to search exclusively in the titles of open tabs.

Maybe everyone else already knew this, but I didn't—and I have the feeling that it will *dramatically* increase the number of open tabs I have at any given time.

#plaintext email etiquette question:

When I'm replying to a thread with multiple participants, is there a standard way to indicate who I am quoting?

For example, in the exchange below, is there a good/standard way to attribute the first quote to Alice and the second to Bob?

> Foo is better

> Bar is better

I agree with Alice that foo is the way to go.

CC: @sir, resident plaintext email expert/evangelist

Show older
Qoto Mastodon

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