Re: Mutable defaults in Django source

2005-09-17 Thread Adrian Holovaty
On 9/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The problem is Context and DjangoContext, which both have constructors > like this: > def __init__(self, dict={}): > > Here's the problem with that: > http://www.ferg.org/projects/python_gotchas.html#contents_item_6 Thanks for the catch,

Mutable defaults in Django source

2005-09-17 Thread [EMAIL PROTECTED]
Hi all, I'm a new Python programmer, so this one has had me stumped for ages this evening - I thought I was going mad. It turns out it gets a lot of people, (and it is a bug in Django itself), so I don't feel so bad. The problem is Context and DjangoContext, which both have constructors like t

Re: i18n -- DRAFT

2005-09-17 Thread hugo
> I'm currently finishing my first site with django and my i18n > implementation (beta version of the site will be probably published > this week), currently without translated admin interface (I don't > have time to do that for now - deadline is closing :( ), but all > other parts of the site are