Closed codyaray closed 6 years ago
Hi @codyaray,
I'm definitely looking forward making this library compatible with Python 2.7. Regarding the type checking I'd prefer to remove it entirely instead of using the comment approach.
Feel free to fork and open a pull request at any time.
Hey @codyaray, Thanks to @ravibhure the library does now support Python 2.7.
Hi everyone,
I just tried the version October 20th and discovered a new Python 3 change:
It looks like ** inside a dict is not allowed in python2.
Python2:
{x} File "
", line 1 { x} ^ SyntaxError: invalid syntax
Python3:
{**x} {'a': 'b', 'c': 'd'}
Thanks for finding this! Will take care of it.
The issue has been fixed in 1.4.
Awesome! We ended up developing our own before we even realized the checkmk webapi existed. It's a large amount of logic designed to reproduce the WATO UI calls. We'd love to eventually migrate to the webapi using this webapi library wrapper rather than rolling our own.
To the sad part... My corporate environment hasn't upgraded to python3. Would you be opposed to adding support for python2.7? Things like the type hints break python2.7 compatibility. There may be others too; this is just the first error encountered.
If you're cool with this, I'm happy to fork and contribute back.
PS - python2.7 supports type hints comments in some tools like pycharm