Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adamchainz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
adamchainz
9mo ago
OP here. Thanks. Yeah, profilers are very varied in Python, and none are super easy. I often use either cProfile + pstats (per this post: https://adamj.eu/tech/2025/05/20/python-quick-cprofile-recip... ),
2.
▲
by
adamchainz
9mo ago
Oh cool! Do you have any code for that? Sounds super useful for projects like Django…
3.
▲
by
adamchainz
10mo ago
django-tasks is the reference implementation for django.tasks, by the same author. It's up for discussion if and when the DatabaseBackend gets merged, and it seems likely to me that a Redis-based backend would be suggested at some poin
4.
▲
by
adamchainz
10mo ago
OP here, thanks for the praise! Yeah, I mentioned Celery due to its popularity, no other reason ;)
5.
▲
by
adamchainz
3y ago
Yeah, that is odd. Python still has no immutable dict type, except it kinda does: https://adamj.eu/tech/2022/01/05/how-to-make-immutable-dict-...
6.
▲
by
adamchainz
3y ago
Within the function, args is a tuple, as your output demonstrates.
7.
▲
by
adamchainz
5y ago
Unfortunately that prevents Mypy from loading the type hints for 'markdown' from types import ModuleType markdown: ModuleType | None try: import markdown # type: ignore [no-redef] except ImportError:
8.
▲
by
adamchainz
5y ago
Ah yes, nice hint that backports can use sys.version_info.
9.
▲
by
adamchainz
5y ago
It will work but Mypy won't know to use the type hints for the markdown module.
10.
▲
2nd Edition of Data Science at the Command Line Released (Free)
(datascienceatthecommandline.com)
6 points
by
adamchainz
5y ago
|
1 comments
11.
▲
by
adamchainz
5y ago
Here’s my post summarizing new testing features in Django 4.0: https://adamj.eu/tech/2021/09/28/new-testing-features-in-dja...
12.
▲
by
adamchainz
6y ago
Great news. Have been watching for a while and looking forward to using it now that it's fully released.
13.
▲
by
adamchainz
7y ago
Awesome, basically a free book chapter. Will definitely fire up the notebook and give this a try.
14.
▲
by
adamchainz
8y ago
I learnt a lot from the book Data Science at the Command Line, now free and online at https://www.datascienceatthecommandline.com/
15.
▲
Upgrading to Python 3 with Zero Downtime
(tech.yplanapp.com)
2 points
by
adamchainz
10y ago
|
0 comments
16.
▲
Deploying Amazon Lambda Functions with Ansible
(tech.yplanapp.com)
5 points
by
adamchainz
10y ago
|
0 comments
17.
▲
Show HN: Python function patching (not monkey patching, actual patch-patching)
(github.com)
6 points
by
adamchainz
11y ago
|
1 comments
18.
▲
Building a Better DatabaseCache for Django on MySQL
(adamj.eu)
2 points
by
adamchainz
11y ago
|
0 comments