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

New tutorial tests in test_generators.py #41510

Closed
francisgirard mannequin opened this issue Jan 31, 2005 · 3 comments
Closed

New tutorial tests in test_generators.py #41510

francisgirard mannequin opened this issue Jan 31, 2005 · 3 comments
Assignees
Labels
tests Tests in the Lib/test dir

Comments

@francisgirard
Copy link
Mannequin

francisgirard mannequin commented Jan 31, 2005

BPO 1113421
Nosy @birkenfeld, @birkenfeld, @rhettinger
Files
  • test_generators.py.310105.diff: Patch for test_generators.py
  • 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/birkenfeld'
    closed_at = <Date 2005-08-24.09:04:41.000>
    created_at = <Date 2005-01-31.20:16:03.000>
    labels = ['tests']
    title = 'New tutorial tests in test_generators.py'
    updated_at = <Date 2005-08-24.09:04:41.000>
    user = 'https://bugs.python.org/francisgirard'

    bugs.python.org fields:

    activity = <Date 2005-08-24.09:04:41.000>
    actor = 'georg.brandl'
    assignee = 'georg.brandl'
    closed = True
    closed_date = None
    closer = None
    components = ['Tests']
    creation = <Date 2005-01-31.20:16:03.000>
    creator = 'francisgirard'
    dependencies = []
    files = ['6466']
    hgrepos = []
    issue_num = 1113421
    keywords = ['patch']
    message_count = 3.0
    messages = ['47636', '47637', '47638']
    nosy_count = 4.0
    nosy_names = ['georg.brandl', 'georg.brandl', 'rhettinger', 'francisgirard']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1113421'
    versions = ['Python 2.5']

    @francisgirard
    Copy link
    Mannequin Author

    francisgirard mannequin commented Jan 31, 2005

    Two tests in test_generators.py makes use of an ad-hoc
    "LazyList" class which was a courageous attempt when it
    was written. This class have some problems though. This
    patch adds two more tests using the new itertools.tee
    function which favourably solves the problem -- with
    accompanying prose.
    More importantly, it shows what I think is now the best way
    to implement a whole family of classical FP algorithm in
    Python.

    The patch has been produce on the single file
    test_generators.py (without directory information).

    To apply it, change directory to :

    python/dist/src/Lib/test

    and simply,

    patch -p0 < test_generators.py.310105.diff

    The patch is here submitted after Craig Ringer had
    suggested me to do so on the python discussion list
    "python-list".

    Francis Girard
    FRANCE

    @francisgirard francisgirard mannequin closed this as completed Jan 31, 2005
    @francisgirard francisgirard mannequin added the tests Tests in the Lib/test dir label Jan 31, 2005
    @francisgirard francisgirard mannequin closed this as completed Jan 31, 2005
    @francisgirard francisgirard mannequin added the tests Tests in the Lib/test dir label Jan 31, 2005
    @rhettinger
    Copy link
    Contributor

    Logged In: YES
    user_id=80475

    Reinhold, feel free to check this in for Py2.5.
    Do parenthetically note that FP means "functional programming".

    @birkenfeld
    Copy link
    Member

    Logged In: YES
    user_id=1188172

    Okay, committed as Lib/test/test_generators.py r1.47.

    @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
    tests Tests in the Lib/test dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants