Re: Convert set to list

2016-03-31 Thread Rob Gaddi
Larry Martell wrote: > 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? > > (Pdb) print block['relative_chart1']['vessel_names'] > set([u'Common Carotid', u'External Carotid', u'Internal Caroti

Re: Convert set to list

2016-03-31 Thread Larry Martell
On Thursday, March 31, 2016, Ben Finney wrote: > Larry Martell > 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 she

Re: Convert set to list

2016-03-31 Thread Ben Finney
Larry Martell 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

Re: Convert set to list

2016-03-31 Thread Chris Angelico
On Fri, Apr 1, 2016 at 10:56 AM, Larry Martell wrote: > 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? > > (Pdb) print block['relative_chart1']['vessel_names'] > set([u'Common Carotid', u'Ext

Convert set to list

2016-03-31 Thread Larry Martell
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? (Pdb) print block['relative_chart1']['vessel_names'] set([u'Common Carotid', u'External Carotid', u'Internal Carotid']) (Pdb) type(block['relative_ch