<p dir="ltr">Any of idea why making that call over and over again would seem to slow down over time?</p>
<p dir="ltr">-Scott</p>
<div class="gmail_quote">On Apr 17, 2014 7:29 PM, "Greg Clayton" <<a href="mailto:gclayton@apple.com">gclayton@apple.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yep, it is the python keyword... You currently need to use your workaround:<br>
<br>
rvalue.__getattr__("as")<br>
<br>
Glad we found it and that there is nothing wrong with the API (we are finding children of anonymous unions, phew!).<br>
<br>
Greg<br>
<br>
On Apr 17, 2014, at 3:46 PM, Scott Knight <<a href="mailto:knightsc@gmail.com">knightsc@gmail.com</a>> wrote:<br>
<br>
> typedef struct RVALUE {<br>
> Â  Â  union {<br>
> Â  Â  Â  struct {<br>
> Â  Â  Â  Â  Â  VALUE flags; Â  Â  Â  Â  Â  Â  Â  Â /* always 0 for freed obj */<br>
> Â  Â  Â  Â  Â  struct RVALUE *next;<br>
> Â  Â  Â  } free;<br>
> Â  Â  Â  struct RBasic Â basic;<br>
> Â  Â  Â  struct RObject object;<br>
> Â  Â  Â  struct RClass Â klass;<br>
> Â  Â  Â  struct RFloat Â flonum;<br>
> Â  Â  Â  struct RString string;<br>
> Â  Â  Â  struct RArray Â array;<br>
> Â  Â  Â  struct RRegexp regexp;<br>
> Â  Â  Â  struct RHash Â  hash;<br>
> Â  Â  Â  struct RData Â  data;<br>
> Â  Â  Â  struct RTypedData Â  typeddata;<br>
> Â  Â  Â  struct RStruct rstruct;<br>
> Â  Â  Â  struct RBignum bignum;<br>
> Â  Â  Â  struct RFile Â  file;<br>
> Â  Â  Â  struct RNode Â  node;<br>
> Â  Â  Â  struct RMatch Â match;<br>
> Â  Â  Â  struct RRational rational;<br>
> Â  Â  Â  struct RComplex complex;<br>
> Â  Â  Â  struct {<br>
> Â  Â  Â  Â  Â  struct RBasic basic;<br>
> Â  Â  Â  Â  Â  VALUE v1;<br>
> Â  Â  Â  Â  Â  VALUE v2;<br>
> Â  Â  Â  Â  Â  VALUE v3;<br>
> Â  Â  Â  } values;<br>
> Â  Â  } as;<br>
> #if GC_DEBUG<br>
> Â  Â  const char *file;<br>
> Â  Â  VALUE line;<br>
> #endif<br>
> } RVALUE;<br>
><br>
<br>
</blockquote></div>