ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: python development practices?
by Neal Norwitz other posts by this author
Oct 31 2001 5:06PM messages near this date
Re: python development practices? | Re: Interfaces != Multiple Inheritance [was Re: python development practices?]
Peter Wang wrote:
>  
>  On Wed, 31 Oct 2001 16:33:08 +1100, "Darren Collins"
>  <collinda@[...].com> wrote:

>  >If people can see that something is supposed to be private, but they
>  >absolutely need access to it, then they have just discovered an interface
>  >problem. They can either fix the interface or put a quick hack in their code
>  >to to work around it by accessing the 'private' member. But they put in the
>  >hack knowing that they are breaking the original designer's intentions, so
>  >they're on their own. It is nice that you can do this when you really need
>  >to, though.
>  
>  my question, all along, was not whether python works well when used
>  with good development practice.  my question was to discover if there
>  were any "safety nets" that other development teams might have erected
>  for lapses in process.  if there are none, maybe we can think of some.
>  if there are none because none are possible, then that's a different
>  issue.
>  
>  i've been getting a lot of "there aren't any because you need good
>  development practices" answers, which seems equivalent to "this car
>  doesn't have airbags because you should wear your seatbelts".  in the
>  long term this is good because it forces people to wear seatbelts,
>  but it doesn't answer the question about how we save the ones that
>  don't.

I wrote PyChecker (http://pychecker.sf.net) to help alleviate 
some of these problems/concerns.  It can check for potential bugs,
as well as, more stylistic issues (too many lines in a function or
return statements).  In the future, I intend to add a check for accessing
an attribute outside an object.  Many checks of this sort can be added.

Unit testing is a must, but pychecker can help in code that doesn't
get exercised in the tests.

Neal
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Peter Wang
Peter Hansen
Toby Dickenson
Tim Peters
Steve Holden
Steve Holden
Cliff Wells
Tim Peters
Martijn Faassen

Cliff Wells
Cliff Wells
Martijn Faassen
Martijn Faassen
Paul Rubin
Russell E. Owen
Barry A. Warsaw
Martijn Faassen
Peter Wang
Skip Montanaro
John Roth
David Bolen
Peter Wang
Peter Wang
Skip Montanaro
Chris Tavares
Darren Collins
David Bolen
Paul Rubin
Paul Rubin
Peter Wang
F Basegmez
Richard Jones

Richard Jones

Neal Norwitz
Graham Ashton
Peter Wang
Russell E. Owen
Skip Montanaro
Cliff Wells
Hung Jung Lu
Wade Leftwich
Peter Wang
Peter Wang


Peter Wang

Chris Gonnerman
Paul Rubin
Andrew Dalke
Paul Rubin
Luigi Ballabio
Paul Rubin
Tim Peters
John Roth
Paul Rubin
Richard Jones

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved