#10440: attribute vs. method call
-------------------+--------------------------------------------------------
 Reporter:  rihad  |       Owner:  nobody    
   Status:  new    |   Milestone:            
Component:  Forms  |     Version:  SVN       
 Keywords:         |       Stage:  Unreviewed
Has_patch:  0      |  
-------------------+--------------------------------------------------------
 A quick suggestion:

 Taken from http://www.djangobook.com/en/2.0/chapter07/
 {{{
 >>> f = ContactForm({'subject': 'Hello', 'email': '[email protected]',
 'message': 'Nice site!'})
 """
 >>> f.is_bound
 True
 >>> f.is_valid()
 True
 """
 }}}
 Why not hide internal details of the implementation by making all such
 calls either attributes/properties (cooler IMHO) or method calls?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10440>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to