Possibly a bug in BaseContext

6 views
Skip to first unread message

python2and...@gmail.com

unread,
Apr 17, 2018, 7:14:24 PM4/17/18
to Django users

Maybe this is a bug.


It doesnt make sense this line:

  https://github.com/django/django/blob/master/django/template/context.py#L48


Its creating a ContextDict:

  ContextDict(self, *dicts, **kwargs)


ContextDict inherits directly from dict.  A dictionary only allows one argument. Not more than one argument.


I am not sure whether this "push" method is used in some other place of Django code.


Best regards,

Miguel.

python2and...@gmail.com

unread,
Apr 17, 2018, 7:46:27 PM4/17/18
to Django users
There is also something strange here:


That line "self.update({})" doesnt do nothing. The inherited "update" method from Context class doesnt do nothing extra.

The same here:
Reply all
Reply to author
Forward
0 new messages