Take the 2-minute tour ×

this code is in the django.utils.functional.py

class __proxy__(Promise):


share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

"Magic names", ones that start and end with double underscores, are reserved for the language in Python (but the compiler does not enforce that rule at present); Django is violating that rule, or setting itself up as "being the language" -- not a terrible sin, but an unpleasant practice.

share|improve this answer
add comment

It's just a name. And because it starts with _ it's meant to be private to that module.

Why they chose that name? You'll have to ask the developers.

share|improve this answer
add comment

Your Answer


