Re: [Python] Risolto. Re: Qualcuno usa ipython come interprete?

2024-03-14 Per discussione Carlo Miron
Il giorno gio 14 mar 2024 alle ore 10:32 Gabriele Battaglia
 ha scritto:
>
> ...di nuovo, buongiorno a tutti ed a Carlo M in particolare.
>
> Ho risolto.

Grande!

> Mancava la libreria pickleshare che, chissà per quale strano motto del
> destino, non era stata installata fra le molte dipendenze di ipython.
>
> Grazie.
> Gabry.
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Qualcuno usa ipython come interprete?

2024-03-14 Per discussione Carlo Miron
Ciao Gabriele

Il giorno gio 14 mar 2024 alle ore 08:23 Gabriele Battaglia
 ha scritto:
>
> Se sì, continuate a leggere please, altrimenti, tuffo doppio carpiato
> nel cestino.

Uso IPython 8.21.0 su Python 3.12.2 (su linux)

> [...]
> E' un problema mio?

Qui si comporta come previsto

```py
cm@heap:~
$ ipython
Python 3.12.2 (main, Feb 11 2024, 21:08:54) [GCC 13.2.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.21.0 -- An enhanced Interactive Python. Type '?' for help.
>>> a=88
time: 2.99 ms (started: 2024-03-14 08:51:23 +01:00)
>>> %store a
Stored 'a' (int)
time: 1.23 ms (started: 2024-03-14 08:51:32 +01:00)
>>> %store
Stored variables and their in-db values:
a -> 88
time: 1.54 ms (started: 2024-03-14 08:51:38 +01:00)
>>>^D
cm@heap:~
$ ipython
Python 3.12.2 (main, Feb 11 2024, 21:08:54) [GCC 13.2.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.21.0 -- An enhanced Interactive Python. Type '?' for help.
>>> a
NameError: name 'a' is not defined

time: 3.06 ms (started: 2024-03-14 08:52:09 +01:00)
>>> %store
Stored variables and their in-db values:
a -> 88
time: 1.48 ms (started: 2024-03-14 08:52:32 +01:00)
>>> %store -r
time: 9.51 ms (started: 2024-03-14 08:52:42 +01:00)
>>> a
88
time: 4.5 ms (started: 2024-03-14 08:52:45 +01:00)
```

Non saprei dirti cosa potrebbe essere successo nel tuo caso; se
perdere il valore delle tue variabili persistenti non è un problema,
potresti provare a cancellare i file contenuti nella subdirectory
`db/autorestore` all'interno della configurzione di ipython. Nel mio
caso,

```sh
cm@heap:~
$ ls -lh ~/.ipython/profile_default/db/autorestore
total 4.0K
-rw-rw-r-- 1 cm cm 5 Mar 14 08:51 a
```

HTH,
㎝

-- 
 THE -WARE LICENSE (Revision ㊷):
 wrote this . 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Domanda su import.

2024-02-20 Per discussione Carlo Miron
Ciao Gabriele

Il giorno mar 20 feb 2024 alle ore 13:21  ha scritto:
>
> Devo usare una libreria abbastanza grossa. Però, non tutto il mio programma 
> la usa, ma solo una delle sue funzioni e queesta funzione potrebbe essere 
> chiamata una sola volta, più volte o anche non chiamata affatto.
> Secondo voi, l’import di questa libreria è comunque meglio metterlo ad inizio 
> programma, o piuttosto all’interno della funzione interessata?

A meno che l'importazione della libreria non impatti percettibilmente
il tempo di caricamento del programma, ti consiglierei di metterlo
all'inizio del codice.
L'import all'interno della funzione in genere è un hack che deve
essere giustificato (e commentato) a buona ragione.

Buona giornata,
㎝

-- 
 THE -WARE LICENSE (Revision ㊷):
 wrote this . 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Da intero a stringa in base62.

2022-11-15 Per discussione Carlo Miron
probabilmente ti conviene modificare il test

if n<0: n=0

con un

if n<=0: return "0"

Il giorno mar 15 nov 2022 alle ore 14:06  ha scritto:
>
> Ciao a tutti.
>
> Ho questa funzione che scrissi 9 anni fa con l'aiuto di uno di voi della 
> lista, Federico Figus, che converte un qualsiasi intero in una stringa in 
> base 62: 10 cifre + 26 lowercase + 26 uppercase.
>
> Il problema è che se passo uno 0, non mi restituisce "0" come dovrebbe, ma 
> una stringa "".
>
>
>
> Qualcuno vede il perché?
>
>
>
> def base62(n):
>
> '''Converte un intero in base 10 ad una stringa in base 62.
>
> Author: Federico Figus
>
> Modified by Gabriel Battaglia Kriyaban 9/5/2013
>
> Version 2, 15/11/2022
>
> '''
>
> import string
>
> b = string.digits+string.ascii_letters
>
> n=int(n)
>
> if n<0:
>
>n=0
>
> out = []
>
> while n:
>
>out.append(n%62)
>
>n = int(n/62)
>
> return ''.join(b[l] for l in out)[::-1]
>
>
>
> Gabriele Battaglia (Gabe / Gabry) - IZ4APU
>
> --... ...--  -.. .  .. --.. - .- .--. ..-  - ..-  . .
>
> Sent from Outlook on Windows, Genus Bononiae's computer. (Libero)
>
>
>
> ___
> Python mailing list
> Python@lists.python.it
> https://lists.python.it/mailman/listinfo/python



-- 
 THE -WARE LICENSE (Revision ㊷):
 wrote this . 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Selezionare voci da un dizionario con casualità pesata.

2022-10-03 Per discussione Carlo Miron
Il giorno lun 3 ott 2022 alle ore 14:58 Gabriele Battaglia
 ha scritto:
>
> Una curiosità: ma "tupla" è una parola italiana? Che significa? Io,
> prima di Python non l'avevo mai sentita.

è italiano, anche se credo sia più diffuso il nome "ennupla"
https://it.wikipedia.org/wiki/Ennupla

-- 
 THE -WARE LICENSE (Revision ㊷):
 wrote this . 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Indagine su una variabile.

2022-05-05 Per discussione Carlo Miron
ciao gabriele. hai un esempio minimale che riproduca il problema?

Il giorno gio 5 mag 2022 alle ore 16:17 Gabriele Battaglia
 ha scritto:
>
> Chiedo venia, so che non si dice così ma non mi viene un termine
> migliore, forse inspecting... :)
>
>
> Comunque.
>
> Ho una variabile dichiarata ad inizio script, del tipo: d={}
>
>
> poi una routine la modifica, ovviamente ha lo stesso nome all'interno
> della funzione che non riceve () e non restituisce nulla con return.
>
> All'uscita da questa funzione tuttavia, mi ritrovo d intatta, come se
> non avessi apportato alcuna modifica.
>
>
> Come si indaga su un problema di questo genere? Io non riesco a trovare
> l'inghippo.
>
>
> Grazie per il vostro sempre illuminante aiuto.
>
>
> Gabry.
>
>
> --
> --... ...--  -.. .  .. --.. - .- .--. ..-  - ..-  . .
> Sent from TB on Windows 10, Genus Bononiae's computer.
>
> ___
> Python mailing list
> Python@lists.python.it
> https://lists.python.it/mailman/listinfo/python



-- 
 THE -WARE LICENSE (Revision ㊷):
 wrote this . 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] brython

2021-05-14 Per discussione Carlo Miron
Il giorno ven 14 mag 2021 alle ore 09:01 Nicola Montecchiari
 ha scritto:
> Grazie, hai reso la mia giornata più luminosa :-)

턞 Always look on the brython side of web 텡

㎝

-- 
 THE -WARE LICENSE (Revision ㊷):
 wrote this . 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


[Python] test mail, plz ignore

2021-05-14 Per discussione Carlo Miron


-- 
 THE -WARE LICENSE (Revision ㊷):
 wrote this . 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Exercism.io test: Assetion Error

2020-08-22 Per discussione Carlo Miron
Ciao Simone

Il giorno sab 22 ago 2020 alle ore 10:13 Simone Giuri
 ha scritto:
> Sto risolvendo alcuni degli esercizi proposti su exercism, ma nonostante in 
> apparenza i risultati siano corretti, la sessione di test proposta mi 
> restituisce comunque un assertion error su molti dei test condotti (17 su 38).
> L''esercisio è rational-numbers e sia la soluzione che la sesisone di test è 
> pubblicata al link: 
> https://exercism.io/tracks/python/exercises/rational-numbers/solutions/3b67ca1690e246e8bcbbee407703c2a5
> Se testo i due risultati con un "==" il risultato è True... ma probabilmente 
> c'è qualche cosa che mi sfugge...
> Gli errori sembrano concentrati nelle funzioni  e test che prevedono un 
> cambio del segno, forse nel metodo __repr__
> [...]
> Cosa sto trascurando ?

Ci sono 3 piccoli errori, nella tua classe. Il primo è che normalizzi
i valori, semplificando con `gcd` solo su `__repr__`; pertanto
*visualizzi* il numero in forma normalizzata, ma non lo *memorizzi*
come tale. Io applicherei la normalizzazione direttamente su
`__init__`. E ricorda di normalizzare anche il segno!
Del terzo problema hai individuato correttamente la causa, il cambio
di segno, ma non la soluzione: non è `__repr__` ad essere sbagliato,
ma `__abs__`.

Buon lavoro,
㎝

--
 THE -WARE LICENSE (Revision ㊷):
 wrote this . 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Iterare in una lista.

2020-02-13 Per discussione Carlo Miron
Il giorno gio 13 feb 2020 alle ore 16:23 Gabriele Battaglia
 ha scritto:
>
> Buona sera.
> Se ho una lista che contiene 10 elementi e voglio scrivere un ciclo che
> itera dall'elemento 5, arriva alla fine e riprende finendo al 4.
> A parte gestire autonomamente l'indice con un algoritmo, esiste una
> funzione già presente in Python per farlo?
> Gabry

Nulla di già presente, ma puoi fare qualcosa tipo
```

>>> l = [i * 11 for i in range(10)]
>>> l
[0, 11, 22, 33, 44, 55, 66, 77, 88, 99]
>>> for i in range(len(l)):
... print(l[(i + 5) % len(l)])
...
55
66
77
88
99
0
11
22
33
44
```

Ciao,
㎝

-- 
 THE -WARE LICENSE (Revision ㊷):
 wrote this . 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Lista delle chiavi di un dizionario.

