#9262: Memory leak in django.utils.version.get_svn_revision ------------------------------------+--------------------------------------- Reporter: semenov | Owner: nobody Status: closed | Milestone: Component: Uncategorized | Version: SVN Resolution: invalid | Keywords: Stage: Unreviewed | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ------------------------------------+--------------------------------------- Changes (by Daniel Pope <[EMAIL PROTECTED]>):
* status: new => closed * needs_better_patch: => 0 * resolution: => invalid * needs_tests: => 0 * needs_docs: => 0 Comment: Python files are automatically closed when the reference count drops to zero, which happens immediately in this case. For example: {{{ >>> import os >>> f = open('foo') >>> f.fileno() 3 >>> os.fstat(3) (33188, 4672869, 65024L, 1, 1000, 1000, 5111, 1222865095, 1217326625, 1217326625) >>> del f >>> os.fstat(3) Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: [Errno 9] Bad file descriptor }}} -- Ticket URL: <http://code.djangoproject.com/ticket/9262#comment:1> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@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-updates?hl=en -~----------~----~----~----~------~----~------~--~---