<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>