Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1053

Nested for loops on cursor seem not to work

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.2
    • Component/s: None
    • Environment:
      CentOS 7.0
    • 1
    • Fully Compatible

      This comes from an exercise in the M101P course-

      In the brief file, attached, you see a for loop on a cursor with a nested for loop on a cursor. The outer cursor should loop 4 times, and the inner cursor should loop 4 times. 4x4 = 16. Instead, when the inner cursor completes, it seems also to close the outer cursor ??

      The attachment runs self contained. Safe and easy.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            daniel.farrell Daniel Farrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: