Python's qw

A Puzzled User kendear_nospam at nospam.com
Fri May 16 03:25:08 EDT 2003


Since Python doesn't have qw, is the following a
proper/usual way to simulate it?
thanks.


 >>> a = """sunflower
tulip
jasmine"""

 >>> string.split(a, "\n")
['sunflower', 'tulip', 'jasmine']





More information about the Python-list mailing list