Posts tagged: python

All posts with the tag "python"

Pycon 2023

I don’t want to be an expert python developer.

https://www.youtube.com/watch?v=iKzOBWOHGFE

# Version 1 def newton(f, x0, fprime, maxiter=100): ... # Version 2 def newton(f, x0, fprime, tol=1e-6, maxiter=100): ... # πŸ”΄ Broke in Version 2 newton(f, x0, fprime, 100)

In an alternate timeline the maintainer of newton could have chose to use keyword only arguments to prevent pain for users of libraries, or poor api design due to fear of changing api on users.

1 min read