title: Scapy BitField and type() question
body: <p>I'm writing an addon for scapy, and encountered a problem. I had to slightly modify the original scapy code (every class is inheriting from object) The modified code can be found here: <a href="http://pastebin.com/pjcL1KJv" rel="nofollow">http://pastebin.com/pjcL1KJv</a></p>
  
  <p>The code I wrote is the following:</p>
  
  <pre><code>class Foo():
     array=[ BitField("foo",0x0,2),
             BitField("foo1",0x0,2),
             BitField("bar",0x0,2),
             BitField("blub",None,2)
   ]
  def returnArr(a):  
        for i in a.array:
             print type(i.default)
  
  
  if __name__ == "__main__":
      a=Foo()
      a.blub=0x23
      returnArr(a)
  </code></pre>
  
  <p>The output:</p>
  
  <p>&lt;
  type 'int'></p>
  
  <p>&lt;
  type 'int'></p>
  
  <p>&lt;
  type 'int'></p>
  
  <p>&lt;
  type 'NoneType'></p>
  
  <p>My question:
  Is it possible to detect if the second paremeter of <code>BitField("foo",0x0,2)</code> is <code>0x0</code> or something else? If it is possible, how would I do that? If not, why?</p>