Homec4science

base: eval is evil

Authored by Yoan Blanc <yoan.blanc@cern.ch> on May 15 2014, 15:23.

Description

base: eval is evil

  • Using ast.literal_value instead of eval to parse user provided values. Safer and more reliable (bool("False") -> True)
  • Removing the checks that the new type corresponds with the known type for the value.
  • Adding some tests to invenio.base.
  • Adding invenio.base to the list of packages to collect test suites from.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>

Details

Committed
kuncarJun 4 2014, 16:05
Parents
R3600:5a9201709466: global: kwalitee fixes in invenio.testsuite
Branches
Unknown
Tags
Unknown

Event Timeline

Jiri Kuncar <jiri.kuncar@cern.ch> committed R3600:62e9565c03fc: base: eval is evil (authored by Yoan Blanc <yoan.blanc@cern.ch>).Jun 4 2014, 16:05