Opened 5 years ago

Closed 5 years ago

#10440 closed (wontfix)

attribute vs. method call

Reported by: rihad Owned by: nobody
Component: Forms Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


A quick suggestion:

Taken from

>>> f = ContactForm({'subject': 'Hello', 'email': '', 'message': 'Nice site!'})
>>> f.is_bound
>>> f.is_valid()

Why not hide internal details of the implementation by making all such calls either attributes/properties (cooler IMHO) or method calls?

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

For a start, because backwards-compatibility is requirement.

Methods tend to indicate that there's some non-trivial computation going on the background.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.