enthought / enthought/trait-documenter

In python 2.6 floating numbers in a trait_definition are not always nicely rendered

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
Python
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Numbers in a trait definition that cannot be exactly represented in floating point representation will not be nicely printed when using python 2.6

The underline issue is that the astor library that is used to convert the Python ast to a nicely formated string uses the `repr` which in python 2.6 can sometimes return unplesent results (https://docs.python.org/2.6/tutorial/floatingpoint.html)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.