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

two fileinput enhancements (fileno, openhook) #42057

Closed
birkenfeld opened this issue Jun 5, 2005 · 5 comments
Closed

two fileinput enhancements (fileno, openhook) #42057

birkenfeld opened this issue Jun 5, 2005 · 5 comments
Labels
stdlib Python modules in the Lib dir

Comments

@birkenfeld
Copy link
Member

BPO 1215184
Nosy @birkenfeld
Files
  • fileinput-fileno.diff
  • fileinput-openhook.diff
  • 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 2006-02-19.14:58:46.000>
    created_at = <Date 2005-06-05.14:52:08.000>
    labels = ['library']
    title = 'two fileinput enhancements (fileno, openhook)'
    updated_at = <Date 2006-02-19.14:58:46.000>
    user = 'https://github.com/birkenfeld'

    bugs.python.org fields:

    activity = <Date 2006-02-19.14:58:46.000>
    actor = 'georg.brandl'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2005-06-05.14:52:08.000>
    creator = 'georg.brandl'
    dependencies = []
    files = ['6685', '6686']
    hgrepos = []
    issue_num = 1215184
    keywords = ['patch']
    message_count = 5.0
    messages = ['48440', '48441', '48442', '48443', '48444']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'jjlee']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1215184'
    versions = ['Python 2.5']

    @birkenfeld
    Copy link
    Member Author

    These two patches enhance the fileinput module.

    The fileno patch adds a "fileno()" method that returns
    the current file number.

    The openhook patch adds a possibility to specify an
    opening hook, that is, instead of calling open(), the
    hook is called. This is useful, for example, for
    transparently decompressing gzip files, as wished in
    RFE bpo-563141.

    Docs and tests will be added if this is welcomed.

    @birkenfeld birkenfeld added the stdlib Python modules in the Lib dir label Jun 5, 2005
    @birkenfeld birkenfeld added the stdlib Python modules in the Lib dir label Jun 5, 2005
    @jjlee
    Copy link
    Mannequin

    jjlee mannequin commented Dec 4, 2005

    Logged In: YES
    user_id=261020

    I don't see any attached openhook patch.

    The fileno patch looks fine, but personally I would indeed
    welcome docs and tests :-)

    @birkenfeld
    Copy link
    Member Author

    Logged In: YES
    user_id=1188172

    Second patch attached, sorry ;)

    @birkenfeld
    Copy link
    Member Author

    Logged In: YES
    user_id=1188172

    Committed fileno patch in rev. 42493.

    @birkenfeld
    Copy link
    Member Author

    Logged In: YES
    user_id=1188172

    Committed (updated) openhook patch incl. docs and tests in
    rev. 42495.

    @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

    1 participant