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