2020-02-04 Per discussione Carlo Miron
Il giorno mar 4 feb 2020 alle ore 11:53 Gabriele Battaglia
 ha scritto:
>
> Secondo voi quali sono i vantaggi di questo cambiamento? Intendo, che
> proprietà possiede la classe dict_keys più utili di class list?

```
>>> d = {i: f'{i}' for i in range(1_000_000)}
>>> sys.getsizeof(d)
41_943_136
>>> sys.getsizeof(list(d.keys()))
8_000_056
>>> sys.getsizeof(d.keys())
40
```

Ciao,
Carlo
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] genere (maschile o femminile) di un nome di persona

2019-08-13 Per discussione Carlo Miron
Il giorno mar 13 ago 2019 alle ore 09:32 Riccardo mancuso
 ha scritto:
>
> mi sembra che valga solo per nomi stranieri...

No, il [database][] è decisamente multilingua. Vedi il caso "Andrea",
che è maschile per l'italia con peso 7, e femminile quasi ovunque
altrove.

[database]: 
https://raw.githubusercontent.com/lead-ratings/gender-guesser/master/gender_guesser/data/nam_dict.txt

㎝

-- 
 THE -WARE LICENSE (Revision ㊷):
 wrote this . 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] uso di str.format

2018-05-03 Per discussione Carlo Miron
2018-05-03 12:08 GMT+02:00 Massimiliano Rosi <massimiliano.r...@gmail.com>:

> come indicavo nella mail precedente, l'utilizzo classico di str.format
> mi è chiaro, infatti riportavo l'esempio:
> '{:.2f}'.format(55.6789)  il cui output è  '55.68'
>
> ma chiedevo se era possibile modificare il parametro di conversione a
> runtime, durante l'esecuzione del programma, in modo da poter
> convertire il float in base ad un valore diverso di volta in volta.
>
> Dal mio esempio:
> '{:g}'.format(55.6789, g=':.2f')

```
>>> '{0:.{1}f}'.format(55.6789, 2)
'55.68'
>>> '{0:.{1}f}'.format(55.6789, 3)
'55.679'
>>> '{0:.{1}f}'.format(55.6789, 4)
'55.6789'
```

㎝

-- 
| 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Da timedelta a data.

2018-03-20 Per discussione Carlo Miron
On Tue, Mar 20, 2018 at 11:25 PM, Gabriele Battaglia <iz4...@libero.it> wrote:

> On 20 Mar 2018, at 23:20, Marco Beri <marcob...@gmail.com> wrote:
>>
>> pip install dateutil
>
> No matching distribution found for dateutil

pip install python-dateutil

㎝

-- 
| 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] ciao sono nuovo, ma si trova la documentazione ?

2018-02-27 Per discussione Carlo Miron
2018-02-27 18:20 GMT+01:00 Iguana Igua <mystic.do...@gmail.com>:

> Per esempio io voglio conoscere la descrizione di un pacchetto.
> So che il pacchetto è python2.7 e che lo trovo dentro la cache.
> Quindi:
> cache=apt.Cache()
> pkg=cache['python2.7']
> e da qui come arrivo a:
> pkg.version[0].description
> ?
> cioè come faccio a trovare description ?

```
>>> import apt
>>> cache=apt.Cache()
>>> pkg=cache['python2.7']
>>> ver=pkg.versions[0]
>>> dir(ver)
['__class__', '__delattr__', '__dict__', '__doc__', '__eq__',
'__format__', '__ge__', '__getattribute__', '__gt__', '__hash__',
'__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__',
'__reduce__', '__reduce_ex__', '__repr__', '__setattr__',
'__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_cand',
'_cmp', '_records', '_translated_records', '_uris', 'architecture',
'dependencies', 'description', 'downloadable', 'enhances',
'fetch_binary', 'fetch_source', 'filename', 'get_dependencies',
'homepage', 'installed_size', 'is_installed', 'md5', 'origins',
'package', 'policy_priority', 'priority', 'provides',
'raw_description', 'recommends', 'record', 'section', 'sha1',
'sha256', 'size', 'source_name', 'source_version', 'suggests',
'summary', 'tasks', 'uri', 'uris', 'version']
>>> type(ver)

>>> help(apt.package.Version)
```

㎝

-- 
| 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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] ciao sono nuovo, ma si trova la documentazione ?

2018-02-27 Per discussione Carlo Miron
2018-02-27 14:02 GMT+01:00 Iguana Igua <mystic.do...@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]: 
> In [39]: pkg.versions
> Out[39]:  '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
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Aiuto

2018-01-26 Per discussione Carlo Miron
2018-01-26 16:35 GMT+01:00  :

> Un aiuto
> Sto studiando il ciclo:
>
> for  in range ():
>   Pronti(variabile)
>
> Ho capito il funzionamento... ma non riesco a compilarlo o meglio a
> collegarlo con il seguente esercizio:
>
> “Scrivere un ciclo che visualizza i primi 128 valori ASCII seguiti dai
> corrispondenti caratteri.”

Cosa c'è che non va nella soluzione di Ivo Reano?


㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] funziona?

2018-01-25 Per discussione Carlo Miron
2018-01-25 11:07 GMT+01:00 Enrico Bianchi <enrico.bian...@live.com>:

> Il 25/01/2018 10:52, Carlo Miron ha scritto:
>
>> Che è quanto è stato detto anche a me da chi gestisce il DNS. E che
>> corrisponde perfettamente a quanto ho letto in diverse fonti
>> sull'internet. Non ho competenze specifiche per pensare che non sia
>> vero, e mi fido dei soggetti in questione. Quindi, cosa proponi?
>
> Intanto di verificare *seriamente* quello che si sta dicendo[1]. Perché, ad
> esempio, un check del dominio python.it con MX ToolBox mi dice che manca il
> record DMARC, e già questo direi che, per come funziona l'intero apparato
> email ai giorni nostri, è un problema

lists.python.it gira su mailman 2.1.16 (e al momento non c'è un modo
semplice per aggiornarlo).

A quanto mi risulta, le soluzioni elencate su
https://wiki.list.org/DEV/DMARC relative alla .16 non funzionano;
magari quelle della .18 sì, non saprei. sicuramente la soluzione
sarebbe aggiornare tutto a 3, ma temo sia un effort non
trascurabile

> Enrico
> [1] occhio, non sto mettendo in dubbio te, e sono cosciente anche della
> professionalità delle persone che stanno dietro alla gestione della
> comunità,

Non lo metto in dubbio.

> ma sinceramente sentirmi rispondere che "non ci possiamo fare
> niente" quando è evidente anche ad occhio nudo che c'è qualcosa che si può
> fare mi ha fatto cadere le braccia

¯\_(ツ)_/¯

㎝

-- 
|:**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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] funziona?

2018-01-25 Per discussione Carlo Miron
2018-01-25 10:26 GMT+01:00 Enrico Bianchi :

> Carlo, non voglio essere polemico, ma se la soluzione è impostare
> correttamente i record SPF e DMARC del DNS, ovvero mettere mano a
> configurazioni  (usando anche dei tool appositi, visto che per generare SPF
> ci sono una miliardata di tool in giro su Internet e per verificare la
> corretta configurazione di un dominio va bene anche https://mxtoolbox.com/ )
> a cui non posso accedere, l'unica cosa che posso fare è alzare le mani.
> Soprattutto dopo che l'ho detto varie volte in lista e che mi sono sentito
> rispondere di persona che è un problema di Yahoo! e che voi non ci potete
> fare nulla (sono serio, è stata questa la risposta che mi è stata data al
> Pycon da chi di dovere)

Che è quanto è stato detto anche a me da chi gestisce il DNS. E che
corrisponde perfettamente a quanto ho letto in diverse fonti
sull'internet. Non ho competenze specifiche per pensare che non sia
vero, e mi fido dei soggetti in questione. Quindi, cosa proponi?

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] funziona?

2018-01-24 Per discussione Carlo Miron
2018-01-24 14:06 GMT+01:00 Enrico Bianchi :

> Io l'ho detto tempo addietro, il problema è lato lista a causa di
> impostazioni errate di SPF, DKIM e DMARC per il dominio python.it, ma non mi 
> si vuol dare retta...

Certo henryx, ci divertiamo ad ignorarti.

E infatti, ti ripeto come allora: se hai soluzioni, sono tutto orecchie.

Ciao,
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] funziona?

2018-01-22 Per discussione Carlo Miron
On Mon, Jan 22, 2018 at 11:01 AM, Remo the Last  wrote:

> sono iscritto?

yep. a me sei finito dritto in spam, ma è la triste realtà di yahoo
con le mailing list :-/

> Buongiorno a tutt*

Ciao,
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


[Python] Fwd: [Pycon] CFP PyCon 9 ed alcune considerazioni :)

2018-01-05 Per discussione Carlo Miron
Ciao Paitonisti Italici,

curiosamente quest'anno abbiamo ricevuto *molte* più proposte in inglese
che nel nostro bellissimo idioma.
C'è qualcuno in ascolto disposto a correggere questo insopportabile
affronto dei Barbari™?
Coraggio, non siate timidi, Siore & Siori, c'è tempo fino alla mezzanotte
di domenica 7...

Ciao,
㎝

PS: Chiediamo anche agli Eroici Italiani™ che hanno sottoposto talk in
inglese: che ne dite di proporre anche la versione in italiano?

Grazie!

-- Forwarded message --
From: Matteo Benci 
Date: 2018-01-05 11:40 GMT+01:00
Subject: [Pycon] CFP PyCon 9 ed alcune considerazioni :)


Ciao a tutti,
siamo quasi in chiusura con la CFP di Python Italia, mancano solo un paio
di giorni ma c'è ancora tempo per sottomettere una proposta.
PyCon Italia negli ultimi anni si è aperta molto anche agli stranieri
ospitando keynoter e speaker sempre più importanti da tutto il mondo ma
vorremmo chiarire che resta comunque una conferenza italiana e di
formazione. Quest'anno in particolar modo abbiamo poche proposte in
italiano e che aiutino i giovani e le nuove leve ad imparare ad usare bene
Python.
E' per questo che vorremmo appellarci ai tanti di voi che hanno tenuto talk
in passato e che hanno aiutato e partecipato alla realizzazione di questo
evento meraviglioso: PyCon Italia è anche e soprattutto vostro e non
vorremmo che questa apertura vi facesse allontanare o disamorare. Python è
uno strumento molto potente ed importante e ci servono tecnici capaci che
insegnino a chi sta imparando con competenza e disponibilità e che parlino
del loro lavoro con passione per accrescere la comunità italiana e per dare
valore a quello che stiamo facendo.

