ruby %w equivalent

Antoine De Groote antoine at vo.lu
Sun Sep 24 17:35:55 EDT 2006


Hi everybody,

is there a python equivalent for the ruby %w operator?
%w{a b c} creates an array with strings "a", "b", and "c" in ruby...

Thanks a lot
Regards,
antoine



More information about the Python-list mailing list