Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-7028: Port to Python 3 #8

Merged
merged 11 commits into from
Aug 5, 2016
Merged

DM-7028: Port to Python 3 #8

merged 11 commits into from
Aug 5, 2016

Commits on Aug 4, 2016

  1. Modernize python

    * print function
    * absolute import
    timj committed Aug 4, 2016
    Configuration menu
    Copy the full SHA
    360c0d5 View commit details
    Browse the repository at this point in the history
  2. Futurize: also use long() rather than L literal

    This can work in both python2 and python3+futurize.
    timj committed Aug 4, 2016
    Configuration menu
    Copy the full SHA
    47c4e86 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    69d8fe3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    216bff8 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2016

  1. Try to guess int vs long when type is not known

    Python 3 does not distinguish long from int but PropertySet
    and PropertyList can have different types. If something is added
    to a container that already contains ints then assume Int, if
    it already contains LongLong use LongLong. If the container
    is empty choose based on the value.
    
    We are careful not to include bool types in the guess work.
    
    Adds some tests to ensure that boolean are handled properly
    and that OverflowError is raised if the item is too large.
    timj committed Aug 5, 2016
    Configuration menu
    Copy the full SHA
    56afa95 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb74da2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9417707 View commit details
    Browse the repository at this point in the history
  4. Add dependency on python_future

    timj committed Aug 5, 2016
    Configuration menu
    Copy the full SHA
    18e875d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fce8e1b View commit details
    Browse the repository at this point in the history
  6. SWIG 3.0.10 is now the baseline so update test to check for int

    SWIG now returns int instead of long when the return value can
    fit in an int.
    timj committed Aug 5, 2016
    Configuration menu
    Copy the full SHA
    6dc5647 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c7ec989 View commit details
    Browse the repository at this point in the history