Python compiler package
***********************
+.. deprecated:: 2.6
+ The compiler package has been removed in Python 3.0.
+
.. sectionauthor:: Jeremy Hylton <jeremy@zope.com>
.. module:: compiler
:synopsis: Python code compiler written in Python.
+ :deprecated:
The top-level of the package defines four functions. If you import
compileFile(filename)
Generates a .pyc file by compiling filename.
"""
+from warnings import warnpy3k
+warnpy3k("the compiler package has been removed in Python 3.0", stacklevel=2)
+del warnpy3k
from compiler.transformer import parse, parseFile
from compiler.visitor import walk
-import compiler
+import test.test_support
+compiler = test.test_support.import_module('compiler', deprecated=True)
from compiler.ast import flatten
import os, sys, time, unittest
-import test.test_support
from random import random
from StringIO import StringIO
Library
-------
+- The compiler package has been deprecated for removal in Python 3.0.
+
- The Bastion and rexec modules have been deprecated for removal in Python 3.0.
- The bsddb185 module has been deprecated for removal in Python 3.0.