#4167: [0.91-bugfixes][patch] FormFields have list-mutability issues with
validator_list argument
-------------------------------------------+--------------------------------
Reporter:  Tom Tobin <[EMAIL PROTECTED]  |       Owner:  adrian        
  Status:  new                             |   Component:  Core framework
 Version:  0.91                            |    Keywords:                
   Stage:  Unreviewed                      |   Has_patch:  1             
-------------------------------------------+--------------------------------
 In `0.91-bugfixes`, `FormFields` have list-mutability issues with the
 `validator_list` argument in their `__init__` methods; since
 `validator_list` has a default of `[]`, that very same list is mutated and
 re-used in future calls with a default value for `validator_list`.  By
 setting the default value to `None` and replacing `None` with `[]` in the
 method body, we avoid this issue.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4167>
Django Code <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