Tanta parte del nostro lavoro quest'anno è stata nel cercare di aiutare chi
proponeva talk a migliorarsi ed a migliorarli per avere un livello medio
delle presentazioni più elevato, ma questo non significa avere solo tanti
talk da esperti, bensì avere un adeguato numero di talk interessanti e ben
tenuti, chiari, fruibili al meglio.
Ed importante, se non fondamentale, è il nostro impegno nella protezione
della diversità che rende questo linguaggio così forte. E' per questo che
servono talk che parlino di tutto, dal codice di base per neofiti, al
lavoro sempre più ricercato ed importante sul web, alla creazione e
mantenimento dei gestionali, alla gestione ed implementazione dei database,
ai talk che ispirino gli altri per migliorare il loro lavoro e la loro
partecipazione a livello di community.

Dunque, la Call for Proposal è ancora aperta, e ci farebbe piacere se ci
aiutaste, di nuovo, a creare qualcosa di ancora migliore dell'anno scorso
perché ancora più nostro :)

https://www.pycon.it/it/call-for-proposals/

Ciao,
Matteo
-- 
[image: logo]



*Matteo Benci*




* Event Set-Up, Coordinator & Python Italia Treasurer PyCon Nove | Florence
| April 19-22, 2018 web: pycon.it  |
facebook.com/pyconitalia  Phone:
+393495577593 <349%20557%207593> *



-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Conversione long to hex

2017-11-28 Per discussione Carlo Miron
2017-11-28 17:30 GMT+01:00 Riccardo Magliocchetti
:

> Il 28/11/2017 17:15, Massimiliano Rosi ha scritto:
>>
>> Buonasera a tutti,
>>
>> ho un dubbio riguardo alla conversione di un long verso hex con il metodo
>> to_bytes, perché ritorna un risultato decisamente molto strano:
>>
>> il numero che devo convertire presenta un'anomalia che non riesco a capire
>>
>>  >>> f = 20100
>>  >>> (f).to_bytes(4, byteorder = 'big')
>> b'\x0b\xeb\xc2d'
>>
>> che non mi sembra una corretta rappresentazione esadecimale.
>>
>> il valore corretto dovrebbe essere: \x0b\xeb\xc2\x64
>>
>> Riuscite ad aiutarmi a capire il perché?
>
>
> Ma hai provato a scriverlo su file perchè magari è solo una questione di
> rappresentazione?

sembrerebbe di sì, perché

>>> hex(20100)
'0xbebc264'
>>> (20100).to_bytes(4, byteorder = 'big')
b'\x0b\xeb\xc2d'
>>> for i in (20100).to_bytes(4, byteorder = 'big'): print(hex(i), end=' ')
...
0xb 0xeb 0xc2 0x64 >>>

HTH,
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Iterare una sequenza

2017-11-26 Per discussione Carlo Miron
On Sun, Nov 26, 2017 at 10:20 AM, Giuseppe Costanzi
 wrote:

> ho una sequenza del tipo
> ACTGATCGATTACGTATAGTAGAATTCTATCATACATATATATCGATGCGTTCAT
> scorrendola devo trovare una sequenza target GAATTC
> ACTGATCGATTACGTATAGTA  "GAATTC"  TATCATACATATATATCGATGCGTTCAT
> quindi dividere la sequenza da G, la prima lettera della sequenza target,
> e calcolarmi la lunghezza dei due frammenti risultanti
> ACTGATCGATTACGTATAGTAG
> e di questa
> GAATTCTATCATACATATATATCGATGCGTTCAT

qualcosa tipo

>>> seq = "ACTGATCGATTACGTATAGTAGAATTCTATCATACATATATATCGATGCGTTCAT"
>>> target = "GAATTCT"
>>> first, second = seq.split(target, 1)
>>> first += target[1]
>>> second = target[1:] + second
>>> len(first), len(second)
(22, 33)

?
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Ordinamento liste: descrittore cmp.

2017-10-30 Per discussione Carlo Miron
On Mon, Oct 30, 2017 at 2:45 PM, Gabriele Battaglia  wrote:

> Buon pome.
> Nell'help di list.sort, Python 2.7, leggo:
>
> L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*;
> cmp(x, y) -> -1, 0, 1
>
> Ma cmp, che può assumere -1, 0 o 1 come valori, cos'è, a cosa serve?
>
> Cmp sta per compara? Compara cosa?

Compara due argomenti x e y, e restituisce -1 se x è minore di y, 0 se
sono uguali, e 1 se x è maggiore di y

>>> cmp(42, 666)
-1
>>> cmp(666, 42)
1
>>> cmp(42, 42)
0

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] [CGI]

2017-10-03 Per discussione Carlo Miron
2017-10-03 14:58 GMT+02:00 Marzio A. Bonfanti :

> Hmmm... Non saprei. Sono già su una VM (di cui ho creato una "gemella" da
> ottimizzare per Python, Django, Mezzanine, PostgreSQL..., ma in ufficio non
> posso usarla ;) )

Potresti valutare anche [Bottle]. Si tratta di un singolo file
installation-less, funziona in [CGI] ed offre di serie un [semplice
template system] ma supporta anche mako, jinja2 e cheetah.

[Bottle]: 
[CGI]: 
[semplice template system]:


㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Canale Telegram

2017-09-28 Per discussione Carlo Miron
2017-09-28 14:30 GMT+02:00 Gollum1 :

> Il 28 settembre 2017 09:38:30 CEST, Carlos Catucci  
> ha scritto:
>>2017-09-28 9:33 GMT+02:00 Daniele :
>>> Questo avviene per definizione su risorse del genere, non è una
>>prerogativa
>>> del nostro canale.
>>
>>Certo ma si pososno fare le cose ammodino oppure alla membro di canide
>
> È lo stesso concetto che si aveva anni fa su IRC, nulla di nuovo.
>
> La ml è sempre la mia preferita, certo è che se Telegramm fosse gestito in 
> modo appropriato (se prende un argomento è lo si discute, al termine di 
> questo se ne prende un altro e così via), l'immediatezza potrebbe essere un 
> aiuto... Certo è... Ci si prende la briga di moderare una situazione del 
> genere, caotica per definizione?

Mh, io personalmente non parteciperei ad un gruppo gestito così. YMMV.
Se vuoi proporti per sperimentare questo approccio, ti cedo il posto.
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Canale Telegram

2017-09-27 Per discussione Carlo Miron
2017-09-27 22:48 GMT+02:00 Gollum1 :

> L'importante è che non facciate morire la lista, mi sono già iscritto al 
> canale, proprio questa sera, ma io continuo a preferire la ml

Nessuna intenzione, tra.
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Aiuto inizio insegnamento python nel corso telecomunicazioni

2017-09-27 Per discussione Carlo Miron
2017-09-27 14:12 GMT+02:00 pan.do :

> Essenzialmente per ragazzi di terza quarta e quinta di telecamunicazioni che
> conoscono appena un po di C.

Fico. Di che scuola?
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Interview per lavoro su python (e django)

2017-09-12 Per discussione Carlo Miron
2017-09-12 12:20 GMT+02:00 Christian Barra :

>> On 12 Sep 2017, at 11:27, Giornale di Sistema  
>> wrote:
>> Un dizionario non garantisce MAI un ordine, per quello ci sono gli ordered 
>> dict.
>
> Mai dire mai.
> In Python 3.6 la cosa e’ cambiata.

È cambiata l'implementazione, non le spec. AFAIK, al momento,
l'ordinamento è solo un effetto collaterale, e non è garantito.

Cheers,
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Interview per lavoro su python (e django)

2017-09-07 Per discussione Carlo Miron
2017-09-07 0:58 GMT+02:00 Karim :

> 2017-09-06 8:25 GMT+10:00 Riccardo Magliocchetti
> :
>>
>> Nel primo caso per profili junior anni fa chiedevo tra le altre queste
>> due:
>> - quale linguaggi conosci di più e quanto bene da 1 a 10
>> - fizzbuzz in che linguaggio preferisci
>
> Fantastico, non conoscevo fizzbuzz. Ho provato a farlo e ho salvato la
> faccia, allora ho proposto lo stesso esercizio sul gruppo facebook...
> diciamo che ha acceso gli animi :D

E così parte il golfing sulla soluzione più breve. la mia è

("Fizz"*(not x%3)+"Buzz"*(not x%5) or x for x in itertools.count(1))

:P

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] R: Packt Free Learning of the Day

2017-08-26 Per discussione Carlo Miron
2017-08-26 9:20 GMT+02:00 Carlos Catucci :

>> Direi che per tutti, evitando di violare i copyright, ci sono queste
>> soluzioni:
>> - acquistare l'ebook a prezzo pieno
>> - acquistare gli ebook con le promozioni che spesso ci sono, ad esempio
>> 5x50, tutto a 5 dollari, sconti del 20% ecc
>> - aspettare che l'ebook sia rimesso in free-learning, ad esempio per
>> Mastering Python è già almeno la terza volta
> [...]
> Pero' se un libro e' stato messo come free un giorno, non mi pare ci
> siano violazioni se chi lo ha scaricato lo cndivide (ovviamente a
> titolo gratuito)

Temo proprio che il tuo ragionamento non sia corretto.
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] mezzanine o django cms?

2017-08-16 Per discussione Carlo Miron
2017-08-16 21:27 GMT+02:00 Maurizio Noris :

> Il giorno 14 agosto 2017 19:30, Maurizio Noris  ha 
> scritto:
>>
>> Dovendo realizzare un sito multilingua, è preferibile utilizzare django cms 
>> o mezzanine?
>
> ho installato django-cms.
> devo ammettere che la prima impressione è decisamente buona: mi pare sia un 
> progetto più robusto di mezzanine, inoltre il sistema di templating mi sembra 
> molto più efficacie.
> piccolissimo particolare: non riesco ad installare un blog, il che mi pare 
> davvero assurdo.
>
> stando ai tutorial, l'unica scelta è aldryn newblog, che tuttavia appena 
> installato mi genera questo errore:
>
> AttributeError at /en/blog/
> 'NoneType' object has no attribute 'exclude_featured'
>
>
> il bug tra l'altro è conosciuto e su github c'è già aperto un issue irrisolto.
> mi chiedo: ma davvero l'unico blog su django-cms è buggato?
>
> qualcuno si è imbattuto nel medesimo errore?

@yakky?

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] mezzanine o django cms?

