Convert set to list

Ben Finney ben+python at benfinney.id.au
Thu Mar 31 20:06:16 EDT 2016


Larry Martell <larry.martell at gmail.com> writes:

> I feel like I've converted sets to lists before. But maybe not. Or
> maybe I am losing it from having worked 70 hours this week.
>
> Shouldn't this work?

In a Python interactive shell? Yes.

In the PDB shell? No, because some different names are defined as
commands. Such as ‘list’.

-- 
 \          “The trouble with Communism is the Communists, just as the |
  `\   trouble with Christianity is the Christians.” —Henry L. Mencken |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list