[Tutor] unstring

Jim Mooney cybervigilante at gmail.com
Wed Jun 19 07:34:23 CEST 2013


On 18 June 2013 19:41, Steven D'Aprano <steve at pearwood.info> wrote:
> On Tue, Jun 18, 2013 at 06:41:01PM -0700, Jim Mooney wrote:
>> Is there a way to unstring something? That is str(object) will give me
>> a string, but what if I want the original object back, for some
>> purpose, without a lot of foofaraw?
>
> The short answer is, "no".

It just occurred to me that a sort key can sort by changing the input
to return a string, but the actual list member is not changed to a
string, so maybe there's a fudge there.

-- 
Jim
Scorn that fancy food - put bread in your head!


More information about the Tutor mailing list