Back to index

python3.2  3.2.2
Classes | Functions | Variables
syntax_test Namespace Reference

Classes

class  Bar

Functions

def foo
def __enter__
def __exit__

Variables

int spam = 42

Detailed Description

Test file for syntax highlighting of editors.

Meant to cover a wide range of different types of statements and expressions.
Not necessarily sensical or comprehensive (assume that if one exception is
highlighted that all are, for instance).

Extraneous trailing whitespace can't be tested because of svn pre-commit hook
checks for such things.

Function Documentation

def syntax_test.__enter__ (   self)

Definition at line 21 of file syntax_test.py.

00021 
00022     def __enter__(self):
        pass

Here is the caller graph for this function:

def syntax_test.__exit__ (   self,
  args 
)

Definition at line 23 of file syntax_test.py.

00023 
00024     def __exit__(self, *args):
00025         pass
foo()  # UNCOLOURED: function call

Here is the caller graph for this function:

def syntax_test.foo ( )

Definition at line 18 of file syntax_test.py.

00018 
00019 def foo():  # function definition
    return []

Variable Documentation

Definition at line 56 of file syntax_test.py.