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

more apply removals #38144

Closed
tzot mannequin opened this issue Mar 11, 2003 · 11 comments
Closed

more apply removals #38144

tzot mannequin opened this issue Mar 11, 2003 · 11 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@tzot
Copy link
Mannequin

tzot mannequin commented Mar 11, 2003

BPO 701494
Nosy @doerwalter, @brettcannon, @rhettinger
Files
  • apply_removal.diff: diff -u of all files above
  • apply_removal2.diff: Remove distutils, logging, bsddb from patch, simplify
  • apply3.diff: Brett's patch: Remove test_builtin, minor changes
  • 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 = 'https://github.com/rhettinger'
    closed_at = <Date 2003-04-06.09:20:23.000>
    created_at = <Date 2003-03-11.12:32:59.000>
    labels = ['library']
    title = 'more apply removals'
    updated_at = <Date 2003-04-06.09:20:23.000>
    user = 'https://bugs.python.org/tzot'

    bugs.python.org fields:

    activity = <Date 2003-04-06.09:20:23.000>
    actor = 'rhettinger'
    assignee = 'rhettinger'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2003-03-11.12:32:59.000>
    creator = 'tzot'
    dependencies = []
    files = ['5082', '5083', '5084']
    hgrepos = []
    issue_num = 701494
    keywords = ['patch']
    message_count = 11.0
    messages = ['42991', '42992', '42993', '42994', '42995', '42996', '42997', '42998', '42999', '43000', '43001']
    nosy_count = 4.0
    nosy_names = ['doerwalter', 'brett.cannon', 'rhettinger', 'tzot']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue701494'
    versions = ['Python 2.3']

    @tzot
    Copy link
    Mannequin Author

    tzot mannequin commented Mar 11, 2003

    More apply() removals from the following files:
    ./compiler/transformer.py
    ./curses/wrapper.py
    ./distutils/command/build_ext.py
    ./distutils/command/build_py.py
    ./distutils/archive_util.py
    ./distutils/dir_util.py
    ./distutils/filelist.py
    ./distutils/util.py
    ./bsddb/test/test_basics.py
    ./bsddb/test/test_dbobj.py
    ./bsddb/dbobj.py
    ./bsddb/dbshelve.py
    ./lib-tk/Canvas.py
    ./lib-tk/Dialog.py
    ./lib-tk/ScrolledText.py
    ./lib-tk/Tix.py
    ./lib-tk/Tkinter.py
    ./lib-tk/tkColorChooser.py
    ./lib-tk/tkCommonDialog.py
    ./lib-tk/tkFont.py
    ./lib-tk/tkMessageBox.py
    ./lib-tk/tkSimpleDialog.py
    ./lib-tk/turtle.py
    ./test/reperf.py
    ./test/test_b1.py
    ./test/test_builtin.py
    ./test/test_curses.py
    ./logging/init.py
    ./logging/config.py
    ./xml/dom/minidom.py
    ./plat-mac/Carbon/MediaDescr.py
    ./plat-mac/EasyDialogs.py
    ./plat-mac/FrameWork.py
    ./plat-mac/MiniAEFrame.py
    ./plat-mac/argvemulator.py
    ./plat-mac/icopen.py

    I know that the edited files are syntactically correct (ie
    compileall.compile_dir throws no errors), but please help
    testing that functionality is the same. I am testing at
    the moment for lib-tk changes.

    @tzot tzot mannequin closed this as completed Mar 11, 2003
    @tzot tzot mannequin assigned rhettinger Mar 11, 2003
    @tzot tzot mannequin added the stdlib Python modules in the Lib dir label Mar 11, 2003
    @tzot tzot mannequin closed this as completed Mar 11, 2003
    @tzot tzot mannequin assigned rhettinger Mar 11, 2003
    @tzot tzot mannequin added the stdlib Python modules in the Lib dir label Mar 11, 2003
    @doerwalter
    Copy link
    Contributor

    Logged In: YES
    user_id=89016

    There is no longer a test/test_b1.py in current CVS, so it
    seems you've done the diff against an older version. Could
    you update the patch for current CVS?

    Also according to PEP-291
    (http://www.python.org/peps/pep-0291.html) both distutils
    and logging should remain 1.5.2 compatible.

    @rhettinger
    Copy link
    Contributor

    Logged In: YES
    user_id=80475

    Also, be sure to read the PEP on which modules should
    not be modernized. Sometimes that information is written
    in the file itself rather than the pep. For instance, the
    logging package is supposed to be kept in a form that
    runs on older pythons.

    @tzot
    Copy link
    Mannequin Author

    tzot mannequin commented Mar 12, 2003

    Logged In: YES
    user_id=539787

    Walter: I untargzipped the python-latest.tgz of 2003-03-10
    over an older directory (I think about a month ago), therefore
    the existence of test_b1.py. All files that exist in the current
    dist were also current.
    Raymond: you are correct about my not reading the file
    headers (it was a multifile vi session with a +/"apply("
    option...)
    I just had a little time available for non-creative work, so I
    checked, saw that Guido already had changed most of the
    library files, and offered the change of the rest of them; you
    guys can do whatever you want with it :)
    The lib-tk changes seem to be ok, after running some UI
    python scripts I have. I haven't checked bsddb yet.

    @doerwalter
    Copy link
    Contributor

    Logged In: YES
    user_id=89016

    I've gone over the patch and simplyfied it a bit (e.g.
    replacing f(*(1,2,3) + args) with f(1,2,3, *args)). I've
    also removed the patches for distutils, logging and bsddb
    (code at the start of bsddb/dbutils.py seems to indicate
    that it should be usable with versions prior to 2.3).

    Raymond, do you have time to recheck the patch?

    @brettcannon
    Copy link
    Member

    Logged In: YES
    user_id=357491

    I went through Walter's diff by hand and found two places where more clean-up could be done and two show-stoppers. In case I don't get my version of the patch up fast enough for people, the files that have spots that could use some more minor clean-up are Lib/lib-tk/Tix.py and Lib/lib-tk/Tkinter.py . The showstoppers are in Lib/lib-tk/tkCommonDialog.py (method call that didn't get *'ed) and Lib/test/test_builtin.py (test_builtin.py should not even be patched since the affected lines are in the tests for apply() itself).

    I will have my version up before the weekend.

    @rhettinger
    Copy link
    Contributor

    Logged In: YES
    user_id=80475

    Good job Brett :-)

    I'll wait for your next post before going through this one
    with a fine toothed comb.

    -- R

    @brettcannon
    Copy link
    Member

    Logged In: YES
    user_id=357491

    Well, I have now run into my first issue of not having commit priveleges; I can't upload my diff. So you will have to get it from http://www.ocf.berkeley.edu/~bac/apply3.diff . The only difference between my diff and Walter's is that I changed three files and removed the diff for test_builtin.py .

    @doerwalter
    Copy link
    Contributor

    Logged In: YES
    user_id=89016

    This shouldn't have anything to do with commit privileges.
    I'm uploading your apply3.diff so it doesn't get lost. If
    test_builtin calls apply it should probably make sure that
    both the PendingDeprecationWarning and the
    DeprecationWarning that might be issued some day are
    switched off.

    @brettcannon
    Copy link
    Member

    Logged In: YES
    user_id=357491

    Well, then SF is broken right now because I don't have an option to upload.

    As for the PendingDeprecationWarning check, I think that is a good idea. Shouldn't that be a separate patch, though? I personally can't do it any time soon because of PyCon plus I have updating test_urllib on my todo list (thanks, Raymond =).

    @rhettinger
    Copy link
    Contributor

    Logged In: YES
    user_id=80475

    Re-reviewed files. Fixed one incomplete + (,args) in Tix.py.
    Added pending deprecation doc string to apply().

    Marked approved and applied (no pun intended).

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants