E
Emile van Sebille
Does anyone else consider this a bug?
Python 2.6.2 (r262:71600, Jun 16 2009, 11:09:39)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
---1---
---2---
I got stung because I expected ---2--- to do what ---3--- did.
Emile
Python 2.6.2 (r262:71600, Jun 16 2009, 11:09:39)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
---1---
['101', '102', '103', '104', '105']>>> skippedords = '1,2,3,4,5'
>>> ['10%s' % ii for ii in skippedords.split(',')]
---2---
[]['10']>>> skippedords = ''
>>> ['10%s' % ii for ii in skippedords.split(',')]
---3--->>> test = ''
>>> ['%s' % ii for ii in test.split() ]
I got stung because I expected ---2--- to do what ---3--- did.
Emile