Gsf.InputTextline

g GObject.Object GObject.Object Gsf.Input Gsf.Input GObject.Object->Gsf.Input Gsf.InputTextline Gsf.InputTextline Gsf.Input->Gsf.InputTextline

Subclasses:None

Methods

Inherited:Gsf.Input (24), GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new (source)
  ascii_gets ()
  utf8_gets ()

Virtual Methods

Inherited:Gsf.Input (3), GObject.Object (7)

Properties

Inherited:Gsf.Input (7)

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)

Class Details

class Gsf.InputTextline(**kwargs)
Bases:Gsf.Input
Abstract:No
classmethod new(source)
Parameters:source (Gsf.Input) – in some combination of ascii and utf8
Returns:a new file
Return type:Gsf.Input or None

This adds a reference to source.

ascii_gets()
Returns:the string read, or None on eof.
Return type:bytes or None

A utility routine to read things line by line from the underlying source. Trailing newlines and carriage returns are stripped, and the resultant buffer can be edited.

utf8_gets()
Returns:the string read, or None on eof.
Return type:bytes or None

A utility routine to read things line by line from the underlying source. Trailing newlines and carriage returns are stripped, and the resultant buffer can be edited.