* 14/03/2014, Lorena Doria wrote : > ciao, > è utilissima e fa proprio al caso mio, però ho il problema che io devo > usare python 2.5 che non supporta la funzione "with" come posso ovviare > al problema? > Grazie 100000000
http://legacy.python.org/dev/peps/pep-0343/ Transition Plan In Python 2.5, the new syntax will only be recognized if a future statement is present: from __future__ import with_statement This will make both 'with' and 'as' keywords. Without the future statement, using 'with' or 'as' as an identifier will cause a Warning to be issued to stderr. -- Never try to teach a pig to sing. It wastes your time and annoys the pig. _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python