News for hackers. Stuff that matters.
Re:A ChatGPT mistake cost us $10k by spamizbad on Sunday June 09, 2024 @09:25PM (#40629197)
Ah, but it’s not a characteristic of SQLAlchemy tho. It’s how Python evaluates statements. Both Peewee and the Django ORM work on the same principle with default values.

The intent is to pass a callable, not to call a function and populate an argument with what it returns.

Re:A ChatGPT mistake cost us $10k by SmellTheGlove on Sunday June 09, 2024 @10:31PM (#40629569)
Correct, it's not specific to sqlalchemy - I'm just saying I notice this a lot with sqlalchemy. Probably because it was the first significant bug I had to figure out how to fix when I introduced it in one of my first apps. I guess we never forget the first time we shot ourselves in the foot.