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

XMLWordPrintableJSON

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

      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 Hackett
            Reporter:
            Jonas H
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: