Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Private Attributes
urllib.parse._NetlocResultMixinBase Class Reference
Inheritance diagram for urllib.parse._NetlocResultMixinBase:
Inheritance graph
[legend]
Collaboration diagram for urllib.parse._NetlocResultMixinBase:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def username
def password
def hostname
def port

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Static Private Attributes

tuple __slots__ = ()

Detailed Description

Shared methods for the parsed result objects containing a netloc element

Definition at line 127 of file parse.py.


Member Function Documentation

Definition at line 140 of file parse.py.

00140 
00141     def hostname(self):
00142         hostname = self._hostinfo[0]
00143         if not hostname:
00144             hostname = None
00145         elif hostname is not None:
00146             hostname = hostname.lower()
00147         return hostname

Here is the call graph for this function:

Definition at line 136 of file parse.py.

00136 
00137     def password(self):
00138         return self._userinfo[1]

Here is the call graph for this function:

Definition at line 149 of file parse.py.

00149 
00150     def port(self):
00151         port = self._hostinfo[1]
00152         if port is not None:
00153             port = int(port, 10)
00154         return port
00155 

Here is the call graph for this function:

Definition at line 132 of file parse.py.

00132 
00133     def username(self):
00134         return self._userinfo[0]

Here is the call graph for this function:


Member Data Documentation

tuple urllib.parse._NetlocResultMixinBase.__slots__ = () [static, private]

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file: