summaryrefslogtreecommitdiff
path: root/lang/python
Commit message (Collapse)AuthorAgeFilesLines
* WT-2978 Python: make a pip-compatible installer. (#3320)Don Anderson2017-03-172-0/+456
| | | | | * 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.
* WT-3092 Quiet a warning from autogen.sh (#3211)Keith Bostic2016-12-231-1/+2
|
* WT-3071 Fixed sign-conversion compiler errors in Java and Python SWIG code ↵Don Anderson2016-12-141-2/+3
| | | | | | | | | | (#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.
* WT-3053 Make Python use internal memory allocation again. (#3179)Michael Cahill2016-12-061-11/+11
| | | | | 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.
* WT-3053 Revert: Python and Java support use internal WiredTiger functions ↵Alex Gorrod2016-12-061-13/+2
| | | | (#3178)
* WT-3053 Python and Java support use internal WiredTiger functions (#3174)Keith Bostic2016-12-051-2/+13
| | | | | | | | | | | | * 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.
* WT-3014 Add GCC/clang support for ELF symbol visibility. (#3138)Keith Bostic2016-12-051-11/+11
| | | | | * 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.
* WT-1517 Set the packing size = 1 by default in the fast path.Michael Cahill2016-01-201-12/+4
| | | | | | 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.
* Upgrade copyright notices from 2015 to 2016.Keith Bostic2016-01-015-5/+5
|
* WT-1985. Fixed a comment about 'U' unpacking so there is no confusion.Don Anderson2015-07-131-1/+2
|
* WT-1985. intpack-test.py and packing-test.py are now subsumed byDon Anderson2015-07-072-114/+0
| | | | test/suite/test_intpack.py and test_pack.py .
* Wt-1985. Fixes required by new packing tests:Don Anderson2015-07-071-9/+10
| | | | | Specifying 'u' as a format can result in a 'U' format appearing in an index. The pack/unpack routines need to understand 'U'.
* WT-1985. Fixed problems with integer packing in Python:Don Anderson2015-06-302-0/+28
| | | | | | | 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.
* Merge branch 'develop' into encryption-apiSusan LoVerso2015-04-281-4/+10
|\ | | | | | | | | | | | | Conflicts: dist/api_data.py src/config/config_def.c src/include/config.h
| * Fix a typo, add what will be a description section for pydocPat Gunn2015-04-251-4/+10
| |
* | Merge branch 'develop' into encryption-apiSusan LoVerso2015-04-011-18/+31
|\ \ | |/
| * Add a __setitem__ to cursors in the Python API, remove lots of boilerplate ↵Michael Cahill2015-03-311-18/+31
| | | | | | | | c.set_key ... c.set_value ... c.insert code.
* | Merge branch 'develop' into encryption-apiDon Anderson2015-03-261-1/+1
|\ \ | |/ | | | | | | Conflicts: dist/s_string.ok
| * Added -I include paths as needed to handle #include <3rdparty/...>Don Anderson2015-03-251-1/+1
| |
* | More plumbing. #1822Susan LoVerso2015-03-261-0/+2
|/
* Fixed python doc string in OVERRIDE_METHOD macro.Don Anderson2015-01-221-1/+1
|
* Prepend underscores to methods that could have name conflictsDon Anderson2015-01-221-8/+34
| | | | | | | | | 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.
* Merge branch 'develop' into cursor-equalMichael Cahill2015-01-171-3/+12
|\ | | | | | | | | Conflicts: lang/python/wiredtiger.i
| * Raise an exception for any error, including WT_NOTFOUND,Don Anderson2015-01-121-2/+11
| | | | | | | | returned from CURSOR->compare.
* | Have WT_CURSOR::equals return 1 when cursors are equal, 0 when not.Michael Cahill2015-01-171-7/+2
| |
* | Rename WT_CURSOR compare_equal to be equals.Alex Gorrod2015-01-141-6/+6
| | | | | | | | | | | | | | While here, add a generic cursor equals stub in curstd, rather than redirecting via cursor function pointer lists. Implement the Java API wrapper.
* | Add support for the WT_CURSOR.compare_equal method.Keith Bostic2015-01-101-5/+31
|/
* Release Python's global lock (GIL) before sleeping to allow otherDon Anderson2015-01-081-0/+2
| | | | threads to grab the lock as needed.
* Copyright notices: add MongoDB, update to 2015.Keith Bostic2015-01-047-0/+7
|
* Remove tabs in comments.Don Anderson2014-12-161-1/+1
|
* Some refactoring of python packing.Don Anderson2014-12-162-31/+99
| | | | | More checks for standalone unit tests. Refs #1429.
* Change the Python scripts to follow Python indenting standards (4 spaceKeith Bostic2014-12-034-180/+181
| | | | indents, spaces only).
* Allow unicode typed objects in Python with S/s formats. refs #1187.Don Anderson2014-11-121-4/+8
| | | | Includes tests that trigger the problem.
* Fix the Python check for a verbose build: it can't be a connection method, ↵Michael Cahill2014-10-181-16/+21
| | | | that's too late.
* Add a "verbose=[transaction]" mode, output a message if a snapshot falls a ↵Michael Cahill2014-10-181-0/+6
| | | | long way behind. Add a test case that generates this message. Remember the last operation on a session after it leaves the library.
* Allow Python tests to detect whether verbose support is configured.Michael Cahill2014-10-181-0/+8
|
* Merge branch 'develop' into json-loadAlex Gorrod2014-10-151-2/+2
|\ | | | | | | | | | | | | Conflicts: dist/s_string.ok src/include/extern.h src/utilities/util_load.c
| * Rename RELEASE to be RELEASE_INFO, avoid collision with MsBuild defaultKeith Bostic2014-10-011-2/+2
| | | | | | | | folder.
* | Merge branch 'develop' into json-loadAlex Gorrod2014-09-192-14/+14
|\ \ | |/
| * Rearrange the Python build so we generate object files under the build ↵Michael Cahill2014-09-052-14/+14
| | | | | | | | | | | | directory. Clean up manually: don't rely on setup.py. refs #1188
| * As far as I can tell, there's no "build" directory, so quit tryingKeith Bostic2014-09-041-1/+1
| | | | | | | | to remove it, reference #1188.
| * Add wiredtiger_wrap.o to the clean-local label.Keith Bostic2014-09-041-1/+1
| |
| * Don't remove the wiredtiger directory, it has source code, reference #1188.Keith Bostic2014-09-041-1/+1
| |
* | Add JSON loading to cursors and wt load utility. refs #740.Don Anderson2014-08-061-5/+22
|/ | | | | | | | | | | | | 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.
* Document EBUSY and update python. #1153Susan LoVerso2014-08-051-5/+5
|
* Merge branch 'develop' into log-cursorSusan LoVerso2014-07-311-4/+5
|\
| * Fix 0ffb202 and reinstate changes from e739089.Susan LoVerso2014-07-301-1/+10
| |
| * The change in 0ffb202, it's not sufficient. Yank the test, it's notKeith Bostic2014-07-301-8/+0
| | | | | | | | interesting enough to keep.
* | Merge branch 'develop' into log-cursorSusan LoVerso2014-07-301-0/+8
|\ \ | |/ | | | | | | Conflicts: src/config/config_def.c
| * Add a way to skip tests that rely on diagnostic builds. Use that for the ↵Michael Cahill2014-07-301-0/+8
| | | | | | | | out-of-order bulk-load test.