(descriptor)
return Source(pointer)
Make a new source from a file descriptor (a small integer).

        Make a new source that is attached to the descriptor. For example::

            source = pyvips.Source.new_from_descriptor(0)

        Makes a descriptor attached to stdin.

        You can pass this source to (for example) :meth:`new_from_source`.
Make a new source from a file descriptor (a small integer).
Make a new source from a file descriptor ( a small integer ) .
def new_from_descriptor(descriptor):
        """Make a new source from a file descriptor (a small integer).

        Make a new source that is attached to the descriptor. For example::

            source = pyvips.Source.new_from_descriptor(0)

        Makes a descriptor attached to stdin.

        You can pass this source to (for example) :meth:`new_from_source`.

        """

        # logger.debug('VipsSource.new_from_descriptor: descriptor = %d',
        #   descriptor)

        # sources are mutable, so we can't use the cache
        pointer = vips_lib.vips_source_new_from_descriptor(descriptor)
        if pointer == ffi.NULL:
            raise Error("can't create source from descriptor {0}"
                        .format(descriptor))

        return Source(pointer)
def new_from_descriptor ( descriptor ) : # logger.debug('VipsSource.new_from_descriptor: descriptor = %d', #   descriptor) # sources are mutable, so we can't use the cache pointer = vips_lib . vips_source_new_from_descriptor ( descriptor ) if pointer == ffi . NULL : raise Error ( "can't create source from descriptor {0}" . format ( descriptor ) ) return Source ( pointer )