[issue19628] maxlevels -1 on compileall for unlimited recursion

Claudiu.Popa report at bugs.python.org
Thu Nov 21 23:17:22 CET 2013


Claudiu.Popa added the comment:

Here's a patch which adds support for controlling the maxlevels on command line. Currently, compileall uses a binary choice, either we don't process subdirectories or we process at most 10 subdirectories. This seems to be the case since its inception, in 
"
Changeset:
1828 (b464e1d0b2fb) New way of generating .pyc files, thanks to Sjoerd.
User:
Guido van Rossum <guido at python.org>
Date:
1994-08-29 10:52:58 +0000 (1994-08-29)
"

The patch adds a new command option, -r, where `-r 0` is equivalent to specifying -l. I guess we can't modify -l to actually control the maxlevels, due to backward compatibility concerns.

----------
keywords: +patch
nosy: +Claudiu.Popa
Added file: http://bugs.python.org/file32764/compileall.patch

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


More information about the Python-bugs-list mailing list