Re: [Python] Confronto di due file con filecmp

2015-03-12 Per discussione Nicola Larosa
Massimo Capanni wrote:
 Spero di aver espresso bene il mio dubbio.

Il tuo dubbio viene risolto dalla frase successiva. Continua a leggere.

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

Look at the poor New Agers. Christianity developed defenses against
criticism, arguing for the wonders of faith; New Agers culturally
inherit the cached thought that faith is positive, but lack Christian-
ity's exclusionary scripture to keep out competing memes. New Agers
end up in happy death spirals around stars, trees, magnets, diets,
spells, unicorns... - Eliezer Yudkowsky, 2007

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


[Python] Confronto di due file con filecmp

2015-03-12 Per discussione Massimo Capanni
Salve a tutti,

stavo leggendo i doc delle funzioni incluse nel modulo filecmp di Python e
ho trovato questa descrizione della funzione filecmp.cmp che non capisco:

-
filecmp.cmp(f1, f2[, shallow])
Compare the files named f1 and f2, returning True if they seem equal, False
otherwise.
-

la cosa che mi stranisce è la parola 'seem': sarò scarso in inglese ma la
documentazione mi sta dicendo che il confronto dei due file ritorna True
anche se non sono totalmente uguali?
In altre parole, il risultato ritornato dalla funzione è 'debole' solo
perchè si basa sui valori dei due file restituiti da os.stat, e quindi non
dai singoli byte contenuti nei due file stessi?

Spero di aver espresso bene il mio dubbio.


.Massimo .Capanni

σπευδε βραδεως
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] Confronto di due file con filecmp

2015-03-12 Per discussione Massimo Capanni
touchè ...
Grazie
:-)


.m

.Massimo .Capanni

σπευδε βραδεως

2015-03-12 17:31 GMT+01:00 Nicola Larosa n...@teknico.net:

 Massimo Capanni wrote:
  Spero di aver espresso bene il mio dubbio.

 Il tuo dubbio viene risolto dalla frase successiva. Continua a leggere.

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

 Look at the poor New Agers. Christianity developed defenses against
 criticism, arguing for the wonders of faith; New Agers culturally
 inherit the cached thought that faith is positive, but lack Christian-
 ity's exclusionary scripture to keep out competing memes. New Agers
 end up in happy death spirals around stars, trees, magnets, diets,
 spells, unicorns... - Eliezer Yudkowsky, 2007

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

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