[issue14145] string.rfind() returns AttributeError: 'list' object has no attribute 'rfind'
New submission from Griffin Smith : This occurs even when calling methods in modules (such as os.path.splitext), so I know it's not happening due to an error on my part Win7 SP1 -- components: Windows messages: 154529 nosy: glittershark priority: normal severity: normal status: open title: string.rfind() returns AttributeError: 'list' object has no attribute 'rfind' type: crash versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue14145> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14145] string.rfind() returns AttributeError: 'list' object has no attribute 'rfind'
Griffin Smith added the comment: Sorry about the lack of clarity there. I'm calling os.path.splitext("C:\blah.ext") and trackback is returning an AttributeError: 'list' object has no attribute 'rfind' from within the definition for splitext in the NTPath module. That's only the specific usage that brought about the error - I'm getting it for all calls to rfind everywhere. I will admit it's a very strange error - I did some searching around and nobody else is experiencing the bug, so clearly it's a problem with my particular installation of Python. I haven't used any third-party Python extensions, however, and everything seems like it's as vanilla as possible to me. -- ___ Python tracker <http://bugs.python.org/issue14145> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14145] string.rfind() returns AttributeError: 'list' object has no attribute 'rfind'
Griffin Smith added the comment: Actually, I did some diagnosis and it would appear it was actually an inappropriate call - I was assuming os.path.walk returned a tuple containing a list of files instead of a tuple containing a list of lists of files. Sorry about that. -- ___ Python tracker <http://bugs.python.org/issue14145> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com