Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mhlib does not emit deprecation warning #52214

Closed
sjoerdmullender opened this issue Feb 19, 2010 · 7 comments
Closed

mhlib does not emit deprecation warning #52214

sjoerdmullender opened this issue Feb 19, 2010 · 7 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@sjoerdmullender
Copy link
Member

BPO 7966
Nosy @sjoerdmullender, @merwok, @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2012-02-21.03:53:03.680>
created_at = <Date 2010-02-19.14:47:55.709>
labels = ['type-bug', 'library']
title = 'mhlib does not emit deprecation warning'
updated_at = <Date 2012-02-21.03:53:03.678>
user = 'https://github.com/sjoerdmullender'

bugs.python.org fields:

activity = <Date 2012-02-21.03:53:03.678>
actor = 'eric.araujo'
assignee = 'none'
closed = True
closed_date = <Date 2012-02-21.03:53:03.680>
closer = 'eric.araujo'
components = ['Library (Lib)']
creation = <Date 2010-02-19.14:47:55.709>
creator = 'sjoerd'
dependencies = []
files = []
hgrepos = []
issue_num = 7966
keywords = []
message_count = 7.0
messages = ['99572', '99573', '99583', '99584', '99585', '100670', '153845']
nosy_count = 4.0
nosy_names = ['sjoerd', 'eric.araujo', 'r.david.murray', 'l0nwlf']
pr_nums = []
priority = 'low'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue7966'
versions = ['Python 2.7']

@sjoerdmullender
Copy link
Member Author

The mhlib standard library uses the deprecated module multifile. This causes a warning to be printed whenever mhlib is used.

As a matter of policy, no deprecated features should be used anywhere in the standard library.

@sjoerdmullender sjoerdmullender added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Feb 19, 2010
@l0nwlf
Copy link
Mannequin

l0nwlf mannequin commented Feb 19, 2010

There is a discussion going on python-dev too, the author being sjoerd.
http://mail.python.org/pipermail/python-dev/2010-February/097772.html
GvR reply : http://mail.python.org/pipermail/python-dev/2010-February/097774.html

@bitdancer
Copy link
Member

The outcome of that discussion is that what this implies is that there is insufficient test coverage of mhlib, such that no one noticed that mhlib was generating deprecation messages.

mhlib is itself effectively deprecated, since it no longer exists in py3k. If someone wants to propose patches to fix mhlib that's fine, but this is a very low priority issue.

@sjoerdmullender
Copy link
Member Author

What's difficult about just doing:

import mhlib

? That's all it takes to get the warning.

@bitdancer
Copy link
Member

Hmm. Apparently the actual bug is that mhlib itself does not produce a deprecated message. The test was explicitly changed to mark the module as one that is deprecated.

@bitdancer bitdancer changed the title mhlib uses deprecated module mhlib does not emit deprecation warning Feb 19, 2010
@sjoerdmullender
Copy link
Member Author

mhlib is not officially deprecated, if I may believe PEP-4.
Therefore I do not agree with the change that was made to this bug report.
As far as I am concerned, the bug remains that mhlib uses a deprecated module.

@merwok
Copy link
Member

merwok commented Feb 21, 2012

This was fixed by r63030.

@merwok merwok closed this as completed Feb 21, 2012
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants