[Python-modules-team] Bug#567739: namespace pollution
martin f krafft
madduck at debian.org
Sun Jan 31 01:15:53 UTC 2010
Package: python-django-registration
Version: 0.7-2
Severity: normal
python-django-registration drops a module called 'registration' into
the main python search path, but this module is only usable with
django. Therefore, it should be called django-registration, or
django.registration.
I realise that upstream is guilty of the namespace pollution and
that there are tools out there that use 'registration' as a name.
Therefore, a deprecation strategy would be in order, e.g. with
a file containing:
import warnings
msg = """The module 'registration' has moved to
'django.registration', and is thus deprecated."""
warnings.warn(msg, DeprecationWarning, stacklevel=2)
Ideally, this would be pushed upstream, if you can convince them.
Thanks,
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
.''`. martin f. krafft <madduck at d.o> Related projects:
: :' : proud Debian developer http://debiansystem.info
`. `'` http://people.debian.org/~madduck http://vcs-pkg.org
`- Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20100131/12c69315/attachment.pgp>
More information about the Python-modules-team
mailing list