On Thursday 28 May 2009 17:53:08 AF wrote: > On May 27, 9:26 pm, Mark Ramm <[email protected]> wrote: > > There should not be modules loaded that will never be used, but > > sometimes you may not reallize where they are used in a default > > install or by one of our components ;) > > > > Many of the modules you see loaded are part of the python standard > > library. > > > > IF there are libraries that are not needed by most folks, and we can > > make them optional we will do that, but rather than spend a lot of > > time on that (I don't much need to reclaim every last possible kb of > > memory) I expect that we'll continue making things faster, adding > > features, and working on improving what we have. > > My question was not TG specific... so perhaps I should ask it on a > more general mailing list. > > (What is the idiomatic python way to determine exactly what modules > are needed include/exclude them. )
Use pylint. But this only goes so far. As I already said, the high dynamicity of python allows for imports being triggered e.g. through entry-points - things pylint won't notice. Diez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

