Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In python 3.5 there is no .next() (Or something like that.)

See original GitHub issue

In, line 43 and 45 use the next() keyword instead of 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/", 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:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

MrTealecommented, May 9, 2018

Legend @Alonreznik Thank you so much

MrTealecommented, May 9, 2018

I second @dan-hook on this.

Read more comments on GitHub >

github_iconTop 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: # 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found