Best way to print a module?
Tim Roberts
timr at probo.com
Mon Sep 5 16:07:15 EDT 2011
More information about the Python-list mailing list
Mon Sep 5 16:07:15 EDT 2011
- Previous message (by thread): Best way to print a module?
- Next message (by thread): Best way to print a module?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin De Kauwe <mdekauwe at gmail.com> wrote: > >If I wanted to print an entire module, skipping the attributes >starting with "__" is there an *optimal* way? Your question is somewhat ambiguous. When I read "print an entire module", I assumed you were asking for a way to print the source code, perhaps with syntax coloring. Surely there is no reason to have an "optimal" method of doing this -- this is never going to be in an inner loop. If you have a method that works, there is little justification to optimize... -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc.
- Previous message (by thread): Best way to print a module?
- Next message (by thread): Best way to print a module?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list