2017-08-14 Per discussione Carlo Miron
2017-08-14 18:50 GMT+02:00 Maurizio Noris <norismaurizi...@gmail.com>:

> 2017-08-14 19:36 GMT+03:00 Carlo Miron <mi...@python.it>:
>>
>> Perché hai scartato Wagtail?
>
> non l'ho mai provato sinceramente. Documentandomi in rete mi sembravano più 
> quotati django-cms e mezzanine rispetto wagtail (django-cms sembra il più 
> maturo, anche per il multilingua).
> Tu ritieni Wagtail una scelta migliore?

Me ne hanno parlato bene, ma mai provato; da cui la mia curiosità.

㎝

-- 
|:**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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] mezzanine o django cms?

2017-08-14 Per discussione Carlo Miron
2017-08-14 18:30 GMT+02:00 Maurizio Noris :

> Dovendo realizzare un sito multilingua, è preferibile utilizzare django cms o 
> mezzanine?
> Il supporto per il multilingua di mezzanine è stato bene integrato?

Perché hai scartato Wagtail?

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Rispondo per l'ultima volta dal digest, l'ho appena disabilitato

2017-08-10 Per discussione Carlo Miron
2017-08-10 14:36 GMT+02:00 Mirko Benedetti :

> Ciao Carlo, come mi ha spiegato Gollum1 in privato il mio account
> precedente postava in Html unicamente per cui il mio messaggio non era
> proprio visibile, se vuoi ti inoltro il messaggio per capire meglio.
> Adesso sono su gmail, dovrebbe andar meglio.

Non è così. Il messaggio è stato distribuito ugualmente a tutti gli
iscritti; i quali, a seconda della configurazione del proprio MUA,
hanno ricevuto un messaggio HTML, oppure uno  vuoto con un allegato
HTML, esattamente come puoi vedere nell'archivio MailMan:


Ciao,
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Netiquette su mailing list

2017-08-09 Per discussione Carlo Miron
Ciao Mirko,

2017-08-09 17:12 GMT+02:00 Mirko Benedetti :

> nella mia prima email a questo gruppo mi sono reso conto di aver postato in 
> Html, scusate.
> Credo che sia per questo che il contenuto della mia mail è stato rimosso e 
> linkato a una pagina.

Cosa intendi, scusa?
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] Rivista bimestrale su python

2017-08-05 Per discussione Carlo Miron
2017-08-05 19:49 GMT+02:00 Massimiliano della Rovere
:

> Quanti di voi sanno dell'esistenza di questa rivista?
> http://sprea.it/rivista/14982
>
> Io la ho scoperta oggi in edicola!

da chi è firmata?
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python


Re: [Python] {Semi OT] packtpub e libro gratis

2017-07-12 Per discussione Carlo Miron
On Wed, Jul 12, 2017 at 10:22 AM, Massimiliano Modena  wrote:

> Non ricordo se ho scoperto su questa ML l'esistenza del sito o meno. Ma oggi
> c'è in regalo Web Development with Django Cookbook.
>
> Lo trovate all'indirizzo:
> https://www.packtpub.com/packt/offers/free-learning.
>
> Saluti Massimiliano.

Occhio che è un po' vecchiotto (ottobre 2014); l'ho sfogliato prima,
non ricordavo quante cose sono cambiate in meno di 3 anni...

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] I Video di PyConOtto! (e Altre Cose Interessanti)

2017-06-22 Per discussione Carlo Miron
<http://mailchi.mp/5208a04491cd/ti-sei-perso-pycon-otto-guarda-i-video-della-conferenza>

Cheers,
㎝

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


Re: [Python] Print con end=""

2017-06-09 Per discussione Carlo Miron
Ciao Gabriele

2017-06-09 23:56 GMT+02:00 Gabriele Battaglia :

> Buona sera.
> Per impedire l’andata a capo del cursore, dopo aver visualizzato qualcosa in
> console con print, da python 2 io facevo così:
> senza la __future__ print
>
> print “Qualcosa”,
> print “ qualcos’altro”
>
> Con la funzione importata dal module __future__
>
> print(“qualcosa”,end=“”)
> print(“ qualcos’altro”)
>
> Da Python 3 invece, il secondo metodo, che mi aspettavo funzionasse, non va
> e mi ritorna un errore di sintassi.
> Perché?

A Me Funziona™

miron@hop ~
$ python3
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print("qualcosa",end="")
qualcosa>>> print(" qualcos'altro")
 qualcos'altro
>>>

boh?
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Libro gratis Pakt: Expert Python Programming - Second Edition

2017-06-09 Per discussione Carlo Miron
2017-06-09 15:07 GMT+02:00 Marco Santamaria :

> Sfogliando velocemente mi ha colpito la discussione sulle problematiche
> legate a mro e super, in particolare la conseguenza che viene tratta a pag.
> 90:
>
> "Multiple inheritance should be avoided".
>
> Mi pare un'affermazione piuttosto drastica...
> Che ne pensate?

Che chiunque abbia 10 anni di esperienza con Zope e Plone come Ziadé
non può che essere *assolutamente* d'accordo :P

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Libro gratis Pakt: Expert Python Programming - Second Edition

2017-06-09 Per discussione Carlo Miron
On Fri, Jun 9, 2017 at 9:55 AM, Massimiliano della Rovere
 wrote:

> https://www.packtpub.com/packt/offers/free-learning

Da un rapido skimming ai primi 3 capitoli, sembrerebbe essere utile anche
a chi python lo conosce bene.

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Packages con stesso nome su python3

2017-05-25 Per discussione Carlo Miron
2017-05-25 6:34 GMT+02:00 Marco Beri :

> Il 25 mag 2017 05:41, "Karim"  ha scritto:
> 2017-05-25 9:17 GMT+10:00 Karim :
>>
>> Sono riuscito a risolvere usando 'imp' anche se e' deprecated.
> Rettifico. Non mi funziona.
> Il cambio del label anche non funziona. :-(

> Karim,
> immagino che anche questo tu l'abbia già provato e non funzioni, vero?
> https://stackoverflow.com/a/6032023

Che è una reimplementazione del consiglio di Andrea D'Amore, che
_dovrebbe_ funzionare.

>>> open("calendar.py", "w").close()
>>> import calendar
>>> calendar

>>> import sys
>>> del sys.modules["calendar"] # questo serve solo perché
l'ho già importato
>>> del sys.path[0]
>>> import calendar
>>> calendar


Ciao,
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Fwd: Preventivo per un Sw Python da realizzare

2017-05-10 Per discussione Carlo Miron
2017-05-10 9:17 GMT+02:00 Giordano Salvadori :

> Conoscete per caso qualche programma magari scritto in Python che
> "automaticamente" ovviamente inserendo un numero di codice, caratteristiche
> varie del progetto tipo le librerie utilizzate, le caratteristiche tipo,
> accesso a internet oppure accesso a file .csv oppure pdf o robe del genre,
> e che poi permetta di avere un valore di massima ???
>
> Dovrebbe essere qualcosa che si basa su dati quindi non dovrebbe essere
> particolarmente incasinato, bisogna trasformare le formule che in alcuni
> casi ho visto in alcuni siti in programma, voi che dite ?!?
> Ovviamente ci sarebbero delle notevoli discrepanze dalla realtà, ma comunque
> uno strumento che potrebbe essere poi corretto e interpretato da chi
> utilizza lo strumento.

Il più famoso programma di metriche basato sulle righe di codice (LOC)
è SLOCCount
.
Scritto in p*rl (scusa, Nicola), e con tutte le limitazioni del caso,
ma mi sembra essere la cosa più simile a ciò che chiedi.

Ciao,
㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Package scomparso da github

2017-05-01 Per discussione Carlo Miron
2017-05-01 14:23 GMT+02:00 Riccardo Magliocchetti
:

> Il 01/05/2017 13:36, Karim ha scritto:
>> 2017-05-01 18:53 GMT+10:00 Riccardo Magliocchetti
>> > >:
>>
>> Forse perchè distribuiva redactor come se fosse software libero quando
>> non lo è?
>>
>> No, avevo controllato quando ho iniziato ad usare il package (3 anni fa).
>> Nei
>> docs c'era la spiegazione che la sua licenza gli permetteva di
>> ridistribuire.
>
> Forse 3 anni fa ma non ora:
> https://imperavi.com/redactor/license/

«The Professional License do not allow integration of the Redactor
with open source products.»

Più chiaro di così...

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] [PyConIT] Follow-up Beginners' Day e CoderDojo

2017-04-14 Per discussione Carlo Miron
2017-04-14 10:17 GMT+02:00 Massimiliano della Rovere
:

> sarebbe utile avere un sito che mostri su mappa e in versione tabellare
> tutte le iniziative di eventi python... magari esiste già e non lo so?

http://lmorillas.github.io/python_events/
https://www.python.org/events/

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] python 2-3 e CGI

2017-04-06 Per discussione Carlo Miron
Il 06 apr 2017 22:13, "Franky gmail" <fgt...@gmail.com> ha scritto:

[snip] mysql [snip]
 si prospettano ENORMI carichi di lavoro tra ricerche, inserimenti,
classificazioni ecc.


buona fortuna...


㎝

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


[Python] Fwd: [Pycon] Aggiornamenti alla Startup Competition ed eventi sociali di PyCon Italia Otto

2017-03-18 Per discussione Carlo Miron
Ancora postumizzato da St. Patrick :P, spero di fare cosa gradita inoltrandovi

-- Forwarded message --
From:  
Date: 2017-03-18 11:32 GMT+01:00
Subject: [Pycon] Aggiornamenti alla Startup Competition ed eventi
sociali di PyCon Italia Otto


Startup Competition: slitta di qualche giorno la chiusura delle
iscrizioni! Viene posticipata la chiusura di una settimana, leggete
per i dettagli. Durante PyCon Italia ci saranno molti eventi sociali
per rilassarsi in compagnia bevendo, mangiando e godendosi la nostra
meravigliosa Firenze. Aggiornamenti Startup Competition
Abbiamo deciso di posticipare la chiusura delle iscrizioni. Sappiamo
di diversi progetti che non avrebbero fatto in tempo con la scadenza
ed in accordo con i partner della iniziativa abbiamo deciso di dare
ancora una settimana per le iscrizioni. Questo vuol dire che poi
avremo pochissimi giorni per la valutazione per non far slittare di
troppo le altre date: prevediamo di annunciare comunque i vincitori
entro il 28 Marzo, per darvi ancora la possibilità di poter acquistare
dei biglietti con la tariffa Regular prima della chiusura e per dar
più tempo possibile alle startup vincitrici della competition per
poter preparare il loro intervento a PyCon Italia. Le Startup
partecipanti saranno comunque presenti allo Startup Corner con i
poster dei loro progetti!
Info sulla Startup Competition di PyCon Italia

