zrax/pycdc — pull request #10 by dpogue (2011-10-10 06:52:12+00:00)
Title: Fixes for blocks, stack history, functions, and globals

Blocks and the stack history should be much more consistent now. Although there are still some edge cases to be tracked down, and I'm starting to wonder if it's actually possible to support all cases (every fix seems to break something else).
But it is certainly much improved!

Support for varargs and varkeywords in functions, like so:

```python
def myfunc(*args, **kwargs):
print args
print kwargs

a = (5, 3)
b = {'a': 'asdf'}
myfunc(*a, **b)
```

We add the global keyword to the start of functions that change the values of global vars. This fixes #8:

```python
globvar = 1

def changeit():
global globvar #We add this line now
globvar = 5
```