News for hackers. Stuff that matters.
Re:Say “no” to import side‐effects in Python by halostatue on Sunday April 06, 2014 @10:47AM (#7541108)
Thinking about it, I do the same thing with my Ruby library mime-types[1]. The library is only useful if you load some data into its registry, so it does so automatically, unless you specify RUBY_MIME_TYPES_LAZY_LOAD in the environment.

I've just put myself a task to reverse the behaviour so that lazy loading is the default.

[1] https://github.com/halostatue/mime-types

There are no comments on this comment yet.