pganssle Profile Banner
Paul Ganssle Profile
Paul Ganssle

@pganssle

Followers
2K
Following
15K
Media
310
Statuses
6K

Programmer working @Google in NYC. Maintainer of python-dateutil, Python core developer and general FOSS contributor. Fediverse: @[email protected]

Boston, MA, USA
Joined June 2015
Don't wanna be here? Send us removal request.
@pganssle
Paul Ganssle
3 months
Though I will admit that there are also NO OTHER REASONS for putting lazy imports in a context manager. It's just the backwards compatibility use case and no others. #python
0
0
0
@pganssle
Paul Ganssle
3 months
I further contend that other than `contextlib.suppress`, there is no other situation where lazy imports in a context manager could be dangerous. #python
1
0
0
@pganssle
Paul Ganssle
3 months
*Ahem* I hereby affirmatively state that the ONLY ergonomic way to functionally backport lazy imports would be to use a context manager. Even a *genius* could not come up with a better way. #python
1
0
0
@roguelynn
Lynn Root
2 years
While I’ve hosted lightning talks at #PyConUS before, I’ve finally given one today! Enforce documentation coverage with `interrogate`! It’s got a cute logo 😍🦥 https://t.co/vFnfck5cW9
0
4
30
@gvanrossum
Guido van Rossum
2 years
Dear #pycon presenters. Here are my accessibility requests for next year. 1. No colorized code on black backgrounds. Blue or purple or gray is really hard to read. 2. Use large text please. I cannot read your regular terminal font. PLEASE.
15
67
565
@llanga
Łukasz Langa moved to 🦋
2 years
Hey, do you know the @ThePSF is hiring for a full-time position called the Deputy CPython Developer in Residence? It's a special role where you'd work with me and the rest of the core team on directly shaping the future of #Python. Want to know more? https://t.co/gA3dPUt6o9
Tweet card summary image
lukasz.langa.pl
There is a job opening for the Deputy CPython Developer in Residence. You should consider it, it’s an adventure of a lifetime!
0
49
116
@pganssle
Paul Ganssle
3 years
I tried looking for an labs at Harvard and MIT, but I am not seeing any researchers there doing work that seems like it would need research subjects.
1
0
0
@chrisdc77
Chris Chambers
3 years
A perfect illustration of why clinical trial registration needs an upgrade to a full #RegisteredReports model. @RegReports There are some logistical challenges, but they are solvable. The alternative is this👇 cc @eturnermd1
@BrianNosek
Brian Nosek (@[email protected])
3 years
19% of 755 phase 3 cancer trials had changes to the primary end points in the paper compared to the registration. 70% of those were not disclosed in the paper. Changes were associated with likelihood of a positive outcome (OR=1.86). https://t.co/5Jh9qWyGmb
0
15
24
@pganssle
Paul Ganssle
3 years
Long shot, but anyone with Android / Android Auto experience know what's going on here? https://t.co/MhmBh4i01a #android #auto #androidauto
0
1
0
@pganssle
Paul Ganssle
3 years
Carter's has this shirt for kids, but I can't find an adult version anywhere. Trying to tell Amazon or a search engine that it's important that the shirt have all three colors (much less in a specific order) seems impossible.
0
0
0
@pganssle
Paul Ganssle
3 years
One day I hope ML technology advances to the point that I can describe a shirt and find out if someone is selling something like it.
1
0
0
@pypi
Python Package Index
3 years
PEP 658 has finally landed on PyPI! Wheels uploaded as of about 15 minutes ago now have the appropriate information served from the simple APIs, and METADATA files available on https://t.co/hVzzMojVbA.
2
16
71
@kingal
Al King
3 years
This is great
@pganssle
Paul Ganssle
3 years
Attractive nuisances in software design: https://t.co/5HokP2j1WN A common anti-pattern where a problem has a solution that is obvious, intuitive and wrong. #python #programming
0
1
2
@pganssle
Paul Ganssle
3 years
It's relatively easy to make a drop-in replacement for these, but also we're deprecating them because they're conceptually the wrong thing to do, so it's best to migrate to using aware datetimes if possible:
blog.ganssle.io
A public service announcement about the dangers of utcnow and utcfromtimestamp and the benefits of using their replacements.
1
0
3
@pganssle
Paul Ganssle
3 years
datetime.utcnow and datetime.utcfromtimestamp will be deprecated in #python 3.12: https://t.co/MdwgRgw5qp If you maintain a package, now is probably a good time to grep your source code for utcnow and utcfromtimestamp to get out ahead of the deprecation warnings. 📅🕐
Tweet card summary image
github.com
Feature or enhancement Previously, we have documented that utcnow and utcfromtimestamp should not be used, but we didn't go so far as to actually deprecate them, and I wrote a whole article abo...
1
9
26
@pganssle
Paul Ganssle
3 years
Bugs like `dt.replace(year=dt.year + 1)`, code that works with ordinal day-of-year, etc.
0
0
0
@pganssle
Paul Ganssle
3 years
Psst. Next year is a leap year. Depending on your deployment story, now (or 3 months ago😅) might be a good time to start looking into logic that won't handle leap years correctly.
2
0
3
@pganssle
Paul Ganssle
3 years
#matrix isn’t great, but it’s a darn sight better than this.
1
0
0
@pganssle
Paul Ganssle
3 years
"Oh I need to communicate with someone on Discord quickly, guess I’ll launch it. Oh, there’s an update available, so Discord prevents me from opening their application." Reason #215 to avoid #discord.
2
0
4