twoolie/NBT — pull request #30 by macfreek (2012-03-13 15:20:01+00:00)
Title: (2/5) Changes to NBT

Warning: this pull request contains the non-backware compatible change to TAG_Byte_Array.

This pull request is branched after pull request #29; please examine that request first.

Changes to nbt.py:
* Use Python bytearray() to store TAG_Byte_Array().value. Closes #26
* Bump version number to signify backward incompatible change
* Make all TAG object behave like Python object by Mixin the MutableMapping, MutableSequence, Sequence interfaces from the collections module.
* use struct.Struct() for FMT in nbt. I'm told it is fractionally faster (I haven't tried).

Changes to region.py:
* Revert chunk count commit a3fdb0d5cd74b9858a3e9f41c50059997c51a9d1. Recloses (reopens?) #28
* Bug fix for when an empty Region without associated file is created