On Fri, Dec 22, 2017 at 9:43 AM, Chris Barker wrote:
> Every python object has an object identity, and the way to get it is with
> the id() function. The id is also part of the default object repr, but given
> that some, but only some objects have the id in their repr, it's
On Thu, Dec 21, 2017 at 12:34 PM, Barry wrote:
> > On 21 Dec 2017, at 06:57, Chris Barker wrote:
> >
> > in theory, the "goal" is for eval(repr(obj)) to return an equivalent
> object
>
> Is that really was the goal of repr?
I think so -- see the
I didn't think of this when we were discussing 448. I ran into this today,
so I agree with you that it would be nice to have this.
Best,
Neil
On Monday, December 4, 2017 at 1:02:09 AM UTC-5, Eric Wieser wrote:
>
> Hi,
>
> I've been thinking about the * unpacking operator while writing some
Could we call it "help"? Maybe add some beef to what's already there...
>>> help(lambda x,y,*args: x)
Help on function in module __main__:
lambda x, y, *args
On Thu, Dec 21, 2017 at 12:34 PM, Barry wrote:
>
>
> > On 21 Dec 2017, at 06:57, Chris Barker
> On 21 Dec 2017, at 06:57, Chris Barker wrote:
>
> in theory, the "goal" is for eval(repr(obj)) to return an equivelent object
Is that really was the goal of repr? If true then we would not need pickle.
I have always assumed that repr of simple things aims to