In python 3.5 there is no .next() (Or something like that.)
See original GitHub issueIn json_util.py, line 43 and 45 use the next() keyword instead of generator.next() for great good like so;
if as_dict: return next(six.iteritems(result_))[1] else: return json.dumps(next(six.iteritems(result_))[1], **kwargs)
Or else;
json.dumps({'foo': 'bar'}, True) Traceback (most recent call last): File "<input>", line 1, in <module> File "python3.5/site-packages/dynamodb_json/json_util.py", line 43, in dumps return six.iteritems(result_).next()[1] AttributeError: 'dict_itemiterator' object has no attribute 'next'
PS: Sorry I didn’t just make a patch. Too lazy.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
What's New In Python 3.5 — Python 3.11.1 documentation
This article explains the new features in Python 3.5, compared to 3.4. ... Currently, no builtin Python types implement the new operator, however,...
Read more >next() doesn't play nice with any/all in python - Stack Overflow
In Python 3.5 and 3.6 without the __future__ import, a warning is raised. For example: # gs_warn.py def error(): return next(i for i...
Read more >How the heck does async/await work in Python 3.5?
It's totally okay if it's more detail than you want or that you don't ... when calculating the next value in the iteration...
Read more >Async IO in Python: A Complete Walkthrough
As you'll see in the next section, the benefit of awaiting something, including asyncio.sleep() , is that the surrounding function can temporarily cede...
Read more >Frequently asked questions — Anaconda documentation
There are three ways to get Anaconda with Python 3.5 or 3.6: ... After you have the file, it's the same as any...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Legend @Alonreznik Thank you so much
I second @dan-hook on this.