leaves tmp files behind

Bug #987534 reported by Yaroslav Halchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
High
Andreas Roehler

Bug Description

not sure if related to my failure to get completions running (probably not) but
my /tmp is getting slowly filled up with files like py11046IoE e.g. below, wouldn't it be possible to clean up upon exit or whenever this particular one is not in need any longer?

$> cat py18840AUq
def __PYDOC_get_help(obj):
    try:
        import inspect
        if hasattr(obj, 'startswith'):
            obj = eval(obj, globals())
        doc = inspect.getdoc(obj)
        if not doc and callable(obj):
            target = None
            if inspect.isclass(obj) and hasattr(obj, '__init__'):
                target = obj.__init__
                objtype = 'class'
            else:
                target = obj
                objtype = 'def'
            if target:
                args = inspect.formatargspec(
                    *inspect.getargspec(target)
                )
                name = obj.__name__
                doc = '{objtype} {name}{args}'.format(
                    objtype=objtype, name=name, args=args
                )
        else:
            doc = doc.splitlines()[0]
    except:
        doc = ''
    try:
        exec('print doc')
    except SyntaxError:

Changed in python-mode:
importance: Undecided → High
assignee: nobody → Andreas Roehler (a-roehler)
status: New → Confirmed
milestone: none → 6.1.0
Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 987534] [NEW] leaves tmp files behind

Am 23.04.2012 23:35, schrieb Yaroslav Halchenko:
> Public bug reported:
>
> not sure if related to my failure to get completions running (probably not) but
> my /tmp is getting slowly filled up with files like py11046IoE e.g. below, wouldn't it be possible to clean up upon exit or whenever this particular one is not in need any longer?

Hi Yarolav,

do you get this still?

BTW assume it related to Python3 completions.

Cheers,

Andreas

Revision history for this message
Andreas Roehler (a-roehler) wrote :

please re-open if not done

Changed in python-mode:
status: Confirmed → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.