On Nov 20, 2007 2:22 PM, Nader <[EMAIL PROTECTED]> wrote: > If I use the "python manage.py shell" to go to shell, I got the next > message: > > _builtin__.exit += _exit > TypeError: unsupported operand type(s) for +=: 'Quitter' and 'str' > > It is actually part of error. > Some idea what the problem is?
I'm not sure what exactly you're trying to do here, but I'll hazard a guess as to what the "problem" is. Prior to Python 2.5, __builtin__.exit was a string containing something like "Use Ctrl-Z plus Return to exit." (on Windows anyway). In Python 2.5, __built__.exit is a class, which exits the interpreter, when called. So the following line was invalid under Python 2.4, but became possible with Python 2.5. >>> exit() It looks like you're relying on __builtin__.exit being a string, which is no longer the case if you recently upgraded to Python 2.5. -Gul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---