DataBeer!
In occasione di PyCon Italia Otto, DataBeers Tuscany in collaborazione
con PyData organizza il 3° DataBeers. L’evento si svolgerà la sera di
giovedì 6 Aprile: per l’occasione verrano presentati 5 data case che
potremmo ascoltare e discutere bevendo una birra in compagnia offerta
dal nostro sponsor spagnolo Estrella.
Vorreste presenziare come relatori? Come ascoltatori? Come bevitori?
Iscrivetevi!
Non avete ancora capito di cosa stiamo parlando? Leggete qui ed
iscrivetevi comunque!

Socializzare o non socializzare? La risposta, ovviamente, è: birra!
Ci sono momenti della vita in cui è necessario evolversi, e momenti in
cui è necessario tenere salde le proprie tradizioni. Durante PyCon
Italia abbiamo delle tradizioni che non ci rassegneremo mai a perdere:
la birra ed il cibo.
Vi invitiamo tutti a partecipare quindi ai nostri meravigliosi eventi
mondani, la James Joyce Pub, a pochi passi da PyCon Italia Otto, e
soprattutto la celeberrima PyFiorentina, sabato 8 aprile al ristorante
Zazà, per gustare la Bistecca alla fiorentina famosa in tutto il
mondo!
Scorri il menù e prenota la tua bistecca!



-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] Fwd: [Pycon] Call for Volunteers

2017-03-14 Per discussione Carlo Miron
Ciao, inoltro l'accorato appello del buon Matt. Fatevi sotto!

-- Forwarded message --
From: Matteo Benci 
Date: 2017-03-13 17:08 GMT+01:00
Subject: [Pycon] Call for Volunteers
To: Organizzazione Pycon Italia


Ciao a tutti,
come ogni anno in previsione di PyCon stiamo raccogliendo le adesioni per
chi volesse dare una mano allo staff durante la conferenza.
Attualmente siamo altamente sotto organico (9 magliette gialle su 15 minime
necessarie). Visto il numero notevole di sale e di interventi.

Fatevi sotto quindi che abbiamo bisogno di voi! :)

Ciao e grazie,
Matteo
-- 
[image: logo]



*Matteo Benci*




* Event Set-Up & Coordinator PyCon Otto | Florence | April 6-9, 2017 web:
pycon.it  | facebook.com/pyconitalia
 Phone: +393495577593
<349%20557%207593> *



-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Dubbi basilari da neofita.

2017-02-28 Per discussione Carlo Miron
2017-02-28 18:27 GMT+01:00 Alessandro Re :

> Giusto per curiosità, come si chiama il software?

Suppongo sia .

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] REST framework

2017-02-20 Per discussione Carlo Miron
Il 20 feb 2017 20:05, "Marco"  ha scritto:


Il giorno 20 feb 2017, alle ore 19:07, Manlio Perillo <
manlio.peri...@gmail.com> ha scritto:

2017-02-20 19:01 GMT+01:00 bruno bossola :


ma gli sviluppatori qui vorrebbero usare un "framework REST" (e vabbe'... )

ma mi propongono tutti frameworks belli sincroni e lenti :)


Forse intendono
http://www.django-rest-framework.org/


... che è appunto un framework bello sincrono e lento.

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


Re: [Python] Agli speaker di pycon.it ;)

2017-02-03 Per discussione Carlo Miron
2017-02-03 16:04 GMT+01:00 Roberto Polli :

> Il 3 febbraio 2017 14:18, Paolo Melchiorre  ha scritto:
>> controllato, nessun commento, notizie dei risultati delle votazioni ?
>
> Non sono così addentro ;)
>
> Con altri stavamo verificando i commenti ed è uscito fuori che nessuno
> aveva risposto...

falso anche questo :P
(ma mi sono accorto del commento solo per caso)

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Agli speaker di pycon.it ;)

2017-02-03 Per discussione Carlo Miron
2017-02-03 15:30 GMT+01:00 Francesco Maida <francesco.ma...@gmail.com>:

> 2017-02-03 15:23 GMT+01:00 Carlo Miron <mi...@python.it>:
>> Quindi il mio training avrebbe avuto 0 voti, secondo te? ~:-/

> Ma fosse per me sarebbe il numero uno! ^_^ Ma avevo il dubbio che magari
> gli altri potevano essere tutti stakanovisti ed io l'unico pigro ^___^

Tranquillo, è primo in classifica :-!

㎝

-- 
|:**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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Agli speaker di pycon.it ;)

2017-02-03 Per discussione Carlo Miron
2017-02-03 15:21 GMT+01:00 Francesco Maida :

> Io non ho capito se quel numeretto che appariva alla sinistra del talk
> proposto indicava il codice del talk oppure il numero di voti che aveva già
> preso (insomma, alla uservoice.com)

Quindi il mio training avrebbe avuto 0 voti, secondo te? ~:-/

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] PyNews su CFP, voting, grants e programma!

2017-01-28 Per discussione Carlo Miron
2017-01-28 17:34 GMT+01:00 Francesco Maida :

> Ciao, scusa se rompo i maroni ma è normale che sul sito ufficiale di python
> non ci sia ancora traccia del PyCon Italia?
> Da queste pagine:
>
> https://www.python.org/events/python-events/?page=2
> https://www.python.org/events/python-events/?page=3
>
> Vedo lo DjangoCon di Firenze che si svolgerà quasi negli stessi giorni ma
> non vedo elencato il PyCon.

Credo che ci siamo dimenticati di segnalare l'evento. Non ho idea di
chi lo facesse gli anni scorsi...

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] PyNews su CFP, voting, grants e programma!

2017-01-25 Per discussione Carlo Miron
On Wed, Jan 25, 2017 at 5:43 PM, Francesco Maida
 wrote:

> Scusa ma per curiosità c'è una differenza fra il talk "Plugin Based Chat
> Bots in Telegram" ed il talk "Writing Plugin Based Chat Bots in Telegram" ?
> Stessa cosa per le versioni italiane: c'è differenza fra il talk "Chat Bot
> in Telegram (e slack e altri)" e "Scrivere Chat Bot per Telegram e Slack" ?

dovrebbero essere un talk ed un training, per entrambe le lingue.

> (Io per non sbagliare ho dato il voto massimo a tutti e quattro ^^)

bravo!

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Blog statico con Pelican, GitHub e TravisCI

2017-01-25 Per discussione Carlo Miron
On Wed, Jan 25, 2017 at 10:37 AM, Marco Beri  wrote:

> On Wed, Jan 25, 2017 at 10:31 AM, Christian Barra 
> wrote:
>>
>> Ho inferito male
>
> E Nicola ha infierito :-)

Nicola o Nikola?

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Blog statico con Pelican, GitHub e TravisCI

2017-01-24 Per discussione Carlo Miron
2017-01-24 22:50 GMT+01:00 Christian Barra <barrac...@gmail.com>:

> Per chi fosse interessato consiglio di guardare anche Nikola al posto di
> pelican.

O Hugo <https://gohugo.io/> :P

㎝

-- 
|:**THE BEER-WARE LICENSE** *(Revision 42)*:
| <ca...@golang.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] Pycon

2017-01-24 Per discussione Carlo Miron
2017-01-24 21:03 GMT+01:00 Fundor333 :

> Il 05/01/2017 16:53, Matteo Benci ha scritto:
> No, ma le facciamo ultraveloce :)
>
> Si potrebbe averle prima della fine della prima fase di prenotazione? Prima
> della fine della Early?
> Grazie

Scusa, te lo volevo mandare qualche giorno fa, ma è un periodo
delirante™, abbi pazienza :-/

㎝

-- 
|:**THE -WARE LICENSE** *(Revision ㊷)*:
|  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. —㎝


volantino PyConIT8.pdf
Description: Adobe PDF document
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] PyNews su CFP, voting, grants e programma!

2017-01-24 Per discussione Carlo Miron
https://www.pycon.it/it/blog/2017/01/24/pynews-su-cfp-voting-grants-e-programma

Dopo il grande successo di PyCon Italia Sette, inauguriamo anche PyCon
Italia Otto con un nuovo record: abbiamo avuto un incremento di circa
il 50% delle proposte di talk inviate rispetto alla scorsa edizione!
Questo rende PyCon Italia Otto già l'edizione con maggior numero di
talk proposti della storia di PyCon Italia :) CFP chiuso e votazione
comunitaria:
Dal 23 gennaio in poi sarà aperta la votazione comunitaria: tutti
coloro che hanno sottomesso una proposta di talk e tutti i possessori
di biglietto Early Bird avranno la facoltà di votare i talk sottoposti
con un sistema di apprezzamento che ci aiuterà a scegliere il
programma di PyCon Italia Otto! I numeri ci inducono a sperare che il
livello medio delle proposte sarà decisamente buono e che ci sarà una
buona selezione durante la votazione comunitaria. Quindi, se hai
proposto un talk e vorresti diventare speaker, di a chi conosci e che
è interessato a partecipare alla conferenza di non perdersi il
biglietto Early Bird così potrà votare per te!
Vota i talk!

Stanze in Hotel:
Come ogni anno, anche per quest'anno abbiamo fatto uno speciale
accordo con l'Hotel Mediterraneo, dove si terrà la conferenza, grazie
al quale siamo in grado di offrirvi un certo numero di camere a prezzi
più contenuti. Le camere sono disponibili direttamente per l'acquisto
dal nostro sito e saranno acquistabili per ognuno che abbia già o che
acquisti anche un biglietto per la conferenza, naturalmente. Non
aspettare che si esauriscano!
Prendi subito il tuo biglietto Early Bird e la camera a prezzo speciale!

Grants:
Abbiamo ricevuto molte richieste di grant da quando abbiamo pubblicato
il form sul nostro sito. Faremo il possibile per aiutare quanta più
gente a partecipare a PyCon Italia Otto ma purtroppo dovremo
sicuramente fare delle scelte poiché abbiamo un budget limitato da
poter utilizzare per questo tipo di aiuti. Abbiamo quindi deciso di
chiudere la possibilità di chiedere grant il 31 gennaio. Una
commissione interna all'organizzazione valuterà successivamente tutte
le domande pervenute. Non escludiamo di riaprire la procedura in
seguito, se troveremo ulteriori fondi o altri sponsor disposti ad
aiutarci per questo fine.

