(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/restricted.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-netrc.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-netrc.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 13. Restricted Execution Up: 12.21 netrc Previous: 12.21 netrc
12.21.1 netrc Objects
A netrc instance has the following methods:
- authenticators (host)
- Return a 3-tuple
(login, account, password)of authenticators for host. If the netrc file did not contain an entry for the given host, return the tuple associated with the `default' entry. If neither matching host nor default entry is available, return None.
- __repr__ ()
- Dump the class data as a string in the format of a netrc file. (This discards comments and may reorder the entries.)
Instances of netrc have public instance variables:
- hosts
- Dictionary mapping host names to
(login, account, password) tuples. The `default' entry, if any, is represented as a pseudo-host by that name.
- macros
- Dictionary mapping macro names to string lists.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/restricted.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-netrc.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-netrc.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 13. Restricted Execution Up: 12.21 netrc Previous: 12.21 netrc
Send comments on this document to python-docs@python.org.