summaryrefslogtreecommitdiff
path: root/lang/python
AgeCommit message (Collapse)Author
2017-03-17WT-2978 Python: make a pip-compatible installer. (#3320)Don Anderson
* Build a static library with -fPIC objects, suitable for pulling into a dynamic library. Distribute our SWIG results, rather than running SWIG on the target machine. * Added builtin support for snappy and zlib. Made it easy to manage the list of builtins.
2016-12-23WT-3092 Quiet a warning from autogen.sh (#3211)Keith Bostic
2016-12-14WT-3071 Fixed sign-conversion compiler errors in Java and Python SWIG code ↵Don Anderson
(#3194) Modified SWIG compilation for python to turn off sign conversion checks. There are a dozen or so sign conversion complaints in boiler-plate SWIG-Python utility functions that we can't do anything about. Since we'd like to build a tree with python enabled and sign conversions checks on everywhere else, this appears to be the best we can do.
2016-12-06WT-3053 Make Python use internal memory allocation again. (#3179)Michael Cahill
Since we aren't going to make allocation functions hidden, revert changes to the Python API in WT-3014 so it uses internal memory allocation functions, matching the Java API.
2016-12-06WT-3053 Revert: Python and Java support use internal WiredTiger functions ↵Alex Gorrod
(#3178)
2016-12-05WT-3053 Python and Java support use internal WiredTiger functions (#3174)Keith Bostic
* WT-3053 Python and Java support use internal WiredTiger functions Remove calls to internal WiredTiger functions from the Java and Python APIs, meaning we no longer need to expose a few more internal WiredTiger functions. * Try using SWIGWIN instead of _MSC_VER for the swig windows #ifdef. * Another try at a Windows #ifdef in the SWIG code.
2016-12-05WT-3014 Add GCC/clang support for ELF symbol visibility. (#3138)Keith Bostic
* Rewrite the demo file system example to not require internal WiredTiger functions. * Replace calls to __wt_calloc/__wt_free with C library calloc/free/calls, avoid using internal WiredTiger functions.
2016-01-20WT-1517 Set the packing size = 1 by default in the fast path.Michael Cahill
Don't add extra checks into regular processing: we already set size = 1 in normal processing of packing strings if no size is specified. Make the Python packing code match so all test cases pass.
2016-01-01Upgrade copyright notices from 2015 to 2016.Keith Bostic
2015-07-13WT-1985. Fixed a comment about 'U' unpacking so there is no confusion.Don Anderson
2015-07-07WT-1985. intpack-test.py and packing-test.py are now subsumed byDon Anderson
test/suite/test_intpack.py and test_pack.py .
2015-07-07Wt-1985. Fixes required by new packing tests:Don Anderson
Specifying 'u' as a format can result in a 'U' format appearing in an index. The pack/unpack routines need to understand 'U'.
2015-06-30WT-1985. Fixed problems with integer packing in Python:Don Anderson
1) Applied special case from C code for POS_2BYTE_MAX + 1. 2) Handle B/b format chars directly. Up to now these would have been encoded using default int encoding (so values above 63 get errors when encoding.
2015-04-28Merge branch 'develop' into encryption-apiSusan LoVerso
Conflicts: dist/api_data.py src/config/config_def.c src/include/config.h
2015-04-25Fix a typo, add what will be a description section for pydocPat Gunn
2015-04-01Merge branch 'develop' into encryption-apiSusan LoVerso
2015-03-31Add a __setitem__ to cursors in the Python API, remove lots of boilerplate ↵Michael Cahill
c.set_key ... c.set_value ... c.insert code.
2015-03-26Merge branch 'develop' into encryption-apiDon Anderson
Conflicts: dist/s_string.ok
2015-03-26More plumbing. #1822Susan LoVerso
2015-03-25Added -I include paths as needed to handle #include <3rdparty/...>Don Anderson
2015-01-22Fixed python doc string in OVERRIDE_METHOD macro.Don Anderson
2015-01-22Prepend underscores to methods that could have name conflictsDon Anderson
with WT internal names. These methods were exposed for conflict because we created public C names by 'extending' classes in SWIG. SWIG's wrapper naming for such methods apparently follows a different convention than the usual "_wrap_<PythonName>_<FunctionName>", and uses "<CTypeName>_<FunctionName", e.g. "__wt_cursor_equals". Refs #1574.
2015-01-17Merge branch 'develop' into cursor-equalMichael Cahill
Conflicts: lang/python/wiredtiger.i
2015-01-17Have WT_CURSOR::equals return 1 when cursors are equal, 0 when not.Michael Cahill
2015-01-14Rename WT_CURSOR compare_equal to be equals.Alex Gorrod
While here, add a generic cursor equals stub in curstd, rather than redirecting via cursor function pointer lists. Implement the Java API wrapper.
2015-01-12Raise an exception for any error, including WT_NOTFOUND,Don Anderson
returned from CURSOR->compare.
2015-01-10Add support for the WT_CURSOR.compare_equal method.Keith Bostic
2015-01-08Release Python's global lock (GIL) before sleeping to allow otherDon Anderson
threads to grab the lock as needed.
2015-01-04Copyright notices: add MongoDB, update to 2015.Keith Bostic
2014-12-16Remove tabs in comments.Don Anderson
2014-12-16Some refactoring of python packing.Don Anderson
More checks for standalone unit tests. Refs #1429.
2014-12-03Change the Python scripts to follow Python indenting standards (4 spaceKeith Bostic
indents, spaces only).
2014-11-12Allow unicode typed objects in Python with S/s formats. refs #1187.Don Anderson
Includes tests that trigger the problem.
2014-10-18Fix the Python check for a verbose build: it can't be a connection method, ↵Michael Cahill
that's too late.
2014-10-18Add a "verbose=[transaction]" mode, output a message if a snapshot falls a ↵Michael Cahill
long way behind. Add a test case that generates this message. Remember the last operation on a session after it leaves the library.
2014-10-18Allow Python tests to detect whether verbose support is configured.Michael Cahill
2014-10-15Merge branch 'develop' into json-loadAlex Gorrod
Conflicts: dist/s_string.ok src/include/extern.h src/utilities/util_load.c
2014-10-01Rename RELEASE to be RELEASE_INFO, avoid collision with MsBuild defaultKeith Bostic
folder.
2014-09-19Merge branch 'develop' into json-loadAlex Gorrod
2014-09-05Rearrange the Python build so we generate object files under the build ↵Michael Cahill
directory. Clean up manually: don't rely on setup.py. refs #1188
2014-09-04As far as I can tell, there's no "build" directory, so quit tryingKeith Bostic
to remove it, reference #1188.
2014-09-04Add wiredtiger_wrap.o to the clean-local label.Keith Bostic
2014-09-04Don't remove the wiredtiger directory, it has source code, reference #1188.Keith Bostic
2014-08-06Add JSON loading to cursors and wt load utility. refs #740.Don Anderson
Allow set_key and set_value on JSON cursors. The argument is a string that is interpreted as JSON and must match the format created by a JSON dump cursor or the 'wt dump -j' command. Add -j option to 'wt load' utility to allow loading JSON. Small adjustment to Python interface so that JSON cursor key/values inputs are always treated as strings. Added doc and Python tests for JSON cursors and wt load -j.
2014-08-05Document EBUSY and update python. #1153Susan LoVerso
2014-07-31Merge branch 'develop' into log-cursorSusan LoVerso
2014-07-30Fix 0ffb202 and reinstate changes from e739089.Susan LoVerso
2014-07-30The change in 0ffb202, it's not sufficient. Yank the test, it's notKeith Bostic
interesting enough to keep.
2014-07-30Merge branch 'develop' into log-cursorSusan LoVerso
Conflicts: src/config/config_def.c
2014-07-30Add a way to skip tests that rely on diagnostic builds. Use that for the ↵Michael Cahill
out-of-order bulk-load test.