update EvalFormatter to allow arbitrary expressions #716

Merged
merged 1 commit into from Aug 21, 2011

Projects

None yet

2 participants

@minrk
Member
minrk commented Aug 21, 2011

EvalFormatter should now support arbitrary Python expressions, including slicing. Since slicing conflicts with the format_spec part of fancy formatting, there is a switch to restore format_spec behavior at the expense of slicing. If we don't want to support slicing with colons, then there is a simpler implementation overriding only Formatter.get_field().

Associated tests also added.

@minrk minrk update EvalFormatter to allow arbitrary expressions
EvalFormatter should now support arbitrary Python expressions, including
slicing.  Since slicing conflicts with the format_spec part of fancy formatting, there is a switch to restore format_spec behavior at the expense of slicing.

Associated tests added as well.
8f55395
@fperez fperez merged commit 8f55395 into ipython:master Aug 21, 2011
@fperez
Member
fperez commented Aug 21, 2011

Looks perfect, merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment