#4 pyx leaves lots of files open...

closed
nobody
None
5
2012-10-16
2003-04-29
No

In the spirit of my previous comment/patch (728209), I have found
some other annoyances related to running PyX in an interactive
environment. It fairly wantonly leaves files open in pyx.text,
resulting, after many iterations, in running out of open file slots. The
patch attached fixes this, as far as I can tell, along with avoiding a
DeprecationWarning in Python 2.3 related to changed handling of ints
and longs.

All this does is make sure files are closed as soon as they are not
needed. I doubt that it breaks anything else.

Discussion

  • Marcus Mendenhall

    patch to fix above-described problems

     
  • Marcus Mendenhall

    Logged In: YES
    user_id=470295

    Has anyone looked at this patch, and tried to apply it yet? I
    would really like to see the number of orphaned files reduced.

    thanks.

     
  • Jörg Lehmann

    Jörg Lehmann - 2003-06-05

    Logged In: YES
    user_id=390410

    Sorry for the delay. I have just checked in your fixes. Thanks!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks