Permalink
Commits on May 30, 2014
  1. Merge pull request #36 from ericpeden/memory-leaks

    rtyler committed May 30, 2014
    memory leak fixes
  2. Fix memory leaks in ProcessObject.

    Eric Peden committed May 30, 2014
  3. Fix a memory leak in yajl.dump().

    Eric Peden committed May 30, 2014
Commits on Oct 9, 2011
  1. Merge pull request #31 from rickeyski/master

    rtyler committed Oct 9, 2011
    Undefined Symbols in python3.2
Commits on Jul 8, 2011
  1. Fixed undefined symbol on python3.2

    rickey committed Jul 8, 2011
Commits on Apr 27, 2011
  1. handle the case of a unicode argument to loads() differently

    teepark committed Apr 27, 2011
    unfortunately this just needs to be inlined, a separate utf8_z_hash
    function won't work. the reason being that PyString_AsStringAndSize
    gives access to the string object's internal buffer rather than copying,
    and that string object was being decrefed away at the end of the
    function, but the buffer we got out of it still needed to be usable.
Commits on Oct 19, 2010
  1. make yajl.(De|En)coder subclassable. Add default methode to Encoder and

    Igor committed with rtyler Sep 12, 2010
    modify ProcessObject to mimick simplejson's JSONEncoder behaviour when
    encountering unknown types
Commits on Sep 12, 2010
  1. add tests for tuples and generator encoding

    Igor committed Sep 12, 2010
  2. change ProcessObject to treat lists, tuple and generators as iterator…

    Igor committed Sep 12, 2010
    …s when serializing
Commits on Aug 18, 2010
  1. Bump to the latest yajl

    rtyler committed Aug 18, 2010
    Change-Id: I75624cd1f1d73f686c2c200406fcd574692c421f
Commits on May 2, 2010
  1. Prevent SIGSEGV when encoding objects that refer to themselves

    teepark committed with rtyler Apr 30, 2010
    Also, there were a few places missing checks for yajl_gen_in_error_status
    
    http://github.com/rtyler/py-yajl/issues#issue/18
    
    Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