Beginner's Day:
In molti ci avete chiesto maggiori informazioni riguardo al primo
giorno di PyCon Italia Otto. Ufficialmente infatti quest'anno la
conferenza inizierà giovedì 6 Aprile: quel giorno stiamo organizzando
una serie di workshop ad ingresso libero per newbie, studenti,
insegnanti e ragazzi. Presto annunceremo i dettagli. Oltre a questo,
quel giorno prevediamo anche l'Assemblea dei soci di Python Italia.
Restate in contatto per avere presto novità!
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Crudo o cotto? PyConOtto!

2017-01-11 Per discussione Carlo Miron
2017-01-11 17:31 GMT+01:00 Carlo Miron <mi...@python.it>:

> Da bravi italiani, se non siamo in ritardo non siamo a nostri agio.

Sì, anto e mnencia, sto guardando voi. :P

㎝

-- 
|:**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. —㎝
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] PRESENTAZIONE

2017-01-01 Per discussione Carlo Miron
2017-01-01 21:47 GMT+01:00 Andrea D'ANDREA <andrea.dandrea...@gmail.com>:

> Ciao a tutti,
> mi chiamo Andrea D'ANDREA, vivo in provincia di Biella. Sono da anni un
> sostenitore del Software Libero e da qualche anno faccio il Formatore per
> corsi di Alfabetizzazione Informatica per Adulti. Mi sono avvicinato a
> Python da un paio di mesi. Ho visto su Kodi un'intero Corso su Python ma è
> la versione 2.6.4.
> Io ho un Notebook HP con Lubuntu 16.04 LTS ed ho trovato a scaricare
> l'ultima versione, ossia la 3.5.2.
> Quindi ci sono delle piccole diversità in alcuni comandi ed anche in certa
> sintassi di scrittura.
> Mi sto accingendo quindi alla traduzione del TUTORIAL e della GUIDA DI
> RIFERIMENTO della versione 3.6.0.
> Una volta ultimata, potrà essere pubblicata su sito python.it e messa a
> disposizione della comunità.

Ciao Andrea,

benvenuto e grazie.

㎝

-- 
|:**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] RE e dizionario

2016-12-21 Per discussione Carlo Miron
2016-12-21 16:25 GMT+01:00 Manlio Perillo <manlio.peri...@gmail.com>:
> 2016-12-21 13:46 GMT+01:00 Giovanni Porcari <giovanni.porc...@softwell.it>:
>>
>> Che belli gli oneliner :)
>
> La tentazione del lato oscuro della Forza è forte...

Ma ora abbiamo i piani della Morte Nera™.

㎝

-- 
|:**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] Fwd: Tre, due.. OTTO! PyCon Otto!

2016-12-06 Per discussione Carlo Miron
From:  <i...@pycon.it>
Date: 2016-12-06 17:42 GMT+01:00
Subject: Tre, due.. OTTO! PyCon Otto!


Finalmente è di nuovo tempo di Python! L’ottava edizione di Pycon
Italia sta per arrivare e sarà fantastica!
Se sei uno sviluppatore, community member o una startup, unisciti a
noi per degli indimenticabili giorni, dal 6 al 9 Aprile 2017, nella
bellissima Firenze. Pycon Italia è orgogliosa di unire l’ecosistema
Python con talk, training ed eventi sociali.
Dalla sessione di recruiting alla Startup Competition alle attività
per le donne sviluppatrici, Pycon Otto sarà un’esperienza da non
dimenticare.

Hai un’idea per un talk? Stiamo cercando Pythonisti appassionati da
includere nella nostra scaletta di talk. Invia la tua proposta entro
il 10 Gennaio 2017 ed aiutaci a rendere l’evento unico!
https://www.pycon.it/it/call-for-proposals/

La nostra board di organizzatori e partner incoraggia la diversità e
sta lavorando duro per avere un numero uguale di speaker donne.

Sei interessato a partecipare? Segnati la data e prendi un ticket a
prezzo scontato! L’early bird scadrà il 31 Gennaio 2017, dopodiché i
biglietti saranno disponibili al prezzo intero fino a fine marzo.

Non aspettare l’ultimo tuffo, prendi subito il tuo biglietto:
https://www.pycon.it/it/registrazione/


Ci vediamo a Firenze per PyCon Italia Otto!

-- 
|:**THE BEER-WARE LICENSE** *(Revision 42)*:
| <ca...@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] Scelta dell'ide al volo

2016-12-02 Per discussione Carlo Miron
2016-12-02 8:52 GMT+01:00 Alessandro Dentella <san...@e-den.it>:

>> > Per considerarlo lento lo devi avere provato su un 386...
>>
>> In effetti era un 386SX del 1989, e con molta meno RAM degli 8MB
>> necessari per farlo girare fluidamente (Eight Megabytes And Constantly
>> Swapping ;)
>
> 8MB per un 386sx mi pare che fossero tanti (ma ho scarsa
> memoria). credo che negli anni '90 il mio laptop sul quale usavo
> regolarmente emacs fosse un 486 con 8MB di RAM...

8 erano un'enormità. Ma anche i 4 di quel server erano un numerone.
Xenix era AFAIK l'unico OS ai tempi in grado di indirizzarli. La
macchina pilotava un PLC con interfaccia utente sviluppata in
EmacsLisp. La mia prima volta con Unix™, e con lisp. Ho degli ottimi
ricordi, ed ho imparato molto da lei. (Lo sai, il primo Unix non si
scorda mai ;)

Ciao,
㎝

-- 
|:**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] Scelta dell'ide al volo

2016-12-01 Per discussione Carlo Miron
2016-12-01 23:53 GMT+01:00 Alessandro Dentella <san...@e-den.it>:

>> Ed entrambi più lenti di emacs, che già di suo era l'ide piùllento del 
>> mondo. :P
>
> Non facciamo disinformazione, per cortesia.

Woah woah, calma. Stavo solo trollando, ok? :P

> Per considerarlo lento lo devi avere provato su un 386...

In effetti era un 386SX del 1989, e con molta meno RAM degli 8MB
necessari per farlo girare fluidamente (Eight Megabytes And Constantly
Swapping ;)

> Lo stai confrontando con un ide o con un editor?

Con i due IDE scritti in JS citati, che ovviamente girano su hardware
contemporaneo. :P

*E* con VI, ovviamente ;)

> Lo stai confrontando in configurazione da ide o da editor?

Da IDE. Sai, EMACS è un ottimo sistema operativo, purtroppo il suo
editor non è un granché.

Dai, Sandro, mi stai rispondendo sul serio? Diavolo, devo cominciare a
sparpagliare le mail di trolling alert.

> [snip]

Ciao,
㎝

-- 
|:**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] Emacs come ide al Volo

2016-12-01 Per discussione Carlo Miron
2016-12-01 17:55 GMT+01:00 Fundor333 <fundor...@gmail.com>:

> Visto che Git mi ha obbligato a imparare i comandi base di VIM, qualcuno ha
> uno starting point per emacs che non sia prova e smanetta o la tazza con
> tutti gli shortcuts? Thanks

AFAIK emacs ha solo 4 comandi utili:

M-x snake
M-x tetris
M-x doctor
M-x butterfly

(per quest'ultimo, vedi http://xkcd.com/378/ )

㎝

-- 
|:**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] Scelta dell'ide al volo

2016-12-01 Per discussione Carlo Miron
2016-12-01 17:17 GMT+01:00 Francesco Maida <francesco.ma...@gmail.com>:

> Se proprio vogliamo fare l'elenco degli editor e degli IDE io butto nella
> mischia Visual Studio Code, che secondo me con il plugin per Python è
> un'editor decente. Non ho provato mai a scriverci niente di più complesso di
> uno script di 50 righe, ma mi sembrava buono e più reattivo rispetto a suo
> "cuggino" Atom (entrambi sono basati sul framework Electron).

Ed entrambi più lenti di emacs, che già di suo era l'ide piùllento del mondo. :P

㎝

-- 
|:**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] Articoli su Python 2-3

2016-11-28 Per discussione Carlo Miron
> On Saturday, November 26, 2016 5:54:03 PM CET Marco Beri wrote:
>> Ma non è un deficiente:
>> https://en.m.wikipedia.org/wiki/Zed_Shaw

Mark, ti ricordi vero chi era il pelato sul ring di Rubyconf[¹]?

On Mon, Nov 28, 2016 at 7:54 PM, Daniele Tricoli <er...@mornie.org> wrote:

> Io ammiro molto di più Armin Ronacher:
> http://lucumr.pocoo.org/2016/11/5/be-careful-about-what-you-dislike/
> :)

Chissà se nel frattempo ha fatto pace con le maniglie[²].

[¹]: <http://stacktrace.it/2008/01/08/conferences/>
[²]: <https://zerokspot.com/weblog/2012/07/15/europython2012/>

Cheers,
㎝

-- 
|:**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] Python in Windows 10

2016-11-15 Per discussione Carlo Miron
2016-11-15 8:27 GMT+01:00 Simone Federici <s.feder...@gmail.com>:

> https://bitnami.com/stack/django/installer
>
> c'è anche bitnami che ha anche tutto lo stack applicativo x il deploy di
> django


Bitnami Django Stack ships with the following:

  - Django 1.10.3
  - Python 2.7.12

wtf??? ^^


-- 
|:**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] POODR per Python?

2016-11-07 Per discussione Carlo Miron
2016-11-07 14:22 GMT+01:00 bruno bossola <bboss...@gmail.com>:

> [...]
> Il problema e' che, ad esempio, qui ho programmatori che si credono
> bravissimissimi (un po' come me prima dell'incontro con Francesco)

Il Papa?

㎝

-- 
|:**THE BEER-WARE LICENSE** *(Revision 42)*:
| <ca...@golang.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] Non e' in topic ma e' carina

2016-11-06 Per discussione Carlo Miron
2016-11-06 19:34 GMT+01:00 Patrick Guido <patrick.armi...@gmail.com>:

> Non posto roba interessante (quando lo faccio è spesso roba JS :D)
>
> Comunque scherzavo ;)

Scherzavi quando dicevi che esiste roba JS interessante, giusto?

㎝

-- 
|:**THE BEER-WARE LICENSE** *(Revision 42)*:
| <ca...@golang.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] (senza oggetto)

2016-11-03 Per discussione Carlo Miron
2016-11-03 18:24 GMT+01:00 Michele Gatti <mgsoluzi...@gmail.com>:

> Il giorno mer 2 nov 2016 alle ore 09:34 Gerardo Califano <
> califano@gmail.com> ha scritto:
>
>> Come faccio a non ricevere più email?
>> ___
>> Python mailing list
>> Python@lists.python.it
>> http://lists.python.it/mailman/listinfo/python
>
>
>
> clicca qui <http://lists.python.it/mailman/listinfo/python>e inserisci la
> tua email qui:
> [image: pasted1]
>

Strano, non riesco scrivere nulla sul campo di testo qui sopra, e il
pulsante non funziona...



㎝

-- 
|:**THE BEER-WARE LICENSE** *(Revision 42)*:
| <ca...@golang.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] Slack channel pythonita

2016-10-31 Per discussione Carlo Miron
On Mon, Oct 31, 2016 at 11:37 AM, Nicola Larosa <n...@teknico.net> wrote:

> Carlo Miron wrote:
>> Interessante. Puoi/vuoi elaborare?

> Non l'ho ancora provato, ecco la valutazione di un collega (citato col
> suo permesso):
> [snip]

Grazie

㎝

-- 
|:**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] Slack channel pythonita

2016-10-31 Per discussione Carlo Miron
Il 31 ott 2016 09:26, "Nicola Larosa" <n...@teknico.net> ha scritto:

> Francesco Barresi wrote:
> > Un ottima soluzione può essere https://riot.im che si basa su
> > https://matrix.org
> > Personalmente è l'unico che ho trovato che soddisfa i criteri di
> > federated, open-source e volendo self-hosted.
> >
> > Lo uso tutti i giorni e lo consiglio vivamente a tutti.

> Anche nella mia ditta stiamo valutando, finora positivamente, Matrix e
> Riot, dopo aver scartato Mattermost per motivi parzialmente analoghi a
> Slack.

Interessante. Puoi/vuoi elaborare?

㎝

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


Re: [Python] Slack channel pythonita

2016-10-30 Per discussione Carlo Miron
2016-10-31 0:55 GMT+01:00 Marco Beri <marcob...@gmail.com>:

> Il 31 ott 2016 12:52 AM, "Carlo Miron" <mi...@python.it> ha scritto:
>> On Mon, Oct 31, 2016 at 12:41 AM, Marco Beri <marcob...@gmail.com> wrote:
>>
>> > Sperare di rimanere meno di 8462 pythonisti nel canale mi pare brutto
>> > :-)
>>
>> Slack ha un'offerta per le non-profit (
>> https://get.slack.help/hc/en-us/articles/204368833 ), sul quale il
>> buon Benci si stava informando.
>>
>> Infatti il team Gophers ha attualmente 10720 iscritti (
>> http://i.imgur.com/uGyEz6K.png ).
>
> Possiamo stare tranquilli che non cambierà mai questa policy? Non ci vedi un
> lock-in pericoloso come dice Pietro?

L'ultima volta che ho controllato, Python Italia usava tranquillamente
Facebook e Twitter. È cambiato qualcosa e non me ne sono accorto?

㎝

-- 
|:**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] Slack channel pythonita

2016-10-30 Per discussione Carlo Miron
On Mon, Oct 31, 2016 at 12:41 AM, Marco Beri <marcob...@gmail.com> wrote:

> Sperare di rimanere meno di 8462 pythonisti nel canale mi pare brutto :-)

Slack ha un'offerta per le non-profit (
https://get.slack.help/hc/en-us/articles/204368833 ), sul quale il
buon Benci si stava informando.

Infatti il team Gophers ha attualmente 10720 iscritti (
http://i.imgur.com/uGyEz6K.png ).

㎝

-- 
|:**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] Salvare bytecode

2016-09-08 Per discussione Carlo Miron
2016-09-08 17:52 GMT+02:00 Emanuele Urselli <urselliemanu...@icloud.com>:

> Eseguo l'interprete con il comando:
> ./python

e ./python --version ti risponde Python 3.5.2?

L'hai compilato dai sorgenti? Devi aver fatto qualcosa di strano, per
ottenere questo comportamento inusuale.
Non saprei come aiutarti, senza una grossa quantità di informazioni in
più. Sorry.

㎝

-- 
|:**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] Salvare bytecode

2016-09-08 Per discussione Carlo Miron
2016-09-08 17:39 GMT+02:00 Emanuele Urselli <urselliemanu...@icloud.com>:

> Piattaforma: Ubuntu 16.04
> Versione Python: 3.5.2

Stessa piattaforma e versione.

> Posizione modulo: /home/Python-3.5.2
> Nome file: m.py (modulo: m)
> Contenuto: print(__name__)
> Comando: $ python -m m
> Output: __main__ (nessun .pyc creato)

miron@hop:/tmp/eu
$ echo "print(__name__)" > m.py
miron@hop:/tmp/eu
$ ls
m.py
miron@hop:/tmp/eu
$ python3 -m m
__main__
miron@hop:/tmp/eu
$ ls
m.py  __pycache__

come previsto.

> Invece:
> Comando: $ python -m m.py
> Output: __main__ (generato bytecode)

miron@hop:/tmp/eu
$ python3 -m m.py
m
/usr/bin/python3: Error while finding spec for 'm.py' (AttributeError:
module 'm' has no attribute '__path__')

come previsto.

> Lo stesso per quanto riguarda l'opzione -O (generazione bytecode ottimizzato)

Sei sicuro di star utilizzando l'interprete giusto, e non il Python
2.7.12 di sistema?

㎝

-- 
|:**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] Salvare bytecode

2016-09-08 Per discussione Carlo Miron
2016-09-08 17:25 GMT+02:00 Emanuele Urselli <urselliemanu...@icloud.com>:

> Eh, è ciò che anche io ho letto sul libro.
> Solo che se passo il modulo mi dà un output il risultato dello script senza 
> generare bytecode.
> Se invece passo il file (con suffisso .py quindi) mi genera il file .pyc.
>
> Python 3.5.2 su Ubunt 16.04

Che comando dai, esattamente?
Che output ottieni?
E che modulo utilizzi, e dove si trova?

㎝

-- 
|:**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] Salvare bytecode

2016-09-08 Per discussione Carlo Miron
2016-09-08 16:33 GMT+02:00 Emanuele Urselli <urselliemanu...@icloud.com>:

> Se non sbaglio dis.dis() serve per vedere il bytecode.
> Comunque ci sono riuscito.
> Sono cambiate un po di cose.
> La versione Python del libro è quella precedente a quella attuale.
> In pratica con lo switch -m devo passare anche il suffisso .py. E mi genera 
> il .pyc.
> Con lo switch -O mi genera il bytecode ottimizzato senza assert.
> Ma dobbiamo inserire sempre il suffisso. Altrimenti in output abbiamo solo il 
> risultato dello script

???

Che strana versione di Python stai usando, e su che piattaforma?

㎝

-- 
|:**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] Quasi OT

2016-09-07 Per discussione Carlo Miron
2016-09-07 10:14 GMT+02:00 Giovanni Porcari <giovanni.porc...@softwell.it>:

> Diciamo che la cosa che mi colpisce è che come con node.js usi un solo 
> linguaggio lato
> server e lato client e questo non è da poco…

Certo, fosse un linguaggio decente come ad esempio brainf*ck sarebbe meglio...

㎝ (che predilige [GopherJS] (https://github.com/gopherjs/gopherjs))

-- 
|:**THE BEER-WARE LICENSE** *(Revision 42)*:
| <ca...@golang.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] Cronojob in Python con orari variabili

2016-09-01 Per discussione Carlo Miron
2016-09-01 16:23 GMT+02:00 Riccardo Magliocchetti
<riccardo.magliocche...@gmail.com>:

> Il 01/09/2016 16:15, Fundor333 ha scritto:
>>> Linux o Windows?
>>>
>> Linux. Debian 8 a 64
>>>
>>> E se Linux uwsgi o non uwsgi?
>>>
>> Posso usarlo se necessario. Ha una opzione per temporizzare? Non ne ero a
>> aconoscenza
>
> uwsgi ha una opzione per tutto :)

+1 QotY.

㎝

-- 
|:**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] fizz-buzz-in-tensorflow

2016-07-27 Per discussione Carlo Miron
2016-07-27 10:45 GMT+02:00 Marco De Paoli <depao...@gmail.com>:

> (... ma veramente il test fizz-buzz è così diffuso nelle interviste?)

non saperei, a me è capitato di usarlo una fizzbuzzina di volte.

㎝

-- 
|:**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] test mail

2016-07-25 Per discussione Carlo Miron
pls ignore me.
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Countdown

2016-07-01 Per discussione Carlo Miron
Il 01 lug 2016 23:59, "Carlos Catucci" <carlos.catu...@gmail.com> ha
scritto:

> 2016-07-01 23:35 GMT+02:00 Simone Federici <s.feder...@gmail.com>:
> > dio c'è! almeno uno che capisce il mio SOH
>
> Quale significato attribuisci all'acronimo?
>
> SOHSydney Opera House (Sydney, Australia)
> SOHState Of Health
> SOHStart of Heading
> SOHStart Of Header
> SOHStock On Hand
> SOHSchool of Hospitality (various locations)
> SOHStraits of Hormuz
> SOHSoldiers of Honor (gaming)
> SoHSons of Hodir (World of Warcraft)
> SOHSurvivors of Homicide
> SOHSiege of Hate (band)
> SOHSports Olympiques de Houilles (French: Houilles Olympic Sports;
> sports club; est. 1929)
> SoHShores of Hazeron (game)
> SOHScientific Observation Hole
> SOHStart of Overhaul
> SOHStoughton Opera House (Stoughton, WI)
> SOHSecond-Order-Hold
> SOHSaviors of Humor (gaming clan)
> SOHSignificant Other Half
> SOHSaints of Hell
> SOHSpace on Hire (India)
> SOHSine is Opposite divided by Hypotenuse (trigonometry)
> SOHSo Over Him/Her
> SoHSepia Officinalis Hemocyanin
> SOHSome Old Hippie
> SOHSound of Hope (radio network)
> SOHSoldiers of Heaven
> SOHSave Our Homes (Amendment)
> SoHSecretariat of Health
> SOHStaff Officer's Handbook (various organizations)
> SOHSection Overhead (SONET)
> SOHSense Of Humor (used in personal ads)
> SOHSignal Overhead (SONET)
> SOHSnyder's of Hanover (bakery)
> SOHSociety of Homeopaths
> SOHSecretary of Housing (US)
> SOHSouth of Heaven
> SOHSafety and Occupational Health (USACE)

