Re: [Python] Più versioni di Python su Mac.

2015-07-15 Per discussione Andrea D'Amore
2015-07-15 21:10 GMT+02:00 Gabriele Battaglia iz4...@libero.it:
 Qualche idea sul come far capire al sistema operativo, quale versione di
 Python desidero attiva?

A seconda del significato di attiva direi configurando la variabile
PATH della shell usata,


-- 
Andrea
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] OT: Memcomputing NP-complete problems in polynomial time using polynomial resources and collective states

2015-07-15 Per discussione Nicola Larosa
Roberto Polli wrote:
 FYI. Io ci metterò un po' a digerire ;)
 
 http://advances.sciencemag.org/content/1/6/e1500031.full

Uh oh... :-o

...they can solve NP-complete problems in polynomial time and, using the
appropriate architecture, with resources that only grow polynomially with
the input size. The reason for this computational power stems from
properties inspired by the brain...

Grazie per il riferimento.

-- 
Nicola 'tekNico' Larosa http://www.tekNico.net/

___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] PyQt5 solo per Python 3?

2015-07-15 Per discussione Carlo Miron
2015-07-15 13:09 GMT+02:00 Gabriele Battaglia iz4...@libero.it:

 La domanda è tutta nell'oggetto... Con questo caldo risparmio anche sulla
 digitazione... :)

metadomanda a caldo :P
perché usare python 2?

©

-- 
|:**THE BEER-WARE LICENSE** (Revision 42):
| mi...@python.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 beer in return.
|--Carlo Miron :
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] OT: Memcomputing NP-complete problems in polynomial time using polynomial resources and collective states

2015-07-15 Per discussione Carlo Miron
On Wed, Jul 15, 2015 at 12:51 PM, Nicola Larosa n...@teknico.net wrote:

 Roberto Polli wrote:
 FYI. Io ci metterò un po' a digerire ;)

 http://advances.sciencemag.org/content/1/6/e1500031.full

 Uh oh... :-o

 ...they can solve NP-complete problems in polynomial time and, using the
 appropriate architecture, with resources that only grow polynomially with
 the input size. The reason for this computational power stems from
 properties inspired by the brain...

credo che lo stress point sia using the appropriate architecture. in
particolare, è ben noto che è possibile computare al di sotto dei
limiti della macchina di turing (deterministica). il problema è che
osservarne i risultati è infinitamente costoso...

©

-- 
|:**THE BEER-WARE LICENSE** (Revision 42):
| mi...@python.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 beer in return.
|--Carlo Miron :
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] PyQt5 solo per Python 3?

2015-07-15 Per discussione Gabriele Battaglia



Reply to the Carlo Miron's message, wrote on 15/07/2015 at 14:39:

2015-07-15 13:09 GMT+02:00 Gabriele Battaglia iz4...@libero.it:


La domanda è tutta nell'oggetto... Con questo caldo risparmio anche sulla
digitazione... :)


metadomanda a caldo :P
perché usare python 2?

E più caldo di così... :)

Per pigrizia direi.
Dovrei mettermi lì a fare il porting dei miei scriptini e verificare che 
tutte le dipendenze che uso esistano anche per Python 3.

Prima o poi mi toccherà farlo... :)
GB.
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] PyQt5 solo per Python 3?

2015-07-15 Per discussione Francesco Pischedda
2015-07-15 14:39 GMT+02:00 Carlo Miron mi...@python.it:

 2015-07-15 13:09 GMT+02:00 Gabriele Battaglia iz4...@libero.it:

  La domanda è tutta nell'oggetto... Con questo caldo risparmio anche sulla
  digitazione... :)

 metadomanda a caldo :P
 perché usare python 2?


tempo fa avevo letto qualcosa da parte del maintainer di pyqt5 precompilato
per windows e diceva più o meno è ora di passare a python3, se lo volete
per python 2 compilatevelo :)

-- 
Shipping is a feature. A really important feature. Your product must have
it.

Unix IS user friendly. It's just selective about who its friend are

La gatta frettolosa ha fatto i gattini ciechi

C is quirky, flawed, and an enormous success.
   -- Dennis Ritchie
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] R: PyQt5 solo per Python 3?

2015-07-15 Per discussione Paolo Di Ieso

Da: iz4...@libero.it
Data: 15/07/2015 13.09

La domanda è tutta nell'oggetto... Con questo caldo risparmio anche 
sulla digitazione... :)

Direi di no: https://pypi.python.org/pypi/PyQt5

___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] OT: Memcomputing NP-complete problems in polynomial time using polynomial resources and collective states

2015-07-15 Per discussione Marco Beri
On Wed, Jul 15, 2015 at 12:51 PM, Nicola Larosa n...@teknico.net wrote:

 Roberto Polli wrote:
  FYI. Io ci metterò un po' a digerire ;)
 
  http://advances.sciencemag.org/content/1/6/e1500031.full

 Uh oh... :-o

 ...they can solve NP-complete problems in polynomial time and, using the
 appropriate architecture, with resources that only grow polynomially with
 the input size. The reason for this computational power stems from
 properties inspired by the brain...
 Grazie per il riferimento.


