Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > warning for unused packages/modules/objects

Reply
Thread Tools

warning for unused packages/modules/objects

 
 
Daniel Fetchinson
Guest
Posts: n/a
 
      06-27-2008
How difficult would it be to implement a system in python that would
warn if there are unnecessarily imported packages/modules/objects in
the code? I mean that when developing some code one frequently imports
stuff, deletes the import, changes stuff here and there, imports other
stuff, later decides to change things and consequently delete the line
with the import, etc, etc. As a result there can stay
packages/modules/objects that are in the end not used. It would be
great if python would issue a warning once the program finishes.

Cheers,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get rid of unused parameter warning? Rui Maciel C++ 14 10-01-2010 08:34 AM
Re: best way to suppress "unused" warning? Antoninus Twink C Programming 6 04-29-2008 09:05 AM
Re: best way to suppress "unused" warning? fred.l.kleinschmidt@boeing.com C Programming 0 04-25-2008 04:12 PM
Warning about unused lexical variables Peter J. Holzer Perl Misc 5 09-07-2007 02:54 PM
Warning: WARNING Charles Computer Support 7 08-16-2005 09:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57