(self, item, *, where=None)
Args:
          item (object): to be wrapped with :py:obj:`ensure_conversion`
            and used as a conversion on each item of a collection.
          where: conversion to be used in ``if`` clause of a comprehension

            e.g. for ``[i * 2 for i in l if i > 0]`` an item would be
            ``c.generator_comp(c.this() * 2, where=c.this() > 0)``
Args:
          item (object): to be wrapped with :py:obj:`ensure_conversion`
            and used as a conversion on each item of a collection.
          where: conversion to be used in ``if`` clause of a comprehension
Args : item ( object ) : to be wrapped with : py : obj : ensure_conversion and used as a conversion on each item of a collection . where : conversion to be used in if clause of a comprehension
def __init__(self, item, *, where=None):
        """
        Args:
          item (object): to be wrapped with :py:obj:`ensure_conversion`
            and used as a conversion on each item of a collection.
          where: conversion to be used in ``if`` clause of a comprehension

            e.g. for ``[i * 2 for i in l if i > 0]`` an item would be
            ``c.generator_comp(c.this() * 2, where=c.this() > 0)``
        """
        super().__init__()
        self.item = self.ensure_conversion(item)
        self.where = None if where is None else self.ensure_conversion(where)
def __init__ ( self , item , * , where = None ) : super ( ) . __init__ ( ) self . item = self . ensure_conversion ( item ) self . where = None if where is None else self . ensure_conversion ( where )