Skip to content

New tutorial tests in test_generators.py #41510

Description

@francisgirard
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']

    Linked PRs

    Activity

    1. francisgirard commented on Jan 31, 2005

      francisgirardmannequin
      MannequinAuthor

      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

    2. rhettinger commented on Aug 24, 2005

      @rhettinger
      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".

    3. birkenfeld commented on Aug 24, 2005

      @birkenfeld
      Member

      Logged In: YES
      user_id=1188172

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

    4. transferred this issue fromon Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    testsTests in the Lib/test dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions