Unable to create nillable instances of classes that require constructor arguments
Brought to you by:
pabigot
See https://sourceforge.net/p/pyxb/discussion/956708/thread/4647234c/
xs:dateTime inherits from datetime.datetime so attempts to create nil instances are rejected by the superclass constructor. This suggests we need a dummy class to produce instances of nil element values where there is no such thing as a nil instance of the type to which the value must conform.
After further consideration this can be handled similarly to other simple types that descend from Python classes by marking the instance as nil but allowing it to have a default value consistent with the Python type.
resolution set to fixed
commit 7e098ec00f0f51e24c03bc11effd11c0d5d88013
Author: Peter A. Bigot pab@pabigot.com
Date: Fri May 31 14:32:30 2013 -0500
:100644 100644 d7b2404... 3c7e6a3... M pyxb/binding/datatypes.py
:000000 100644 0000000... 6d5c256... A tests/trac/test-trac-0200.py
Patch for #200, since SF's git web interface does not make this easy to get