[New-bugs-announce] [issue8527] [PEP 3147] compileall.compile_dir() called multiple times creates empty __pycache__/__pycache__ subdirectories

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Sun Apr 25 03:33:56 CEST 2010


New submission from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at GMail.Com>:

compileall.compile_dir() called multiple times creates empty __pycache__/__pycache__ subdirectories. I'm attaching the patch.

$ mkdir test
$ touch test/__init__.py
$ python3.2 -c 'import compileall; compileall.compile_dir("test")'
Listing test ...
Compiling test/__init__.py ...
$ tree test
test
├── __init__.py
└── __pycache__
    └── __init__.cpython-32.pyc

1 directory, 2 files
$ python3.2 -c 'import compileall; compileall.compile_dir("test")'
Listing test ...
Listing test/__pycache__ ...
$ tree test
test
├── __init__.py
└── __pycache__
    ├── __init__.cpython-32.pyc
    └── __pycache__

2 directories, 2 files

----------
components: Library (Lib)
files: compileall.patch
keywords: patch
messages: 104139
nosy: Arfrever, barry
severity: normal
status: open
title: [PEP 3147] compileall.compile_dir() called multiple times creates empty __pycache__/__pycache__ subdirectories
versions: Python 3.2
Added file: http://bugs.python.org/file17076/compileall.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8527>
_______________________________________


More information about the New-bugs-announce mailing list