Comments (5)
Thanks for letting us know, this is gonna be fixed as soon as possible!
from btcpy.
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.
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.
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.
Ah. Sorry about that, it seems I may have misinterpreted the nature of the issue originally.
from btcpy.
Related Issues (20)
- PrivateKey generation from entropy HOT 4
- Efficient script matching
- Type of multisig is error! HOT 2
- version 0.4, pip HOT 1
- Maybe the default version of segwit addresses should be zero HOT 1
- Pb of syntax with version 0.5 HOT 1
- Different address from which I need HOT 1
- Creating and signing the P2WSH-over-P2SH transaction HOT 11
- How to spend multiple UTXOs, from different transactions? HOT 3
- Difference between vsize and size property of the Transaction object? HOT 2
- to_json for block.py
- Installation and Build errors HOT 3
- Addresses generation HOT 3
- What's the difference between TimelockSolver and (Absolute)RelativeTimelockSolver?
- ScriptBuilder definition for transaction creation
- Support for taproot and Schnorr? HOT 3
- Add support for regtest bech32 addresses
- Verification of Bitcoin taproot address
- Openssl removed ripemd160
- Crypto is good HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btcpy.