News for hackers. Stuff that matters.
Re:I'm Switching to Python and Actually Liking It by dumah on Wednesday July 16, 2025 @10:20AM (#44582690)
I’m not sure why you’re comparing __new__ to constructors in other languages.

Ruby has the same thing but it’s called ‘new’.

Implementing the type of customization (idiomatically) that __new__ provides in Kotlin and JS isn’t any cleaner.

There are no comments on this comment yet.