Re: [Python] Sviluppare flash multipiattaforma

2008-04-01 Per discussione Facundo Batista
2008/4/1, Matteo Buferli <[EMAIL PROTECTED]>: > Ciao a tutti, > vorrei un consiglio su quale libreria usare per un'applicaizone per > creare animazioni flash. Ho trovato ming, ma mi servirebbe poter > sviluppare sia su win che su unix. C'è un progetto per scrivere il tuo programma in RPython,

Re: [Python] Stringhe e \n

2008-03-26 Per discussione Facundo Batista
2008/3/26, Mattia <[EMAIL PROTECTED]>: > mi sono da poco avvicinato a questo linguaggio. > Mi sono imbattuto in questo penso banale problema che non riesco a > risolvere: > > f = open('/etc/hostname', 'r') > hostname = f.readline() > f.close() Il strip() cancela il \n, spaces, and tabs: >>

Re: [Python] Come in Perl

2008-03-07 Per discussione Facundo Batista
2008/3/7, andrea lucaroni <[EMAIL PROTECTED]>: > Ciao a tutti > scusa esiste qualcosa di simile in python del comando il perl: > system("comandi di schell ."); os.system() Ma ti suggerisco di usare il modulo subprocess, che è più potente. -- .Facundo Blog: http://www.taniquetil.co

Re: [Python] Problemi di PIPEs(spawn e putty/plink)

2008-01-24 Per discussione Facundo Batista
2008/1/24, Bruno Cavestro <[EMAIL PROTECTED]>: > Lancio il sottoprocesso con os.spawnv (sia con wait che no wait) E meglio da usare il modulo subprocess. -- .Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ ___ Pyt

Re: [Python] Esecuzione Servlet Remota con httplib

2007-11-26 Per discussione Facundo Batista
2007/11/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > remota da un sorgente python (utilizzando httplib) avendo le seguenti > informazioni : > 1) URL servlet > 2) parametri > > Qualcuno può suggerirmi come fare? GET o POST? In caso del GET, puoi fare: urllib2.urlopen("http://il_tuo_server.it/s

Re: [Python] elencare numeri in binario

2007-11-18 Per discussione Facundo Batista
2007/11/16, Mr. SpOOn <[EMAIL PROTECTED]>: > esiste qualche metodo per stampare i primi N numeri in forma binaria? > E la possibilità di stamparli con un numero fissato di bit? Python 3.0a1+ (py3k:58889, Nov 6 2007, 19:05:24) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2

Re: [Python] Re: Digest di Python, Volume 19, Numero 11

2007-11-16 Per discussione Facundo Batista
2007/11/16, Pietro Battiston <[EMAIL PROTECTED]>: > Grazie mille, in effetti è proprio quello che mi serviva. Ma __new__ > rimpiazza __init__? No. __new__ non rimpiazza __init__. Sono due differenti cose. __new__ è per creare il oggetto. __init__ è per inizializzare il oggetto. Normalmente e us