On 15/08/2016 02:49, Steven D'Aprano wrote: > On Mon, Aug 15, 2016 at 01:05:47AM +0200, Xavier Combelle wrote: >> I have stumbled upon several time with the following problem. >> I delete a module and the .pyc stay around. and by "magic", python still >> use the .pyc > Upgrade to Python 3.2 or better, and the problem will go away. > > In 3.2 and above, the .pyc files are stored in a separate __pycache__ > directory, and are only used if the .py file still exists. > Sorry all about the noise, I knew the existence of __pycache__ for the python version but I totally missed that it solved also the problem the stalled .pyc too.
_______________________________________________ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
