Grss.Person

Fields

None

Methods

class

new (name, email, uri)

get_email ()

get_name ()

get_uri ()

ref ()

unref ()

Details

class Grss.Person

GrssPerson is an opaque structure whose members cannot be accessed directly.

New in version 0.7.

classmethod new(name, email, uri)
Parameters:
  • name (str) – the name of the person

  • email (str or None) – the email of the person, or None

  • uri (str or None) – the homepage (uri) of the person, or None

Returns:

a new Grss.Person, or None

Return type:

Grss.Person

Creates a new Grss.Person.

New in version 0.7.

get_email()
Returns:

the email of person. The returned string is owned by Grss.Person and it should not be modified or freed.

Return type:

str

New in version 0.7.

get_name()
Returns:

the name of person. The returned string is owned by Grss.Person and it should not be modified or freed.

Return type:

str

New in version 0.7.

get_uri()
Returns:

the website (uri) of person. The returned string is owned by Grss.Person and it should not be modified or freed.

Return type:

str

New in version 0.7.

ref()
Returns:

the Grss.Person with the reference count increased

Return type:

Grss.Person

Atomically increments the reference count of self by one.

New in version 0.7.

unref()

Atomically decrements the reference count of self by one.

When the reference count reaches zero, the resources allocated by self are freed

New in version 0.7.