[Python] ciao sono nuovo, ma si trova la documentazione ?
Carlo Miron
miron a python.it
Mar 27 Feb 2018 14:18:58 CET
2018-02-27 14:02 GMT+01:00 Iguana Igua <mystic.dooor a gmail.com>:
> Vorrei capire come devo consultare la documentazione di una libreria.
> Vi faccio un esempio concreto.
> import apt
> cache=apt.Cache()
> pkg=cache['python2.7']
>
> ora dall'interprete:
>
> In [38]: pkg
> Out[38]: <Package: name:'python2.7' architecture='i386' id:890L>
> In [39]: pkg.versions
> Out[39]: <VersionList: ['2.7.12-1ubuntu0~16.04.3',
> '2.7.12-1ubuntu0~16.04.2', '2.7.11-7ubuntu1']>
> In [40]: pkg.versions[0].description
> Out[40]: u'Python is a high-level, interactive, object-oriented language.
> Its 2.7 version includes an extensive class library with lots of goodies for
> network programming, system administration, sounds and graphics.'
>
> dove trovo il metodo description nella documentazione ?
<http://apt.alioth.debian.org/python-apt-doc/library/apt.package.html#the-version-class>
㎝
--
| THE 🍺-WARE LICENSE (Revision ㊷)
| --
| <miron@🐍.it> wrote this mail. As long as you retain
| this notice you can do whatever you want with this stuff.
| If we meet some day, and you think this stuff is worth it,
| you can buy me a 🍺 in return. -- Carlo Miron
Maggiori informazioni sulla lista
Python