On Tuesday 05 January 2010 00:40:42 Jannis Leidel wrote:

> Maby just an odd idea but what happens if someone monkey patched
>  them as lists (e.g. because the input formats weren't configurable
>  until now)? Would lazy() handle this automatically given list and
>  tuples are both iterables or should we pass an additional
>  resultclass, like
> 
> DEFAULT_DATE_INPUT_FORMATS = lazy(lambda:
>  en_format('DATE_INPUT_FORMATS'), tuple, list)()
>  DEFAULT_TIME_INPUT_FORMATS = lazy(lambda:
>  en_format('TIME_INPUT_FORMATS'), tuple, list)()
>  DEFAULT_DATETIME_INPUT_FORMATS = lazy(lambda:
>  en_format('DATETIME_INPUT_FORMATS'), tuple, list)()

Personally I wouldn't worry about people who are monkey patching - 
they ought to expect things to break. But I don't think this addition 
will harm either.

Luke

-- 
"Love is like an hourglass, with the heart filling up as the brain 
empties."

Luke Plant || http://lukeplant.me.uk/

--

You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.


Reply via email to