interview with Peter Wang
#python
17 links · 2009–2022
talk by Robert Smallshire
called viridis
talk by Kenneth Reitz
“determines what the most important colors used in your image are, and if one of them is a background color”
“In Requests, you’ll be able to mount external services to the routing mechanism by mocking HTTP. To Requests, it’ll be an HTTP Service, but in reality the service could be anything: a random number generator, ZeroMQ socket, proxy, WSGI application, &c.”
talk by Simon Willison
talk by Kenneth Reitz
“The maps are immutable, immortal and reused as much as possible. This means, that two instances of the same class with the same set of attributes will have the same map. This also means that the memory the map itself uses is not too important, because it will potentially be amortized over many instances.”
“[…] importing a submodule will actually modify the parent module’s
namespace. […] This happens even if you do not get an explicit
reference to x, eg if you do import x.y as t
.”
Ingenious example in “Guideline: Use mock objects …”.
“An alternative to Python’s dir
function.
Easy to type; easy to read! For humans only.”
can miss so many things when afk to make a tea
can save you a few hours