2012/11/26 Pietro <peter.z...@gmail.com>: > "Tutto in python è un oggetto. > Un oggetto è formato da attributi, alcuni di quest attributi sono > callable e si chiamano metodi."
Tranne gli attributi callable degli oggetti di tipo modulo, che si chiamano funzioni :P >>> hasattr(str, 'upper') True >>> callable(str.upper) True >>> str.upper <method 'upper' of 'str' objects> >>> >>> import string >>> hasattr(string, 'upper') True >>> callable(string.upper) True >>> string.upper <function upper at 0xb6fa63e4> © -- R K-<M>-S L _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python