Type Problem

Victor Subervi victorsubervi at gmail.com
Tue Jul 15 08:41:03 EDT 2008


Hi;
Forgive multiple posts in one day: online very infrequently
Why am I getting this error?
import os
dir_dict = {6:36, 5:26, 4:22, 3:18, 2:14, 1:12}
cur_dir = os.getcwd()
dirs = os.path.split(cur_dir)
len = len(dirs)
type(len(dirs))
Traceback (most recent call last):
  File "<pyshell#11>", line 1, in <module>
    type(len(dirs))
TypeError: 'int' object is not callable

Forgot to bring it with me, but type(len) gives me an intelligent response.
TIA,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080715/4d5764bc/attachment.html>


More information about the Python-list mailing list