using Python base types for positional element constructor arguments
Brought to you by:
pabigot
When using positional arguments of base Python types to construct element content, this will succeed if the element has simple type. If the element has complex type with simple content, it will be rejected unless wrapped with pyxb.BIND(). This had been done to prevent undesired translation of 6 to '6', but is arguably inconsistent.
Placing this before the fail case in _TypeBinding_mixin._CompatibleValue fixes the issue, if the resulting test failures are acceptable.
commit bd84f5c66a53f485f4162cec868e5f8f0c8e2192
Author: Peter A. Bigot <pab@‌>
Date: Wed Dec 12 14:25:03 2012 -0600