(used in personal ads)

㎝

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


Re: [Python] Info built-in types Python

2016-07-01 Per discussione Carlo Miron
2016-07-01 12:40 GMT+02:00 Giovanni Porcari <giovanni.porc...@softwell.it>:

>> Il giorno 01 lug 2016, alle ore 11:33, Cristian Esposito 
>> <cristian.espos...@hotmail.com> ha scritto:
>>
>> Presumo che il primo tipo di variabile sia una variabile built-in float, 
>> mentre la seconda una float normale.
>> Come posso eseguire operazioni tra una variabile built-in Float e una 
>> variabile primitiva float?
>>
>> Grazie in anticipo, buon lavoro.
>
> Non so darti una risposta sul tema ma sommessamente usare dei float
> invece  che dei Decimal in un contesto di questo tipo mi pare comunque 
> pericoloso…

Sommessamente, eh.

㎝

-- 
|:**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] Sul Sole 24 ore di oggi si parla di Python e di soldi..

2016-07-01 Per discussione Carlo Miron
2016-07-01 12:50 GMT+02:00 Carlos Catucci <carlos.catu...@gmail.com>:

> 2016-07-01 11:17 GMT+02:00 Davide Olianas <dav...@davideolianas.com>:
>> A me interesserebbe capire cosa intendano precisamente: basta sapersi
>> arrangiare con piccoli script per automatizzare certe operazioni, oppure
>> bisogna saper scrivere codice con una certa qualità (:= codice che lo guardi
>> dopo un anno e ha ancora senso)?
>
> Per me la seconda. Se fai piccoli script che poi non puoi mantenere
> sei come il tecnico che fa le cose per abitudine, ma senza capire cosa
> ha fatto. E alla prima deviazione dalla routine va in palla.

<https://it.wikipedia.org/wiki/Programmazione_cargo_cult>

㎝

-- 
|:**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: Imparare un altro linguaggio

2016-04-20 Per discussione Carlo Miron
2016-04-20 12:36 GMT+02:00 Alessandro Re <a...@ale-re.net>:

> Per quanto mi riguarda la scelta di un prossimo linguaggio... Io
> voterei per un linguaggio che ti permetta di imparare paradigmi nuovi
> (specialmente se lo fai per tua passione personale).
>
> C, te lo consiglio per giocare coi puntatori. Sono una bella cosa da
> sapere, secondo me, e li trovo anche molto divertenti.
>
> Scheme/LISP, te li consiglio per la programmazione funzionale pura,
> che è molto divertente anche quella e può aprirti qualche porta
> mentale che puoi riutilizzare in altri linguaggi moderni (java,
> python...)
>
> Erlang/go, te li consiglio se vuoi divertirti con la concorrenza e il
> parallelismo. Ho trovato molto belli i paradigmi che usano, e sebbene
> non usi erlang da un bel po', ancora adoro il pattern matching che
> usa.
>
> Poi oh, vedi te cosa vuoi fartene :) Se devi cercarti un lavoro...
> Andrei su C/C++/Java.

Nick Coghlan qualche giorno fa su [Python-ideas] consigliava:

| It's also the case that any developer with only one language currently
| in their toolbox (even when that language is Python) is a developer
| with lots of learning opportunities ahead of them:
| 
<http://www.curiousefficiency.org/posts/2015/10/languages-to-improve-your-python.html>

㎝

-- 
|:**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] Offerta di Lavoro

2016-04-05 Per discussione Carlo Miron
2016-04-05 17:57 GMT+02:00 Carlos Catucci <carlos.catu...@gmail.com>:

> Chissa' se Giovanni puo' essere interessato al posto ;)

| La richiesta è rivolta a neolaureati o prime esperienze [...]

in effetti rientra nel profilo richiesto.

㎝

-- 
|:**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] Traduzioni

2016-04-02 Per discussione Carlo Miron
2016-04-02 19:29 GMT+02:00 greenkey loman <green...@loman.it>:

> Ciao a tutti,
> qualcuno di voi già mi conosce ma è la prima volta che scrivo qua, sono
> Lorenzo e partecipo da qualche tempo agli incontri milanesi dei Pythonisti.

I pythonisti anonimi, in coro: "Ciao, Lorenzo!"

> Ho deciso di scrivere sulla mailing list perchè vorrei propormi per
> organizzare le traduzioni.

Andata, preso!

Palmux, presto, passagli il contratto da firmare col sangue, prima che
cambi idea...

> Se non c'è già qualcuno che ha in carico la questione, come prima azione
> proporrei di modificare la pagina del sito:
> http://www.python.it/wiki/show/flatpages/comunita/sito/help/
>
> Da così:
> #
>
> Aggiornamenti testi
>
> Desideriamo riprendere il lavoro di traduzione: i volontari non sembrano
> mancare, ma occorre uno sforzo di coordinazione. Appena avremo le idee più
> chiare vi faremo sapere.
>
> #
>
> A così:
> #
>
> Aggiornamenti testi
>
> Stiamo riprendendo il lavoro di traduzione, se volete avere informazioni,
> proporre articoli o se volete proporvi come traduttori, scrivete a
> [greenkey.python at loman.it].
>
> #
>
>
> Che ne dite?

s/greenkey.python at loman.it/greenkey at python.it/

㎝

-- 
|:**THE BEER-WARE LICENSE** *(Revision 42)*:
| <ca...@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] test

2016-04-02 Per discussione Carlo Miron
Il 02/apr/2016 18:30, "Giovanni Porcari" <giovanni.porc...@softwell.it> ha
scritto:

> > Il giorno 02 apr 2016, alle ore 14:39, Gollum1 <
gollum1.smeag...@gmail.com> ha scritto:
> >
> > Il 02 aprile 2016 14:02:19 CEST, Carlo Miron <mi...@python.it> ha
scritto:
> >> 2016-04-02 13:16 GMT+02:00 Carlos Catucci <carlos.catu...@gmail.com>:
> >>
> >>> On 2 April 2016 at 07:21, Carlo Miron <mi...@python.it> wrote:
> >>>>
> >>>>> Forse qualcuno degli amministratori della lista dovrebbe
> >> semplicemente
> >>>>> eliminarlo...
> >>>>
> >>>> fatto, scusate.
> >>>
> >>> Cavolo, sei un killer spietato ;)
> >>
> >> *E* Gollum1 è dietro di me, ora.
> >>
>
>
> Per questo continuavi a sbirciare alle tue spalle ?

:D

no, collo dolorante :(
che brutta cosa invecchiare ;-P

㎝

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


Re: [Python] test

2016-04-02 Per discussione Carlo Miron
2016-04-02 13:16 GMT+02:00 Carlos Catucci <carlos.catu...@gmail.com>:

> On 2 April 2016 at 07:21, Carlo Miron <mi...@python.it> wrote:
>>
>> > Forse qualcuno degli amministratori della lista dovrebbe semplicemente
>> > eliminarlo...
>>
>> fatto, scusate.
>
> Cavolo, sei un killer spietato ;)

*E* Gollum1 è dietro di me, ora.

㎝

-- 
|:**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] test

2016-04-01 Per discussione Carlo Miron
Il 01/apr/2016 23:17, "Gollum1" <gollum1.smeag...@gmail.com> ha scritto:

> Il 01 aprile 2016 18:27:11 CEST, Carlo Miron <mi...@python.it> ha scritto:
> >2016-04-01 18:26 GMT+02:00  <leona...@deasistemi.com>:
> >
> >> L'account leona...@deasistemi.com non è più attivo.
> >
> >grazie della preziosa informazione.
>
> Forse qualcuno degli amministratori della lista dovrebbe semplicemente
eliminarlo...

fatto, scusate.

ciao,

㎝

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


Re: [Python] test

2016-04-01 Per discussione Carlo Miron
2016-04-01 18:26 GMT+02:00  :

> L'account leona...@deasistemi.com non è più attivo.

grazie della preziosa informazione.
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] test

2016-04-01 Per discussione Carlo Miron
test
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Lettere accentate con tastiera en_US (era: Re: [OT] Mail di Enrico Bianchi in spam)

2016-03-21 Per discussione Carlo Miron
2016-03-21 14:44 GMT+01:00 Pietro Battiston <m...@pietrobattiston.it>:

> Giacché siamo in tema...
> http://www.treccani.it/lingua_italiana/domande_e_risposte/grammatica/gr
> ammatica_453.html

Devo ammettere che provo un leggero fastidio quando inizio i libri
Einaudi. Poi evidentemente mi abituo, e non lo noto piú. :P

㎝

-- 
|:**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] MySQLdb connect non aggiorna i dati sui client

2016-03-02 Per discussione Carlo Miron
2016-03-02 13:58 GMT+01:00 Giuseppe Costanzi <giuseppecosta...@gmail.com>:

> sto migrando un' applicazione da sqlite a mysql, funziona tutto tranne che
> per il fatto che se effettuo degli insert o update da un client queste
> sono visibili
> solo al client che esegue queste modifiche, mentre su tutti gli altri
> devo chiudere l'applicazione e riavviarla.
> Controllando sul server, le tabelle si aggiornano correttamente.
> E' come se gli altri client vedessero le tabelle del server solo quando si
> apre la connessione.
> Tra l' altro, usando tabelle innodb, nelle operazioni di scrittura
> forzo sempre il commit dell' operazione.
> L' applicazione ha anche una parte web, programmata con php, dove gli
> aggiornamenti sui dati sono coerenti.
>
> self.con.commit()
>
> cosa potrebbe essere?

mysql.

㎝

-- 
|:**THE BEER-WARE LICENSE** *(Revision 42)*:
| <ca...@golang.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] PEP 0484 - Dubbio

2016-02-24 Per discussione Carlo Miron
2016-02-24 17:26 GMT+01:00 Piacenza Federico <piacenza.feder...@gmail.com>:

> Salve a tutti,oggi mi sono imbattuto nella pep 484 - Type Hints.
>
> ho fatto qualche prova per vedere un po' come funzionava e sono rimasto
> sconcertato dal comportamento seguente:
>
> def pippo(Nome:str):
>print(Nome)
>
> pippo(23)
>
> mi sarei aspettato un errore legato ad un conflitto tra interi e stringhe ma
> cio non e' accaduto.
>
> Ma a livello semantico le 'Type Hints' non hanno alcun effetto?

Esatto, by design.

㎝

-- 
|:**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


  1   2   3   4   >