Skip to content

Soundex method clobbers namespace #3

@jaraco

Description

@jaraco

Originally reported by: Anonymous


Computing the Soundex for a string that matches an imported module seems to clobber that module's namespace. See below from my interactive shell:

#!python

>>> import datetime, fuzzy
>>> soundex = fuzzy.Soundex(4)
>>> datetime
<module 'datetime' from '/usr/lib/python2.6/lib-dynload/datetime.so'>
>>> soundex('datetime')
'D350'
>>> datetime
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'datetime' is not defined

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions