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.


    Pythonista for Python 3.x.

    Pythonista
    40
    99
    203870
    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.
    • Webmaster4o
      Webmaster4o last edited by

      How do the chained stargs work? If I have func(*args, *moreargs)
      and I then put in func(1,2,3,4,5,6), how is it decided what goes into the list args and what goes into moreargs?

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

        Yield from (see PEP 380). Like try to do curio or agent with Python2.

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

          @Webmaster4o Not when defining functions, but when calling them. For example, this is how you could implement functools.partial:

          def partial(callable, *frozen_args, **frozen_kwargs):
              def _partial(*new_args, **new_kwargs):
                  return callable(*frozen_args, *new_args, **frozen_kwargs, **new_kwargs)
              return _partial
          
          1 Reply Last reply Reply Quote 0
          • Webmaster4o
            Webmaster4o last edited by

            Ah, ok. Now I get it.

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

              I'm sure @ccc would point this out soon enough ;) but Python 2.7.11 was released today/yesterday: https://www.python.org/downloads/release/python-2711/

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

                @dgelessus LOL... Yes. And Python 3.5.1 is due tomorrow: https://www.python.org/downloads/release/python-351

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

                  Brett Cannon - Where are we in the Python 3 transition? http://www.snarky.ca/the-stages-of-the-python-3-transition

                  Phuket2 1 Reply Last reply Reply Quote 3
                  • Phuket2
                    Phuket2 @ccc last edited by

                    @ccc , thanks. I subscribed to his blog. I read through quite a few of his blog entries. Really good info for someone like me (limited info on the history of Python and the future and more...) for one, I will start to look at Unicode seriously, it's good to do while I am still a beginner. Anyway, great info from this guy (Not just the mentioned blog entry here) and he has the credentials

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

                      Most of the posts here are 3 years old. More libraries are now available on Python 3 and it appears to be the clear direction forward for Python. My requirements are for Python 3.

                      Pythonista looks great and as soon as it is on Python 3 I will purchase it!

                      1 Reply Last reply Reply Quote 2
                      • dgelessus
                        dgelessus last edited by

                        Just FYI to anyone who may have missed it - it's happening...

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