Skip to content

Inserting Multiple Documents - Python 3 doesn't support iteritems(): #4

@yoshprogrammer

Description

@yoshprogrammer

Hola,

Great courses. I figure it might be worth noting, somewhere perhaps in the course, that with python 3 the autos.py will break on line 150.

https://github.com/udacity/ud032/blob/master/Lesson_4_Working_with_MongoDB/14-Inserting_Multiple_Documents/autos.py

In the code & Python 2:
for field, val in row.iteritems():

for Python 3, as I'm sure you're aware, it is now:

for field, val in row.items():

I didn't know if there was a better place to put this. Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions