Developpez.com

Python

Choisissez la catégorie, puis la rubrique :

18.9 gopherlib -- Gopher protocol client

18.9 gopherlib -- Gopher protocol client

Deprecated since release 2.5. The gopher protocol is not in active use anymore.

This module provides a minimal implementation of client side of the Gopher protocol. It is used by the module urllib to handle URLs that use the Gopher protocol.

The module defines the following functions:

send_selector( selector, host[, port])
Send a selector string to the gopher server at host and port (default 70). Returns an open file object from which the returned document can be read.

send_query( selector, query, host[, port])
Send a selector string and a query string to a gopher server at host and port (default 70). Returns an open file object from which the returned document can be read.

Note that the data returned by the Gopher server can be of any type, depending on the first character of the selector string. If the data is text (first character of the selector is "0"), lines are terminated by CRLF, and the data is terminated by a line consisting of a single ".", and a leading "." should be stripped from lines that begin with "..". Directory listings (first character of the selector is "1") are transferred using the same protocol.

See About this document... for information on suggesting changes.
Netflix : Python est derrière chaque film que vous regardez, voici comment l'entreprise utilise le langage de programmation pour ses services
Une plateforme de recrutement s'intéresse aux tendances des ingénieurs en matière d'outils de développement, et note la montée en puissance de VS Code
Les tendances des développeurs pour 2019 font du Machine Learning la compétence clé et du JavaScript le langage le plus populaire
Apprendre à coder correctement - Un guide concis pour écrire un meilleur code, par Robat Williams, traduit par vavavoum74
Contacter le responsable de la rubrique Python

Partenaire : Hébergement Web