Movatterモバイル変換


[0]ホーム

URL:


Previous PageUp One LevelNext PagePython Library ReferenceContentsModule IndexIndex
Previous:12.17.3 ExceptionsUp:12. Internet Data HandlingNext:12.18.1 netrc Objects

12.18netrc -- netrc file processing

New in version 1.5.2.

Thenetrc class parses and encapsulates the netrc file formatused by the Unixftp program and other FTP clients.

classnetrc([file])
Anetrc instance or subclass instance encapsulates data from a netrc file. The initialization argument, if present, specifies thefile to parse. If no argument is given, the file.netrc in theuser's home directory will be read. Parse errors will raiseNetrcParseError with diagnostic information including thefile name, line number, and terminating token.

exceptionNetrcParseError
Exception raised by thenetrc class when syntactical errorsare encountered in source text. Instances of this exception providethree interesting attributes:msg is a textual explanationof the error,filename is the name of the source file, andlineno gives the line number on which the error was found.


Subsections


Previous PageUp One LevelNext PagePython Library ReferenceContentsModule IndexIndex
Previous:12.17.3 ExceptionsUp:12. Internet Data HandlingNext:12.18.1 netrc Objects
Release 2.2.3, documentation updated on 30 May 2003.
SeeAbout this document... for information on suggesting changes.
[8]ページ先頭

©2009-2026 Movatter.jp