Package pygeodesy :: Module named :: Class _Named
[frames] | no frames]

Class _Named

object --+
         |
        _Named
Known Subclasses:

(INTERNAL) Root class for named objects.

Instance Methods
 
_DOT_(self, *names)
(INTERNAL) Period-join self.name and names.
 
__repr__(self)
Default repr(self).
 
__str__(self)
Default str(self).
 
attrs(self, *names, **pairs_kwds)
Join attributes as name=value strings, with floats formatted by function pygeodesy.fstr.
 
classof(self, *args, **kwds)
Create another instance of this very class.
 
copy(self, deep=False, name='')
Make a shallow or deep copy of this instance.
 
dup(self, name='', **items)
Duplicate this instance, replacing some items.
 
rename(self, name)
Change the name.
 
toRepr(self, **unused)
Default repr(self).
 
toStr(self, **unused)
Default str(self).
 
toStr2(self, **kwds)
DEPRECATED, use method toRepr.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties
  classname
Get this object's [module.]class name (str), see property .classnaming and function classnaming.
  classnaming
Property to get and set the class naming (bool).
  name
Property to get and set the name (str).
  named
Get the name or class name or "" (str).
  named2
Get the class name and/or the name or "" (str).
  named3
Get the prefixed class name and/or the name or "" (str).
  named4
Get the package.module.class name and/or the name or "" (str).

Inherited from object: __class__

Method Details

__repr__ (self)
(Representation operator)

 

Default repr(self).

Overrides: object.__repr__

__str__ (self)
(Informal representation operator)

 

Default str(self).

Overrides: object.__str__

attrs (self, *names, **pairs_kwds)

 

Join attributes as name=value strings, with floats formatted by function pygeodesy.fstr.

Arguments:
  • names - The attribute names (strs).
  • pairs_kwds - Keyword argument for function pygeodesy.pairs, except Nones=True to in- or exclude missing or None-valued attributes.
Returns:
All name=value pairs, joined (str).

See Also: Functions pygeodesy.attrs and pygeodesy.pairs.

classof (self, *args, **kwds)

 

Create another instance of this very class.

Arguments:
  • args - Optional, positional arguments.
  • kwds - Optional, keyword arguments.
Returns:
New instance (self.__class__).

copy (self, deep=False, name='')

 

Make a shallow or deep copy of this instance.

Arguments:
  • deep - If True make a deep, otherwise a shallow copy (bool).
  • name - Optional, non-empty name (str).
Returns:
The copy (This class or sub-class thereof).

dup (self, name='', **items)

 

Duplicate this instance, replacing some items.

Arguments:
  • name - Optional new name (str).
  • items - Attributes to be changed (any).
Returns:
The duplicate (This class or sub-class thereof).
Raises:
  • AttributeError - Some items invalid.

rename (self, name)

 

Change the name.

Arguments:
  • name - The new name (str).
Returns:
The old name (str).

toStr2 (self, **kwds)

 

DEPRECATED, use method toRepr.

Decorators:
  • @deprecated_method

Property Details

classname

Get this object's [module.]class name (str), see property .classnaming and function classnaming.

Get method:
classname(self) - Get this object's [module.]class name (str), see property .classnaming and function classnaming.
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(inst) - Zap the cached/memoized property value.

classnaming

Property to get and set the class naming (bool).

Get method:
classnaming(self) - Get the class naming (bool), see function classnaming.
Set method:
classnaming(self, prefixed) - Set the class naming for [module.].class names.

name

Property to get and set the name (str).

Get method:
name(self) - Get the name (str).
Set method:
name(self, name) - Set the name.

named

Get the name or class name or "" (str).

Get method:
named(self) - Get the name or class name or "" (str).
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(inst) - Zap the cached/memoized property value.

named2

Get the class name and/or the name or "" (str).

Get method:
named2(self) - Get the class name and/or the name or "" (str).
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(inst) - Zap the cached/memoized property value.

named3

Get the prefixed class name and/or the name or "" (str).

Get method:
named3(self) - Get the prefixed class name and/or the name or "" (str).
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(inst) - Zap the cached/memoized property value.

named4

Get the package.module.class name and/or the name or "" (str).

Get method:
named4(self) - Get the package.module.class name and/or the name or "" (str).
Set method:
_fset_error(inst, val) - Throws an AttributeError, always.
Delete Method:
_fdel(inst) - Zap the cached/memoized property value.