Io non sono in grado di valutarlo (l'istinto mi riporta a pensare ai
neutrini più veloci della luce, ma spero di sbagliarmi) e attendo conferme.

Certo che sarebbe una discreta bomba se fosse realizzabile (anche il
quantum computing promette ma, a tutt'oggi, non sembra fattibile).

Ciao.
Marco.
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] Più versioni di Python su Mac.

2015-07-15 Per discussione Gabriele Battaglia
Sera.
Ho installato la 2.7.9 sul Mac (El Capitan). Questa sera ho aggiunto la 3.4.3. 
La vedo nella cartella /Applications ma quando chiamo l’interprete dal 
terminale, parte la 2.7.9
Qualche idea sul come far capire al sistema operativo, quale versione di Python 
desidero attiva?
GB.
—
Namasté!
Sent from my iMac27. (Libero)

___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] PyQt5 solo per Python 3?

2015-07-15 Per discussione Gabriele Battaglia
La domanda è tutta nell'oggetto... Con questo caldo risparmio anche 
sulla digitazione... :)

___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] OT: Memcomputing NP-complete problems in polynomial time using polynomial resources and collective states

2015-07-15 Per discussione Massimo Capanni
Il 14/lug/2015 22:08, Roberto Polli robipo...@gmail.com ha scritto:

 FYI. Io ci metterò un po' a digerire ;)

Sono molto arrugginito riguardo la teoria della calcolabilita' ma da quel
poco che ci ho capito rasenta la fantascienza.
In ogni caso ben venga :-)
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Migrazione da 2 a 3.

2015-07-15 Per discussione Davide Muzzarelli

Il 15/07/2015 15:59, Gabriele Battaglia ha scritto:

Chiedo una vostra opinione, cosa mi consigliereste, quale lettura, per
un primo e non completo sguardo alle differenze fra python 2 e 3?
[...]
Ecco, dov'è la miglior lista di tutti questi piccoli cambiamenti...
senza la pretesa di un documento completo, giusto per un primo assaggio.


Ciao Gabriele,
vai sulla documentazione di Python (es. https://docs.python.org/3/) e 
leggi il capitolo What's New In Python 3.4. Lì troverai tutte le 
differenze spiegate in maniera egregia.


https://docs.python.org/3/whatsnew/3.0.html
https://docs.python.org/3/whatsnew/3.1.html
https://docs.python.org/3/whatsnew/3.2.html
https://docs.python.org/3/whatsnew/3.3.html
https://docs.python.org/3/whatsnew/3.4.html

Byez,
Davide Muzzarelli
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Migrazione da 2 a 3.

2015-07-15 Per discussione Carlo Miron
2015-07-15 15:59 GMT+02:00 Gabriele Battaglia iz4...@libero.it:

 Ricevo un errore di sintassi su un confronto:
 if x  0:

In questo caso esistono due soluzioni, lascio a te il decidere qual è
Quella Giusta™:

* usi la forma corretta `!=` invece del diamante (``)
* aggiungi in cima allo script `from __future__ import barry_as_FLUFL`

©

-- 
|:**THE BEER-WARE LICENSE** (Revision 42):
| mi...@python.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 beer in return.
|--Carlo Miron :
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] R: Migrazione da 2 a 3.

2015-07-15 Per discussione Paolo Di Ieso
Da: iz4...@libero.it Data: 15/07/2015 15.59

Ecco, dov'è la miglior lista di tutti questi piccoli cambiamenti... 
senza la pretesa di un documento completo, giusto per un primo assaggio.

Scegli tu fra le varie risorse:
http://www.distillatodipython.blogspot.it/p/risorse-python.html#differenze-
python2x-3x
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Migrazione da 2 a 3.

2015-07-15 Per discussione Riccardo Magliocchetti

Il 15/07/2015 15:59, Gabriele Battaglia ha scritto:

Ricevo un errore di sintassi su un confronto:

if x  0:


E` la prima volta che vedo quella sintassi in Python :)

The forms  and != are equivalent; for consistency with C, != is preferred;
where != is mentioned below  is also accepted. The  spelling is considered
obsolescent.

Questo dalla doc di python 2.4 che ha più di 10 anni. Quanto vecchia è la tua 
codebase? ;)


--
Riccardo Magliocchetti
@rmistaken

http://menodizero.it
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Migrazione da 2 a 3.

2015-07-15 Per discussione Nicola Larosa
 Gabriele Battaglia ha scritto:
 Ricevo un errore di sintassi su un confronto:
 
 if x  0:

Riccardo Magliocchetti wrote:
 E` la prima volta che vedo quella sintassi in Python :)
 
 The forms  and != are equivalent; for consistency with C, != is
 preferred; where != is mentioned below  is also accepted. The 
 spelling is considered obsolescent.
 
 Questo dalla doc di python 2.4 che ha più di 10 anni. Quanto vecchia è
 la tua codebase? ;)

