Bernie Hackett
aec685b374
Fix up copyright dates.
2015-03-25 11:55:02 -07:00
Bernie Hackett
91d6b5b5d4
PYTHON-676 - Use bytes instead of binary_type
2014-04-23 13:24:16 -07:00
Luke Lovett
4d6d1e067b
PYTHON-676 python 2/3 single-source for the test module
2014-04-23 18:37:02 +00:00
A. Jesse Jiryu Davis
2fa1750b07
Update copyright notices and company name.
2014-01-31 09:36:46 -05:00
behackett
0ee7170cc2
It's 2012...
2012-04-19 12:40:38 -07:00
behackett
12592be1fe
Python 3 unittest changes PYTHON-84.
2012-03-28 11:53:47 -07:00
behackett
2ed05bec70
PEP8 cleanups.
2011-04-06 14:57:17 -07:00
Mike Dirolf
9c182809f3
Create a separate bson package PYTHON-60
...
Many of the pymongo modules have been moved into the bson
package. Aliases for those modules have been added to the pymongo
package, without deprecation warnings for now. Application developers
should begin to use the bson namespace, as deprecation of moved
modules will probably begin in the next release.
2010-09-14 13:52:50 -04:00
Mike Dirolf
363695345d
change tz_aware=False to be the default, so we're backwards compatible
2010-07-21 10:49:35 -04:00
Mike Dirolf
8327335733
Decode datetime instances as UTC/aware PYTHON-125
...
The C implementation of this is *very* ugly, but might be as good as
we can get. Any improvements/suggestions are appreciated.
This is a BREAKING change if application code was depending on
datetimes being naive (i.e. comparisons and subtractions between aware
and naive datetimes are not supported by Python), but most apps
*probably* aren't. We might need to change this somehow before the
next release...
2010-06-22 17:52:55 -04:00
Mike Dirolf
3d7240e57f
It's 2010!
2010-01-30 10:48:26 -05:00
Mike Dirolf
d80de9cb13
minor: remove all uses of types module
2010-01-26 13:31:36 -05:00
Mike Dirolf
d2a47c5342
minor: more PEP 8
2009-06-05 17:18:09 -04:00
Mike Dirolf
c59a09d429
disallow insertion of invalid key names
2009-05-28 16:06:59 -04:00
Mike Dirolf
157e032892
handle dbrefs in c bson module as well
2009-03-18 11:53:03 -04:00
Mike Dirolf
708f12a33a
_id can be anything in DBRef instance
2009-03-17 10:43:25 -04:00
Mike Dirolf
b57d8c2d60
SONManipulator for converting between DBRefs and the corresponding embedded objects
2009-03-17 10:10:54 -04:00
Mike Dirolf
296041f828
limit generated codepoints to appease hudson
2009-01-29 09:29:55 -05:00
Mike Dirolf
dab986f3da
change sys.path unconditionally to work around people who have the egg installed
2009-01-28 15:32:42 -05:00
Mike Dirolf
eb5af47c57
don't append - insert at beginning
2009-01-28 15:09:24 -05:00
Mike Dirolf
54b73ea860
add this here too...
2009-01-28 14:59:45 -05:00
Mike Dirolf
38b7640d7a
generate printable strings as well as Binary wrapped strings
2009-01-23 16:56:49 -05:00
Mike Dirolf
2afc8d2c1b
be more careful about generating ints across platforms
2009-01-22 15:48:15 -05:00
Mike Dirolf
88a62b0c3e
license
2009-01-22 15:10:00 -05:00
Mike Dirolf
d6c0ec39a3
create package pymongo and move all pymongo related modules there
2009-01-22 10:44:26 -05:00
Mike Dirolf
b6b289be2a
don't randomly generate regexps for bson tests because identical python regexs sometimes randomly decide to not compare equal. lame.
2009-01-21 18:22:14 -05:00
Mike Dirolf
801f23854e
hacking automatic reductions into random testing tool
2009-01-21 16:33:31 -05:00
Mike Dirolf
7181b4cfcd
some fixes for regex. test against mongo-qa bson_tests.
2009-01-09 14:36:23 -05:00
Mike Dirolf
ab109e5a69
gen_mongo_dict returns SON
2009-01-08 16:29:21 -05:00
Mike Dirolf
1b75ecd048
bson support for dbref
2009-01-08 12:02:59 -05:00
Mike Dirolf
c2ada2f010
bson support for oid
2009-01-08 11:09:41 -05:00
Mike Dirolf
fe4dcd1113
cleanup a bunch of debugging stuff from last night. add some logging messages. the problem i was debugging is a CPython issue for testing regex equality
2009-01-08 09:25:41 -05:00
Mike Dirolf
6efb96a893
wip: still banging against weirdness w/ bson regexps
2009-01-07 19:52:58 -05:00
Mike Dirolf
3e6d3f3cbe
support for dates
2009-01-07 17:10:00 -05:00
Mike Dirolf
7083df5254
(null, undefined) <=> None
2009-01-07 14:14:07 -05:00
Mike Dirolf
d2f67f549d
support for python strings (as mongo binary type
2009-01-07 13:56:27 -05:00
Mike Dirolf
8ed0c63e86
random generator for mongo documents, test that to_dict o from_dict is identity. fix get_c_string to check for 0 bytes
2009-01-07 13:49:07 -05:00
Mike Dirolf
fa6b5a314d
quick random testing module for python and some random tests for bson
2009-01-07 10:29:48 -05:00