ipython/ipython — pull request #1713 by bfroehle (2012-05-08 22:06:00+00:00)
Title: Make autocall regexp's configurable.

As discussed in #81, there is some (small) demand that that the autocall regular expressions be configurable. For example:

```
$ ipython --AutocallChecker.exclude_regexp='^[,&^\\|\\*/]|^is |^not |^in |^and |^or ' --autocall=2
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
Type "copyright", "credits" or "license" for more information.

IPython 0.13.dev -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: def f(*args): print args

In [2]: f -1
------> f(-1)
(-1,)
```

The attached pull request:

1. Creates a new trait type "CRegExp" which casts a string or regular expression into a compiled regular expression.
2. Makes the autocall regular expressions, which are only used in AutocallChecker configurable.