From: Jeff H. <je...@ac...> - 2009-09-15 23:30:49
|
On 15/09/2009 4:15 PM, Alexandre Ferrieux wrote: > On 9/16/09, Jeff Hobbs<je...@ac...> wrote: >> On 15/09/2009 3:47 PM, Alexandre Ferrieux wrote: >> >>> Since the question is apparently too stupid to deserve an answer, and >>> since the salient drawback of my proposal seems to be the stdout part, >>> let's put it another way: >>> >>> Imagine one day we also want the refcount. What would be best: >>> >>> (a) yet another primitive [refcount] alongside [representation] >>> (b) an evolution of the 'obfuscated' sentence so that it also >>> gives the refcount >> >> I have no issue with extending [representation] to output refcount and >> other info as well. It should stick to one command. > > OK, thanks Jeff. > So, would you basically accept a patch returning (not outputting): > > value is a bignum with a refcount of 14, object pointer at > 0x12345678 and intrep at 0x45671234 Indeed, and actually I wouldn't mind seeing a dict similar to the output from 'info frame', but if Donal wants it to be slightly more painful to parse, I won't grumble. ;) Jeff |