I could not manage to make py-cleanup-temporary work

I've been using emacs and python-mode for my python programs for several years now.

When I updated my python-mode.el with the latest version, I found it quite inconvenient to have the python shell executed each time I did 'C-c C-c'. Hopefully I found out that the "v5-mode" had been developed and I could reproduce the behaviour I liked :) Thanks very much for this btw :)

But then, I found quite disturbing to have all these temporary files in my "buffer list". With the latest revision of python-mode.el (1149), I found there was a function named py-cleanup-temporary but that does not seem to work ? (I checked that the default value is t). In my "buffer list" I still have all these /tmp/python-3906kfw.py

From revision 1149 I just changed the following lines :

(defcustom python-mode-v5-behavior-p t ...

(defvar python-mode-v5-behavior t)

Is there anything I missed here ?

Also, I'm sorry to point out so many problems with this great tool, but why would we want to change the current directory ? I found the following line :

I must confess that I changed [Jj] to [PpJj] to disable this.
I personnally find the fact that 'C-c C-c' modifies the python file kind of disturbing ...
Because I'm used to considering 'C-c C-c' as a very convenient shortcut for 'M-x shell; python MY_FILE.py' (so with the cwd being the source file directory)

Related FAQ:

I've been using emacs and python-mode for my python programs for several years now.

When I updated my python-mode.el with the latest version, I found it quite inconvenient to have the python shell executed each time I did 'C-c C-c'. Hopefully I found out that the "v5-mode" had been developed and I could reproduce the behaviour I liked :) Thanks very much for this btw :)

But then, I found quite disturbing to have all these temporary files in my "buffer list". With the latest revision of python-mode.el (1149), I found there was a function named py-cleanup-temporary but that does not seem to work ? (I checked that the default value is t). In my "buffer list" I still have all these /tmp/python-3906kfw.py

From revision 1149 I just changed the following lines :

(defcustom python-mode-v5-behavior-p t ...

(defvar python-mode-v5-behavior t)

Is there anything I missed here ?

Also, I'm sorry to point out so many problems with this great tool, but why would we want to change the current directory ? I found the following line :

I must confess that I changed [Jj] to [PpJj] to disable this.
I personnally find the fact that 'C-c C-c' modifies the python file kind of disturbing ...
Because I'm used to considering 'C-c C-c' as a very convenient shortcut for 'M-x shell; python MY_FILE.py' (so with the cwd being the source file directory)