Magari sta lavorando su Mailman, le battaglie di Barry Warsaw su questo
punto sono rimaste nella leggenda. :-)

-- 
Nicola 'tekNico' Larosa http://www.tekNico.net/
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Migrazione da 2 a 3.

2015-07-15 Per discussione Gabriele Battaglia

 Il giorno 15/lug/2015, alle ore 16:35, Carlo Miron mi...@python.it ha 
 scritto:
 
 2015-07-15 15:59 GMT+02:00 Gabriele Battaglia iz4...@libero.it:
 
 Ricevo un errore di sintassi su un confronto:
 if x  0:
 
 In questo caso esistono due soluzioni, lascio a te il decidere qual è
 Quella Giusta™:
 
 * usi la forma corretta `!=` invece del diamante (``)
 * aggiungi in cima allo script `from __future__ import barry_as_FLUFL`
Wow, come si fa la faccina che arrossisce di vergogna! Le mie povere 
rimembranze di basic anni 90… :)
Ad ogni modo, la prima è quella corretta, ma la seconda è più divertente e vado 
subito a vedere cosa fa quel modulo… Quale altra strana sintassi consente. :)
GB.
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] Migrazione da 2 a 3.

2015-07-15 Per discussione Gabriele Battaglia

dovrebbero essere un bel po, sparse qua e là per la rete...

Chiedo una vostra opinione, cosa mi consigliereste, quale lettura, per 
un primo e non completo sguardo alle differenze fra python 2 e 3?
Ho appena installato l'ultima rilasciata, ad esempio, la 3.4.3 ed ho 
provato ad eseguire uno script:

Ricevo un errore di sintassi su un confronto:

if x  0:

Ecco, dov'è la miglior lista di tutti questi piccoli cambiamenti... 
senza la pretesa di un documento completo, giusto per un primo assaggio.


Grazie come sempre.
GB.
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] OT: Memcomputing NP-complete problems in polynomial time using polynomial resources and collective states

2015-07-15 Per discussione Giovanni Porcari

 Il giorno 15/lug/2015, alle ore 13:44, Marco Beri marcob...@gmail.com ha 
 scritto:
 
 On Wed, Jul 15, 2015 at 12:51 PM, Nicola Larosa n...@teknico.net wrote:
 Roberto Polli wrote:
  FYI. Io ci metterò un po' a digerire ;)
 
  http://advances.sciencemag.org/content/1/6/e1500031.full
 
 Uh oh... :-o
 
 ...they can solve NP-complete problems in polynomial time and, using the
 appropriate architecture, with resources that only grow polynomially with
 the input size. The reason for this computational power stems from
 properties inspired by the brain...
 Grazie per il riferimento.
 
 Io non sono in grado di valutarlo (l'istinto mi riporta a pensare ai neutrini 
 più veloci della luce, ma spero di sbagliarmi) e attendo conferme.
 
 Certo che sarebbe una discreta bomba se fosse realizzabile (anche il quantum 
 computing promette ma, a tutt'oggi, non sembra fattibile).
 
 Ciao.
 Marco.


A me la cosa ha ricordato un poco i vecchi calcolatori analogici che per certe 
operazioni
hanno una velocità di esecuzione ‘istantanea’.
http://arstechnica.com/information-technology/2014/03/gears-of-war-when-mechanical-analog-computers-ruled-the-waves/

Siamo abituati a pensare in termini digitali ma per risolvere equazioni 
differenziali i sistemi
analogici non sono affatto male.

E lo dice uno dei pochi di questa lista che ha usato abbastanza a lungo il 
primo computer
analogico disponibile: un bel regolo calcolatore :D

G

___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Migrazione da 2 a 3.

2015-07-15 Per discussione Gabriele Battaglia

 Il giorno 15/lug/2015, alle ore 16:33, Riccardo Magliocchetti 
 riccardo.magliocche...@gmail.com ha scritto:
 
 Il 15/07/2015 15:59, Gabriele Battaglia ha scritto:
 Ricevo un errore di sintassi su un confronto:
 
 if x  0:
 
 E` la prima volta che vedo quella sintassi in Python :)
 
 The forms  and != are equivalent; for consistency with C, != is preferred;
 where != is mentioned below  is also accepted. The  spelling is considered
 obsolescent.
 
 Questo dalla doc di python 2.4 che ha più di 10 anni. Quanto vecchia è la tua 
 codebase? ;)
 Non Due, meglio che tu non lo sappia: gli pterodattili solcavano ancora i 
 cieli del pleistocene.
GB.

___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python