Giter VIP home page Giter VIP logo

Comments (5)

SimoneBronzini avatar SimoneBronzini commented on June 13, 2024

Thanks for letting us know, this is gonna be fixed as soon as possible!

from btcpy.

SimoneBronzini avatar SimoneBronzini commented on June 13, 2024

I've been looking into this problem. Actually the a, *b, c = [1,2,3] works fine up to python3.0 (just tested on a 3.0 instance). The PEP you linked refers to other unpacking generalisations. As you can see here, the syntax you mention was introduced in python3.0.

from btcpy.

 avatar commented on June 13, 2024

Interesting. Here is my output when I try to run the test suite with Python 3.4.3.

(env) vedran@desktop:~/btcpy$ python -m unittest tests/unit.py 
Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.4/unittest/__main__.py", line 18, in <module>
    main(module=None)
  File "/usr/lib/python3.4/unittest/main.py", line 92, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python3.4/unittest/main.py", line 139, in parseArgs
    self.createTests()
  File "/usr/lib/python3.4/unittest/main.py", line 146, in createTests
    self.module)
  File "/usr/lib/python3.4/unittest/loader.py", line 146, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.4/unittest/loader.py", line 146, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.4/unittest/loader.py", line 105, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "/home/vedran/btcpy/tests/unit.py", line 599
    script = MultisigScript(self.m, *self.pubkeys, self.n)
                                                         ^
SyntaxError: only named arguments may follow *expression

from btcpy.

SimoneBronzini avatar SimoneBronzini commented on June 13, 2024

Well, you are right indeed! The problem was not the m, *pubkeys, n = args at assignment time, it was when passing a *args to a function followed by other positional arguments instead of keyword arguments only. Fixing soon!

from btcpy.

 avatar commented on June 13, 2024

Ah. Sorry about that, it seems I may have misinterpreted the nature of the issue originally.

from btcpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.