Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64045

Re: data validation when creating an object

From Terry Reedy <tjreedy@udel.edu>
Subject Re: data validation when creating an object
Date 2014-01-15 22:46 -0500
References <CAOF-KfigMrCKz+O9_o6C+PBk6OB8hjOkUTWPW9PLfpobYO_kTw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.5565.1389844030.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 1/15/2014 8:09 PM, Rita wrote:

> I know its frowned upon to do work in the __init__() method and only
> declarations should be there.

Dear Python beginners:

Don't believe the Python rules people write unless it is by one of the 
core developers or one of the other experts posting here. Even then, be 
skeptical. Even these people disagree on some guidelines.

PS. The basic guideline is that your program should work correctly, and 
some people have disputed even that ;-)

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: data validation when creating an object Terry Reedy <tjreedy@udel.edu> - 2014-01-15 22:46 -0500

csiph-web