John Salerno wrote: > Bruno Desthuilliers wrote: > >> At least someone reading this may learn about the max_split param of >> str.split() !-) > > > LOL. The first thing I did was scramble to the docs to see what that > second parameter meant! :) > > But I was a little confused about why you included it. Just to insure > that only two elements are returned?
Yes. It may or not be a wise choice. Depends on the context, your design, etc... > I plan on making either a text file > or a database with quotes in that format (quote|author), so maybe the > maxsplit isn't needed? It's up to you. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list