omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    from __future__ import division

    Pythonista
    2
    3
    1999
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mjb5
      mjb5 last edited by

      Seeing as my email to support has received no response, I'll try this again here. In the interactive prompt, future imports do not seem to work. How can I get from __future__ import division or the equivalent to take effect so that I can interactively use a non-broken division operator?

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        print('Begin...')
        #from __future__ import division
        print('...end.')
        

        Fascinating... Removing the # from the above script causes it to silently fail to print anything at all!

        1 Reply Last reply Reply Quote 0
        • ccc
          ccc last edited by

          From future imports must happen very early in a Python script.

          http://omz-forums.appspot.com/pythonista/post/6745177418891264

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors