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

ValueError: time argument too large (pure python BSON decoder on 32-bit)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0
    • Affects Version/s: 1.11
    • Component/s: None
    • Environment:
      pypy, cpython

      This crashes on PyPy 1.5, but works with CPython 2.7:

      from datetime import datetime
      import pymongo

      test = pymongo.Connection().test.test

      test.remove()
      test.insert(

      {'foo' : datetime(1,1,1,1,1,1,1)}

      )
      test.find_one()

      Full traceback: http://paste.pocoo.org/show/400008/

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            jonash Jonas H
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: