"len()" gives a curious error

Jason Harper JasonHarper at pobox.com
Wed Mar 5 16:19:44 EST 2003


Mike McKernan wrote:
> addr, len = string.split(args[0],"/")

> print len(addr)

You overwrote the 'len' builtin function with the results of a previous split.
	Jason Harper




More information about the Python-list mailing list