Commits on Apr 11, 2010
  1. Skip IssueThirteenTest on Python 2.4/2.5

    rtyler committed Apr 11, 2010
    Change-Id: I9cffc2e3876cb27a99acba9786e1a9ddf030cf5d
  2. Add `yajl.monkeypatch` to smuggle yajl into sys.modules['json']

    rtyler committed Apr 11, 2010
    http://github.com/rtyler/py-yajl/issues#issue/13
    
    Change-Id: I46924a0a2379c37a2cfc07def071ce59a22761d0
  3. Add a __version__ attribute onto the module

    rtyler committed Apr 11, 2010
    When building a module from inside the git tree, the version
    will also be "tagged" with the latest commit hash
    
    Change-Id: Ic4b3d4072afcfccbb7bcbe09afc49f950d25e535
  4. When dealing with PyLong objects, pull them out as long long's and us…

    rtyler committed Apr 11, 2010
    …e yajl_gen_number()
    
    On 32-bit machines, a PyLong_AsLong() call on a 64-bit number will fail,
    to remedy this we pull out the `long long` and use that to generate a buffer
    to pass into yajl_gen_number() which will handle it appropriately
    
    http://github.com/rtyler/py-yajl/issues#issue/16
    
    Change-Id: Iec800f6e765e14041d7a264e3fdecdbb15cc986d
  5. If ProcessObject() gives us a bad status, check to see if we have a P…

    rtyler committed Apr 11, 2010
    …ython exception to raise
    
    In the case of an OverflowError (see: issue #16), we want to raise *that*
    exception instead of raising our own TypeError
    
    Change-Id: I5b0cf5903b4cabe87df14137aa5d6c944ab3a270
Commits on Apr 10, 2010
  1. Add a test case for the long int overflow issue

    rtyler committed Apr 10, 2010
    Change-Id: I63a3b9393fa486ea55165ad17e4b3ecb787d980f
    http://github.com/rtyler/py-yajl/issues#issue/16
  2. Add a simple test runner to run tests for myself locally against Pyth…

    rtyler committed Apr 10, 2010
    …on2/3
    
    Change-Id: I1303c79fd2f0097b8435e8505cbecda1b2bb958d
Commits on Apr 9, 2010
  1. Bump to v0.3.6 for next series of development

    rtyler committed Apr 8, 2010
    This series of development should start to flesh out streaming,
    per my notes in:
        http://github.com/rtyler/py-yajl/issues#issue/14
    
    Change-Id: I5afdd19d91d380835d5087162abe068ea466e5a6
Commits on Apr 8, 2010
  1. Bump to 0.3.5

    rtyler committed Apr 8, 2010
    Change-Id: Id568a4c96593b052e25792e4fa90a32f992e82ff
  2. Properly handle multiple unicode keys inside of a dictionary

    rtyler committed Apr 7, 2010
    Previously, py-yajl used `yajl_gen_number()` in order to print a non-escaped
    buffer to the output stream. The ENSURE_NOT_KEY macro inside of yajl_gen.c
    would cause entries to be dropped and an unchecked `yajl_gen_keys_must_be_strings`
    status would be returned.
    
    In order to work around this, a portion of code has been lifted from yajl_gen.c and
    added to yajl_hacks.c which adds the function `yajl_gen_raw_string()` which prints
    the buffer, unescaped, to the output stream without calling ENSURE_NOT_KEY.
    
    http://github.com/rtyler/py-yajl/issues/#issue/12
    
    Change-Id: I75a71573c4949d04ad4d532c27f2b64486db906e
Commits on Apr 7, 2010
  1. Properly escape inbound slashes and double-quotes

    rtyler committed Apr 7, 2010
    Change-Id: I38c4d06f9c2c6cae361b9921ad1c51aeb5baacc8
  2. Enable new unicode tests to run on Python 2 and 3 properly

    rtyler committed Apr 7, 2010
    Change-Id: I5b680279773a13d7bb5490e194f1ebdbbde0f731
  3. Increment the py-yajl version to v0.3.4

    rtyler committed Apr 7, 2010
    Change-Id: I0b19f60aa91d51040ffc5735c9b88c5572cfd098
  4. When converting a tuple to a list, the count needs to be incremented …

    rtyler committed Apr 7, 2010
    …on the borrowed reference
    
    
    http://github.com/rtyler/py-yajl/issues#issue/11
    
    Change-Id: I54adeaf992d041f43b8d1c9c8eb3fbe957b85826
  5. Bump yajl to the latest version

    rtyler committed Apr 5, 2010
    Change-Id: I643ae26f8ea2ed521e14a3477dccdb47cde88766
  6. When not using the XML option, fall-back to unittest.main()

    rtyler committed Apr 5, 2010
    Change-Id: I266b5b6bd7aae778f8d6730a018353ff32a69eb0
  7. Properly escape unicode characters to their proper code points

    rtyler committed Mar 22, 2010
    Using yajl_gen_number() to circumvent yajl_gen_string()'s built-in
    escaping and performing the conversion of wide-characters to their
    respective code-points before passing the buffer along
    
    Testing latin-1 and simplified chinese characters.
    
    http://github.com/rtyler/py-yajl/issues#issue/7
    
    Change-Id: I3a851aeff6548c7a3246be09515731abaae1fe93
Commits on Mar 22, 2010
  1. Skip the "long" test in Python 3

    rtyler committed Mar 22, 2010
    Change-Id: Id93849811fbc904fd96a951b7e7b31c897f7eb14
  2. Encode keys properly for Python 3

    rtyler committed Mar 22, 2010
    Change-Id: I6f931788c6d9665bba98083335157318807c6a63
  3. When dealing with numbered keys in dictionaries, convert them to strings

    rtyler committed Mar 22, 2010
    Per issue #10, this is in line with the Python `json` module behavior:
    
        >>> import json
        >>> json.dumps({1:2})
        '{"1": 2}'
        >>> json.dumps({1.2:2})
        '{"1.2": 2}'
    
    Change-Id: Idd5c10e884227c5f82f19c6eabf083059f97950e
  4. Update ignore rules to exclude more

    rtyler committed Mar 22, 2010
    Change-Id: Ie3753837fc5266f34fa37309e3bf051d67b1bfbe