x = starts.pop(0)
Se non sbaglio pop(0) è lineare, quindi rende l'algoritmo quadratico.
Non sarebbe meglio usare collections.deque e pop_left?
Ciao,
Giuseppe___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/list
ery, and the ``bpt-rules``
format is inspired by `Gentoo <http://www.gentoo.org/>`_'s ebuilds.
A fork of PIP_ is included to make installation of python packages
easier, and as an example of use of the BPT API.
Enjoy,
Giuseppe Ottaviano
_
me.org/Jhbuild>`_, but without the dependency
resolution and automatic downloading machinery, and the ``bpt-rules``
format is inspired by `Gentoo <http://www.gentoo.org/>`_'s ebuilds.
Enjoy,
Giuseppe Ottaviano
___
Python mailing list
Python@li
Gentoo <http://www.gentoo.org/>`_'s ebuilds.
--
Giuseppe Ottaviano
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python
On Jan 22, 2009, at 6:00 PM, Enrico Franchi wrote:
>
> On Jan 22, 2009, at 3:21 PM, Pietro Battiston wrote:
>
>> - i .pyc non sono codice compilato;
>
> Certo che lo sono. Il sorgente scritto in Python e' stato compilato.
> Il risultato di questa compilazione e' precisamente il pyc.
Penso che in
On Aug 28, 2008, at 3:11 PM, Pietro Battiston wrote:
> Silvestro Di Sanzo ha scritto:
>> Salve,
>> da poco uso python. Sono interessato in particolare ad implementare
>> procedure per la stima di modelli econometrici.
>> qualcuno sa dirmi da dove cominciare o se in rete c'è materiale
>> disponi
Puoi usare subprocess per lanciare il comando 'ssh', ma penso che sia
banale inserire la password visto che ssh per sicurezza non usa lo
standard input per leggerla.
Inoltre dovresti prepararti a parsare il'output di ssh per gestire gli
errori. Non è una cosa banale né pulita.
Ti consiglio d