Skip to content

Commit

Permalink
Bump version 2.2 -> 2.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimes committed Dec 8, 2013
1 parent 86d1246 commit bc39052
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mmh3

Python wrapper for MurmurHash (MurmurHash3), a set of fast and robust hash functions.

mmh3 2.2 supports both Python 2.7 and 3.x.
mmh3 2.3 supports both Python 2.7 and 3.x.

Usage
-----
Expand All @@ -15,6 +15,8 @@ Sample Usage::
-156908512
>>> mmh3.hash64('foo') # two 64 bit signed ints
(-2129773440516405919, 9128664383759220103)
>>> mmh3.hash128('foo') # 128 bit signed int
168394135621993849475852668931176482145
>>> mmh3.hash_bytes('foo') # 128 bit value as bytes
'aE\xf5\x01W\x86q\xe2\x87}\xba+\xe4\x87\xaf~'
>>> mmh3.hash('foo', 42) # uses 42 for its seed
Expand All @@ -27,9 +29,17 @@ hash64 and hash_bytes have the third argument for architecture optimization. Use

Changes
=======
2.3 (2013-12-08)
----------------
* Add `hash128`, which returns a 128-bit signed integer.
* Fix a misplaced operator which could cause memory leak in a rare condition.
* Fix a malformed value to a Python/C API function which may cause runtime errors in recent Python 3.x versions.

The first two commits are from `Derek Wilson <https://github.com/underrun>`_. Thanks!

2.2 (2013-03-03)
----------------
* Improve portability to support systems with old gcc (version < 4.4) such as CentOS/RHEL 5.x. (Commit from Micha Gorelick. Thanks!)
* Improve portability to support systems with old gcc (version < 4.4) such as CentOS/RHEL 5.x. (Commit from `Micha Gorelick <https://github.com/mynameisfiber>`_. Thanks!)

2.1 (2013-02-25)
----------------
Expand Down
2 changes: 1 addition & 1 deletion mmh3module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ initmmh3(void)
if (module == NULL)
INITERROR;

PyModule_AddStringConstant(module, "__version__", "2.2");
PyModule_AddStringConstant(module, "__version__", "2.3");

struct module_state *st = GETSTATE(module);

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
sources = ['mmh3module.cpp', 'MurmurHash3.cpp'])

setup(name = 'mmh3',
version = '2.2',
version = '2.3',
description = 'Python library for MurmurHash (MurmurHash3), a set of fast and robust hash functions.',
license = 'Public Domain',
author = 'Hajime Senuma',
Expand Down

0 comments on commit bc39052

Please sign in to comment.