Partition Recursive

macm moura.mario at gmail.com
Thu Dec 23 12:26:47 EST 2010


Hi Folks

I have this:

url = 'http://docs.python.org/dev/library/stdtypes.html?
highlight=partition#str.partition'

So I want convert to

myList =
['http',':','//','docs','.','python','.','org','/','dev','/','library','/','stdtypes','.','html','?','highlight','=','partition','#','str','.','partition']

The reserved char are:

specialMeaning = ["//",";","/", "?", ":", "@", "=" , "&","#"]

Regards

Mario



More information about the Python-list mailing list