This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, barry
Date 2010-04-29.15:57:40
SpamBayes Score 0.0058084815
Marked as misclassified No
Message-id <1272556661.45.0.749553623518.issue8563@psf.upfronthosting.co.za>
In-reply-to
Content
Here's an example, which shows that an empty __pycache__ has been created:

$ mkdir test
$ echo ":" > test/file.py
$ tree test
test
└── file.py

0 directories, 1 file
$ python3.2 -c 'import compileall; compileall.compile_file("test/file.py")'
Compiling test/file.py ...
***   File "test/file.py", line 1
    :
    ^
SyntaxError: invalid syntax

$ tree test
test
├── file.py
└── __pycache__

1 directory, 1 file
History
Date User Action Args
2010-04-29 15:57:41Arfreversetrecipients: + Arfrever, barry
2010-04-29 15:57:41Arfreversetmessageid: <1272556661.45.0.749553623518.issue8563@psf.upfronthosting.co.za>
2010-04-29 15:57:40Arfreverlinkissue8563 messages
2010-04-29 15:57:40Arfrevercreate